- change ABI for user trap handler for sun4v (eventually will sync sparc64 no

hardware set up to test at the moment)

Approved by: scottl (standing in for mentor rwatson)
This commit is contained in:
kmacy 2006-11-03 23:43:18 +00:00
parent 78fce1a4a6
commit 73954d8d22
2 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,9 @@ SRCS+= __sparc_sigtramp_setup.c \
sigcode.S sigcode.S
CFLAGS+= -I${.CURDIR}/sparc64/fpu CFLAGS+= -I${.CURDIR}/sparc64/fpu
.if ${MACHINE} == "sun4v"
CFLAGS+= -DSUN4V
.endif
MDASM+= brk.S cerror.S exect.S pipe.S ptrace.S sbrk.S setlogin.S sigaction.S MDASM+= brk.S cerror.S exect.S pipe.S ptrace.S sbrk.S setlogin.S sigaction.S

View File

@ -38,6 +38,10 @@ __FBSDID("$FreeBSD$");
#include "assym.s" #include "assym.s"
ENTRY(__sparc_utrap_gen) ENTRY(__sparc_utrap_gen)
#ifdef SUN4V
save
ta %xcc, ST_FPEMU_CONTEXT
#endif
sub %sp, UF_SIZEOF, %sp sub %sp, UF_SIZEOF, %sp
stx %o0, [%sp + SPOFF + CCFSZ + UF_TYPE] stx %o0, [%sp + SPOFF + CCFSZ + UF_TYPE]