@ -1,5 +1,5 @@
/ *
* U- b o o t - x86 S t a r t u p C o d e
* U- B o o t - x86 S t a r t u p C o d e
*
* ( C) C o p y r i g h t 2 0 0 8 - 2 0 1 1
* Graeme R u s s , < g r a e m e . r u s s @gmail.com>
@ -28,7 +28,7 @@ start16:
movl $ G D _ F L G _ C O L D _ B O O T , % e b x
xorl % e a x , % e a x
movl % e a x , % c r3 / * I n v a l i d a t e T L B * /
movl % e a x , % c r3 / * I n v a l i d a t e T L B * /
/* Turn off cache (this might require a 486-class CPU) */
movl % c r0 , % e a x
@ -49,7 +49,7 @@ o32 cs lgdt gdt_ptr
jmp f f
ff :
/* Finally restore BIST and jump to the 32bit initialization code */
/* Finally restore BIST and jump to the 32- bit initialization code */
movw $ c o d e 3 2 s t a r t , % a x
movw % a x , % b p
movl % e c x , % e a x
@ -64,17 +64,17 @@ idt_ptr:
.word 0 /* limit */
.long 0 /* base */
/ *
* The f o l l o w i n g G l o b a l D e s c r i p t o r T a b l e i s j u s t e n o u g h t o g e t u s i n t o
* ' Flat P r o t e c t e d M o d e ' - I t w i l l b e d i s c a r d e d a s s o o n a s t h e f i n a l
* GDT i s s e t u p i n a s a f e l o c a t i o n i n R A M
* /
/ *
* The f o l l o w i n g G l o b a l D e s c r i p t o r T a b l e i s j u s t e n o u g h t o g e t u s i n t o
* ' Flat P r o t e c t e d M o d e ' - I t w i l l b e d i s c a r d e d a s s o o n a s t h e f i n a l
* GDT i s s e t u p i n a s a f e l o c a t i o n i n R A M
* /
gdt_ptr :
.word 0x1f /* limit (31 bytes = 4 GDT entries - 1) */
.long BOOT_SEG + gdt / * b a s e * /
/* Some CPUs are picky about GDT alignment... */
.align 16
/* Some CPUs are picky about GDT alignment... */
.align 16
gdt :
/ *
* The G D T t a b l e . . .