]> Devi Nivas Git - cs3210-lab0.git/commitdiff
Shorten boot assembly
authorFrans Kaashoek <kaashoek@42.sub-75-251-87.myvzw.com>
Wed, 10 Aug 2011 01:51:17 +0000 (21:51 -0400)
committerFrans Kaashoek <kaashoek@42.sub-75-251-87.myvzw.com>
Wed, 10 Aug 2011 01:51:17 +0000 (21:51 -0400)
multiboot.S

index 84f4aa055e8d8ffca50a9b1d3d934ccef20ae044..cd6a62b5525dd92547ac2a629512fd2ac4ca3157 100644 (file)
@@ -37,23 +37,8 @@ multiboot_header:
   .long multiboot_entry
 
 # Multiboot entry point.  Machine is mostly set up.
-# Configure the GDT to match the environment that our usual
-# boot loader - bootasm.S - sets up.
 .globl multiboot_entry
 multiboot_entry:
-#  lgdt V2P_WO(gdtdesc)
-#  ljmp $(SEG_KCODE<<3), $mbstart32
-
-mbstart32:
-  # Set up the protected-mode data segment registers
-  movw    $(SEG_KDATA<<3), %ax    # Our data segment selector
-  movw    %ax, %ds                # -> DS: Data Segment
-  movw    %ax, %es                # -> ES: Extra Segment
-  movw    %ax, %ss                # -> SS: Stack Segment
-  movw    $0, %ax                 # Zero segments not ready for use
-  movw    %ax, %fs                # -> FS
-  movw    %ax, %gs                # -> GS
-
   movl    $(V2P_WO(bootpgdir)), %eax
   movl    %eax, %cr3
   # Turn on paging.