Skip to content

Investigate Rewriting Interrupt/Exception Handlers Purely in C/C++ #344

@Kfeavel

Description

@Kfeavel
struct interrupt_frame;

__attribute__ ((interrupt))
void
f (struct interrupt_frame *frame)
{
}
#ifdef __x86_64__
typedef unsigned long long int uword_t;
#else
typedef unsigned int uword_t;
#endif

struct interrupt_frame;

__attribute__ ((interrupt))
void
f (struct interrupt_frame *frame, uword_t error_code)
{
  ...
}

https://gcc.gnu.org/onlinedocs/gcc/x86-Function-Attributes.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementAn improvement on a pre-existing code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions