- 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:
Kip Macy 2006-11-03 23:43:18 +00:00
parent 45897edf72
commit 7b5cdd4faf
2 changed files with 7 additions and 0 deletions

View File

@ -11,6 +11,9 @@ SRCS+= __sparc_sigtramp_setup.c \
sigcode.S
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

View File

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