[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] xaaes.km calls the AES appl_init() in supervisor mode



On 09/03/2013 09:04, Vincent Rivière wrote:
Is that trap #1 legal?

It seems that the answer is yes.
Found in arch/syscall.S, label reentrant_trap:

// Reentrant means here that we can enter the kernel again through
// the trap handler from inside kernel space.
// This is not neccessary for the kernel itself but rather if you want
// to use other subsystems which use the trap#1 to enter the kernel again.
// You can, for example,use the TOS-VDI subsystem safely and the VDI can
// reenter the kernel through the trap handler.

I have made a quick test by calling Cconws() with a trap from xaaes.km, it does not crash.

Still investigating.

--
Vincent Rivière