/*
- * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
*/
#define IDT_BASE_ENTRY(vec,seg,type) \
.data ;\
- .long EXT(vec) - EXT(hi_remap_text) + HIGH_MEM_BASE ;\
+ .long EXT(vec) - EXT(hi_remap_text) + HIGH_MEM_BASE ; \
.word seg ;\
.byte 0 ;\
.byte type ;\
#define IDT_BASE_ENTRY_INT(vec,seg,type) \
.data ;\
- .long vec - EXT(hi_remap_text) + HIGH_MEM_BASE ;\
+ .long vec - EXT(hi_remap_text) + HIGH_MEM_BASE ; \
.word seg ;\
.byte 0 ;\
.byte type ;\
#define IDT_BASE_ENTRY_TG(vec,seg,type) \
.data ;\
- .long 0 ;\
+ .long 0 ; \
.word seg ;\
.byte 0 ;\
.byte type ;\
INTERRUPT(0x7c)
INTERRUPT(0x7d)
INTERRUPT(0x7e)
-INTERRUPT(0x7f)
+EXCEP_USR(0x7f, t_dtrace_ret)
EXCEP_SPC_USR(0x80,hi_unix_scall)
EXCEP_SPC_USR(0x81,hi_mach_scall)
EXT(ret_iret):
iret /* return from interrupt */
fast_exit:
- popl %edx /* user return eip */
- popl %ecx /* pop and toss cs */
+ popl %edx /* user return eip */
+ popl %ecx /* pop and toss cs */
andl $(~EFL_IF),(%esp) /* clear intrs enabled, see sti below */
- popf /* flags - carry denotes failure */
- popl %ecx /* user return esp */
+ popf /* flags - carry denotes failure */
+ popl %ecx /* user return esp */
sti /* interrupts enabled after sysexit */
- sysexit
-
-/*******************************************************************************************************/
+ sysexit
Entry(hi_unix_scall)
pushf /* flags */
/*
* Clear, among others, the Nested Task (NT) flags bit;
- * This is cleared by INT, but not by sysenter, which only
- * clears RF, VM and IF.
+ * This is cleared by INT, but not by SYSENTER.
*/
- pushl $0
+ pushl $0
popfl
pushl $(SYSENTER_CS) /* cs */
hi_sysenter_2:
pushl %es
pushl %fs
pushl %gs
-enter_lohandler1:
pushl $(SS_32) /* 32-bit state flavor */
+enter_lohandler1:
mov %ss,%eax
mov %eax,%ds
mov %eax,%fs
2:
movl R_TRAPNO(%esp),%ecx // Get the interrupt vector
addl $1,%gs:hwIntCnt(,%ecx,4) // Bump the count
- jmp *%ebx
+ jmp *%ebx
/*
push_gs:
pushl %gs /* restore gs. */
push_none:
+ pushl $(SS_32) /* 32-bit state flavor */
movl %eax,R_TRAPNO(%esp) /* set trap number */
movl %edx,R_ERR(%esp) /* set error code */
/* now treat as fault from user */