twizzler-operating-system / twizzler

The Twizzler Operating System
BSD 3-Clause "New" or "Revised" License
66 stars 13 forks source link

Exception handling for aarch64 #118

Closed PandaZ3D closed 1 year ago

PandaZ3D commented 1 year ago

This patch has code that sets up the exception vector table with a default handler that prints useful debug information. The functionality here is to be able to catch any exception and print useful information about the cause.

PandaZ3D commented 1 year ago

make the exception table be a type

Do you have any intuition on how to do this? On aarch64 the exception table is just a bunch of instructions, so binary. Much different from x86 which I believe is a table of function pointers.

dbittman commented 1 year ago

make the exception table be a type

Do you have any intuition on how to do this? On aarch64 the exception table is just a bunch of instructions, so binary. Much different from x86 which I believe is a table of function pointers.

Oh I misread the code I think, if that's the case then all good!