]> xenbits.xensource.com Git - seabios.git/commitdiff
Remove unused macro ENTRY_ST
authorKevin O'Connor <kevin@koconnor.net>
Tue, 21 Oct 2014 18:39:47 +0000 (14:39 -0400)
committerKevin O'Connor <kevin@koconnor.net>
Mon, 27 Oct 2014 14:56:54 +0000 (10:56 -0400)
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/entryfuncs.S

index 4e6151ed1945d2157c6e757a32cec40e88468da0..cc1f433245954b348a451ffc657461228a233d67 100644 (file)
         popl %eax
         .endm
 
-        // As above, but get calling function from stack.
-        .macro ENTRY_ST
-        cli
-        cld
-        pushl %ecx
-        pushl %edx
-        pushw %es
-        pushw %ds
-        movw %ss, %cx           // Move %ss to %ds
-        movw %cx, %ds
-        pushl %esp              // Backup %esp, then clear high bits
-        movzwl %sp, %esp
-        movl 16(%esp), %ecx     // Get calling function
-        movl %eax, 16(%esp)     // Save %eax
-        calll *%ecx
-        popl %esp               // Restore %esp (including high bits)
-        popw %ds                // Restore registers saved above
-        popw %es
-        popl %edx
-        popl %ecx
-        popl %eax
-        .endm
-
         // Call a C function with current register list as an
         // argument.  This backs up the registers and sets %eax
         // to point to the backup.  On return, the registers are