]> git.corax.cc Git - corax/commitdiff
Modify arch_init() to preserve the contents of the ebx register
authorMatthias Kruk <m@m10k.eu>
Tue, 3 Sep 2019 15:51:19 +0000 (00:51 +0900)
committerMatthias Kruk <m@m10k.eu>
Tue, 3 Sep 2019 15:51:19 +0000 (00:51 +0900)
kernel/arch/init.S

index ada755c6bd700e7b0d4675a1f5b3f534e8bdb882..e35ddcfe91a3ed1b3191f4b33a3eb71ea5eea43f 100644 (file)
@@ -161,7 +161,7 @@ _print_regs:
        ret
 
 arch_init:
-       call    _print_regs
+       pushl   %ebx
 
     subl    $24, %esp
 
@@ -342,7 +342,7 @@ arch_init:
     lidt    (%esp)
 
     addl    $24, %esp
-    movl    4(%esp), %eax
+    movl    8(%esp), %eax
     pushl   %eax
     call    pg_init
     addl    $4, %esp
@@ -419,10 +419,9 @@ arch_init:
     addl    $16, %esp
        */
 
-       sti
-
-       call _print_regs
+       popl    %ebx
 
+       sti
     ret
 
 /*