OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [sysvi386/] [signal.S] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/ According to the iBCS2 book, signal() has 0x30 in %eax, and the address
2
/ of a function in %edx.  This function is where a signal handler will
3
/ return to; it should just adjust the stack pointer, and call $f,$0.
4
/ Strange but true.
5
        .globl  signal
6
 
7
sigret:
8
        addl    $4, %esp
9
        lcall   $0xf, $0
10
signal:
11
        movl    $0x30, %eax
12
        movl    sigret, %edx
13
        lcall   $7,$0
14
        jb      _cerror
15
/ The iBCS2 book also clears out %eax here, which seems to be broken.
16
        ret

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.