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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib-1.10.0/] [newlib/] [libc/] [sys/] [sysvi386/] [signal.s] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1010 ivang
/ 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.