6046bc37e8
otherwise the return from the syscall stub for getcontext will pop off the return value for the caller to the getcontext stub and it will appear as though the setcontext() syscall returned instead of the getcontext(). The same bug exists on amd64, a fix is coming there too. The bug can be demonstrated with this test code fragment: main() { ucontext_t top; if (getcontext(&top) == 0) { write(2, "PING!\n", 6); /* Cause a return value of 1 from getcontext this time */ top.uc_mcontext.mc_eax = 1; setcontext(&top); err(1, "setcontext() returned"); } write(2, "PONG!\n", 6); _exit(0); }
23 lines
763 B
Makefile
23 lines
763 B
Makefile
# from: Makefile.inc,v 1.1 1993/09/03 19:04:23 jtc Exp
|
|
# $FreeBSD$
|
|
|
|
SRCS+= i386_clr_watch.c i386_get_ioperm.c i386_get_ldt.c i386_set_ioperm.c \
|
|
i386_set_ldt.c i386_set_watch.c i386_vm86.c
|
|
|
|
MDASM= Ovfork.S brk.S cerror.S exect.S getcontext.S pipe.S ptrace.S \
|
|
reboot.S sbrk.S setlogin.S sigreturn.S syscall.S
|
|
|
|
# Don't generate default code for these syscalls:
|
|
NOASM= break.o exit.o ftruncate.o getdomainname.o getlogin.o \
|
|
lseek.o mmap.o openbsd_poll.o pread.o \
|
|
pwrite.o setdomainname.o sstk.o truncate.o uname.o vfork.o yield.o
|
|
|
|
PSEUDO= _getlogin.o _exit.o
|
|
|
|
MAN+= i386_get_ioperm.2 i386_get_ldt.2 i386_vm86.2
|
|
MAN+= i386_set_watch.3
|
|
|
|
MLINKS+=i386_get_ioperm.2 i386_set_ioperm.2
|
|
MLINKS+=i386_get_ldt.2 i386_set_ldt.2
|
|
MLINKS+=i386_set_watch.3 i386_clr_watch.3
|