Changeset 1a67595 in mainline
- Timestamp:
- 2006-01-08T15:18:15Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 59adc2b
- Parents:
- 6d7ffa65
- Location:
- arch/amd64
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/pm.h
r6d7ffa65 r1a67595 147 147 extern struct ptr_16_64 gdtr; 148 148 extern struct ptr_16_32 real_bootstrap_gdtr; 149 extern struct ptr_16_32 protected_bootstrap_gdtr; 149 150 150 151 extern void pm_init(void); -
arch/amd64/src/boot/boot.S
r6d7ffa65 r1a67595 50 50 .code16 51 51 .global kernel_image_start 52 .global multiboot_image_start 52 53 kernel_image_start: 53 54 cli … … 96 97 multiboot_image_start: 97 98 movl $START_STACK, %esp # initialize stack pointer 98 # FIXME TODO 99 100 lgdt protected_bootstrap_gdtr + BOOT_OFFSET # initialize Global Descriptor Table register 101 102 movw $gdtselector(KDATA_DES), %cx 103 movw %cx, %es 104 movw %cx, %gs 105 movw %cx, %fs 106 movw %cx, %ds # kernel data + stack 107 movw %cx, %ss 108 109 jmpl $gdtselector(KTEXT_DES), $multiboot_meeting_point + BOOT_OFFSET 110 multiboot_meeting_point: 111 112 hlt 99 113 100 114 # Protected 32-bit. We want to reuse the code-seg descriptor, … … 209 223 .word gdtselector(GDT_ITEMS) 210 224 .long KA2PA(gdt)-BOOT_OFFSET 225 226 .global protected_bootstrap_gdtr 227 protected_bootstrap_gdtr: 228 .word gdtselector(GDT_ITEMS) 229 .long KA2PA(gdt)
Note:
See TracChangeset
for help on using the changeset viewer.