From 5d6fca9b88a7c5ff053944226bfa1481a96a8f83 Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Sun, 24 Oct 2010 05:06:30 +0000 Subject: [PATCH] arch/m68k-amiga: Install the Supervisor Execption trap Needed to support the generic m68k Exec/Supervisor() Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@34909 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- arch/m68k-amiga/boot/start.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/m68k-amiga/boot/start.c b/arch/m68k-amiga/boot/start.c index c1510bd852..8ce8b17576 100644 --- a/arch/m68k-amiga/boot/start.c +++ b/arch/m68k-amiga/boot/start.c @@ -147,6 +147,8 @@ void DebugPutHex(const char *what, ULONG val) DebugPutChar('\n'); } +extern void __attribute__((interrupt)) Exec_Supervisor_Trap (void); + void start(void) { extern void *_bss; @@ -189,6 +191,11 @@ void start(void) for (i = 0; i < 46; i++) tmp[i] = Exec_FatalException; + /* Set privilige violation trap - we + * need this to support the Exec/Supervisor call + */ + tmp[8] = Exec_Supervisor_Trap; + /* Clear the BSS */ __clear_bss(&kbss[0]); DebugPuts("[bss clear]\n"); -- 2.11.4.GIT