Changeset 11376
- Timestamp:
- Nov 17, 2008, 3:06:10 AM (12 years ago)
- Location:
- trunk/source/lisp-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/x86-spentry32.s
r11370 r11376 4263 4263 __(push %ebp) 4264 4264 __(box_fixnum(%eax,%esi)) /* put callback index in arg_y */ 4265 __ifndef([FREEBSD]) 4266 __(ref_global(get_tcr,%eax)) 4267 __(subl $12,%esp) /* alignment */ 4268 __(push $1) /* stack now 16-byte aligned */ 4269 __(call *%eax) 4270 __(addl $16,%esp) /* discard arg, alignment words */ 4271 /* linear TCR addr now in %eax */ 4272 __(movw tcr.ldt_selector(%eax), %rcontext_reg) 4273 __endif 4265 __(cmpb $0,C(rcontext_readonly)) 4266 __(jne 0f) 4267 __(ref_global(get_tcr,%eax)) 4268 __(subl $12,%esp) /* alignment */ 4269 __(push $1) /* stack now 16-byte aligned */ 4270 __(call *%eax) 4271 __(addl $16,%esp) /* discard arg, alignment words */ 4272 /* linear TCR addr now in %eax */ 4273 __(movw tcr.ldt_selector(%eax), %rcontext_reg) 4274 0: 4274 4275 4275 4276 /* ebp is 16-byte aligned, and we've pushed 4 words. Make -
trunk/source/lisp-kernel/x86-subprims32.s
r11370 r11376 75 75 __(push %ebx) 76 76 __(mov 8(%ebp), %ebx) /* get tcr */ 77 __ifndef([FREEBSD]) 78 __(movw tcr.ldt_selector(%ebx), %rcontext_reg) 79 __endif 77 __(cmpb $0,C(rcontext_readonly)) 78 __(jne 0f) 79 __(movw tcr.ldt_selector(%ebx), %rcontext_reg) 80 0: 80 81 __(movl 8(%ebp),%eax) 81 82 __(cmpl rcontext(tcr.linear),%eax) 82 __(je 0f)83 __(je 1f) 83 84 __(hlt) 84 0:85 1: 85 86 .if c_stack_16_byte_aligned 86 87 __(sub $12, %esp) /* stack now 16-byte aligned */
Note: See TracChangeset
for help on using the changeset viewer.