diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2011-10-25 13:13:55 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-02 14:14:19 -0700 |
| commit | f1bc9307d82b7ff55ea6fa0eebec2999e5bd8f8a (patch) | |
| tree | c9529c3ab69a125dc9e65cbf4f598f00ac14a025 /src/rt/arch | |
| parent | c0e9c42bd2f81d9694ee4c77b3440a44d38737e6 (diff) | |
| download | rust-f1bc9307d82b7ff55ea6fa0eebec2999e5bd8f8a.tar.gz rust-f1bc9307d82b7ff55ea6fa0eebec2999e5bd8f8a.zip | |
get things checking on ia32
Diffstat (limited to 'src/rt/arch')
| -rw-r--r-- | src/rt/arch/i386/_context.S | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/rt/arch/i386/_context.S b/src/rt/arch/i386/_context.S index faee99284a5..b892342ee31 100644 --- a/src/rt/arch/i386/_context.S +++ b/src/rt/arch/i386/_context.S @@ -20,19 +20,19 @@ The registers_t variable is in (%esp) swap_registers: // save the old context movl 4(%esp), %eax - //movl %eax, 0(%eax) - movl %ebx, 4(%eax) - //movl %ecx, 8(%eax) - //movl %edx, 12(%eax) - movl %ebp, 16(%eax) - movl %esi, 20(%eax) - movl %edi, 24(%eax) - //movl %cs, 32(%eax) - //movl %ds, 34(%eax) - //movl %ss, 36(%eax) - //movl %es, 38(%eax) - //movl %fs, 40(%eax) - //movl %gs, 42(%eax) + //movl %eax, 0(%eax) + movl %ebx, 4(%eax) + //movl %ecx, 8(%eax) + //movl %edx, 12(%eax) + movl %ebp, 16(%eax) + movl %esi, 20(%eax) + movl %edi, 24(%eax) + //movl %cs, 32(%eax) + //movl %ds, 34(%eax) + //movl %ss, 36(%eax) + //movl %es, 38(%eax) + //movl %fs, 40(%eax) + //movl %gs, 42(%eax) // save the flags pushf @@ -48,20 +48,20 @@ swap_registers: // restore the new context movl 4(%esp), %eax - movl 4(%eax), %ebx - // save ecx for later... - //movl 12(%eax), %edx - movl 16(%eax), %ebp - movl 20(%eax), %esi - movl 24(%eax), %edi - movl 28(%eax), %esp - // We can't actually change this... - //movl 32(%eax), %cs - //movl 34(%eax), %ds - //movl 36(%eax), %ss - //movl 38(%eax), %es - //movl 40(%eax), %fs - //movl 42(%eax), %gs + movl 4(%eax), %ebx + // save ecx for later... + //movl 12(%eax), %edx + movl 16(%eax), %ebp + movl 20(%eax), %esi + movl 24(%eax), %edi + movl 28(%eax), %esp + // We can't actually change this... + //movl 32(%eax), %cs + //movl 34(%eax), %ds + //movl 36(%eax), %ss + //movl 38(%eax), %es + //movl 40(%eax), %fs + //movl 42(%eax), %gs // restore the flags movl 44(%eax), %ecx @@ -70,7 +70,7 @@ swap_registers: // ok, now we can restore ecx //movl 8(%eax), %ecx - + // Return! jmp *48(%eax) |
