From: Alan Cox Date: Sat, 4 Feb 2017 23:11:34 +0000 (+0000) Subject: lowlevel-68000: debug the new syscall ABI X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=98b06f05f6580201cd1a8d1e0847b89eb82d81d2;p=FUZIX.git lowlevel-68000: debug the new syscall ABI Dumb bug removed and it now seems to work rather better --- diff --git a/Kernel/lowlevel-68000.S b/Kernel/lowlevel-68000.S index a80450db..dc963a5c 100644 --- a/Kernel/lowlevel-68000.S +++ b/Kernel/lowlevel-68000.S @@ -485,12 +485,12 @@ trap15: move.w #SIGTRAP,trap_id ; by convention ; fork is special see the fork code. ; trap14: move.l a5,-(sp) ; must be first to match fork - move.l usp,a5 - move.l a5,U_DATA__U_SYSCALL_SP(a5) move.l udata_shadow,a5 move.b d0,U_DATA__U_CALLNO(a5) move.b #1,U_DATA__U_INSYS(a5) movem.l d1/a0-a2,U_DATA__U_ARGN(a5) + move.l usp,a0 + move.l a0,U_DATA__U_SYSCALL_SP(a5) move.b #1,d0 move.b d0,kernel_flag ; FIXME: EI per platform really