Changeset dd80fc6 in mainline for arch/ia32/src/smp
- Timestamp:
- 2005-09-03T22:26:31Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5eb1379
- Parents:
- 5260478
- Location:
- arch/ia32/src/smp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/smp/ap.S
r5260478 rdd80fc6 51 51 movw %ax, %ds 52 52 53 lgdt ap_bootstrap_gdtr # initialize Global Descriptor Table register53 lgdt real_bootstrap_gdtr # initialize Global Descriptor Table register 54 54 55 55 movl %cr0, %eax 56 56 orl $1, %eax 57 movl %eax, %cr0 # switch to protected mode57 movl %eax, %cr0 # switch to protected mode 58 58 jmpl $KTEXT, $jump_to_kernel 59 59 -
arch/ia32/src/smp/smp.c
r5260478 rdd80fc6 145 145 memcpy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); 146 146 memsetb((__address)(&gdt_new[TSS_DES]), sizeof(struct descriptor), 0); 147 ap_bootstrap_gdtr.base = KA2PA((__address) gdt_new);147 real_bootstrap_gdtr.base = KA2PA((__address) gdt_new); 148 148 gdtr.base = (__address) gdt_new; 149 149
Note:
See TracChangeset
for help on using the changeset viewer.