From 4f11d0433d0b117a3fb8337280c764ceea69446d Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 15 May 1992 13:31:19 +0000 Subject: [PATCH] updated catchsig.s --- mach/minix/libsys/LIST | 1 + mach/minix/libsys/catchsig.s | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/mach/minix/libsys/LIST b/mach/minix/libsys/LIST index 3ae9bdb91..a36ac956e 100644 --- a/mach/minix/libsys/LIST +++ b/mach/minix/libsys/LIST @@ -120,5 +120,6 @@ _wait.c _write.c _sendrec.s brksize.s +catchsig.s vectab.c errno.c diff --git a/mach/minix/libsys/catchsig.s b/mach/minix/libsys/catchsig.s index 7a55c0c9d..77ebd677c 100644 --- a/mach/minix/libsys/catchsig.s +++ b/mach/minix/libsys/catchsig.s @@ -1,7 +1,7 @@ -.define _begsig +.define __begsig .sect .text; .sect .rom; .sect .data -.extern _begsig -.extern _vectab, _M +.extern __begsig +.extern __vectab, __M mtype = 2 ! M+mtype = &M.m_type .sect .text _begsig: @@ -19,13 +19,13 @@ _begsig: mov ax,bx ! ax = signal number dec bx ! vectab[0] is for sig 1 add bx,bx ! pointers are two bytes on 8088 - mov bx,_vectab(bx) ! bx = address of routine to call - push (_M+mtype) ! push status of last system call + mov bx,__vectab(bx) ! bx = address of routine to call + push (__M+mtype) ! push status of last system call push ax ! func called with signal number as arg call (bx) back: pop ax ! get signal number off stack - pop (_M+mtype) ! restore status of previous system call + pop (__M+mtype) ! restore status of previous system call pop es ! signal handling finished pop ds pop bp -- 2.34.1