Changeset 11784


Ignore:
Timestamp:
Feb 24, 2009, 4:58:00 AM (10 years ago)
Author:
gb
Message:

darwin_sigreturn(): Panther linker doesn't like code-to-imported-code
ref to C(sigreturn). i386 wants infostyle arg on stack (should be
room for it), not in %esi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/x86-asmutils32.s

    r11710 r11784  
    176176
    177177        __ifdef([DARWIN])
    178         .globl C(sigreturn)
    179178_exportfn(C(darwin_sigreturn))
    180179/* Need to set the sigreturn 'infostyle' argument, which is mostly
     
    182181   since we're trying to do what sigtramp() would do if we'd returned
    183182   to it ... */
    184         __(movl $0x1e,%esi)
    185         __(jmp C(sigreturn))
     183        .globl C(sigreturn)
     184        __(movl $0x1e,8(%esp))
     185        __(jmp *jsigreturn)
     186        .data
     187jsigreturn:     .long C(sigreturn)
     188        .text
     189
    186190_endfn
    187191        __endif       
Note: See TracChangeset for help on using the changeset viewer.