~ubuntu-branches/ubuntu/quantal/gclcvs/quantal

« back to all changes in this revision

Viewing changes to dos/sigman.s

  • Committer: Bazaar Package Importer
  • Author(s): Camm Maguire
  • Date: 2004-06-24 15:13:46 UTC
  • Revision ID: james.westby@ubuntu.com-20040624151346-xh0xaaktyyp7aorc
Tags: 2.7.0-26
C_GC_OFFSET is 2 on m68k-linux

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
        .globl _SignalManager
 
3
_SignalManager:
 
4
        pushl   %ebp
 
5
        movl    %esp,%ebp
 
6
        /*-------------------------------------------------------------------
 
7
        ** Save all registers
 
8
        **-----------------------------------------------------------------*/
 
9
        pushl   %eax
 
10
        pushl   %ebx
 
11
        pushl   %ecx
 
12
        pushl   %edx
 
13
        pushl   %esi
 
14
        pushl   %edi
 
15
        pushf
 
16
        pushl   %es
 
17
        pushl   %ds
 
18
/*        pushl   %ss*/
 
19
        pushl   %fs
 
20
        pushl   %gs
 
21
        /*-----------------------------------------------------------------*/
 
22
 
 
23
        movl    4(%ebp), %eax
 
24
        shl     $2, %eax
 
25
        movl    _SignalTable(%eax), %ebx
 
26
        call    %ebx
 
27
 
 
28
        /*-------------------------------------------------------------------
 
29
        ** Restore registers
 
30
        **-----------------------------------------------------------------*/
 
31
        popl    %gs
 
32
        popl    %fs
 
33
/*        popl    %ss*/
 
34
        popl    %ds
 
35
        popl    %es
 
36
        popf
 
37
        popl    %edi
 
38
        popl    %esi
 
39
        popl    %edx
 
40
        popl    %ecx
 
41
        popl    %ebx
 
42
        popl    %eax
 
43
        /*------------------------------------------------------------------*/
 
44
 
 
45
        popl    %ebp
 
46
        add     $4, %esp
 
47
 
 
48
        ret     /* resume program */
 
49