Changeset 6401f79 in mainline
- Timestamp:
- 2005-09-03T16:44:55Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b6d20a7
- Parents:
- ab08b42
- Location:
- arch/ia32
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/include/pm.h
rab08b42 r6401f79 130 130 131 131 extern struct ptr_16_32 gdtr; 132 extern struct ptr_16_32 bsp_bootstrap_gdtr; 133 extern struct ptr_16_32 ap_bootstrap_gdtr; 132 134 extern struct tss *tss_p; 133 135 -
arch/ia32/src/pm.c
rab08b42 r6401f79 173 173 * Update addresses in GDT and IDT to their virtual counterparts. 174 174 */ 175 gdtr.base = (__address) gdt; 175 if (config.cpu_active == 1) 176 gdtr.base = (__address) gdt; 176 177 idtr.base = (__address) idt; 177 178 __asm__ volatile ("lgdt %0\n" : : "m" (gdtr)); -
arch/ia32/src/smp/smp.c
rab08b42 r6401f79 86 86 __address src, dst; 87 87 int i; 88 88 89 89 ASSERT(ops != NULL); 90 90 … … 142 142 memcpy(gdt_new, gdt, GDT_ITEMS*sizeof(struct descriptor)); 143 143 memsetb((__address)(&gdt_new[TSS_DES]), sizeof(struct descriptor), 0); 144 gdtr.base = KA2PA((__address) gdt_new); 144 ap_bootstrap_gdtr.base = KA2PA((__address) gdt_new); 145 gdtr.base = (__address) gdt_new; 145 146 146 147 if (l_apic_send_init_ipi(ops->cpu_apic_id(i))) {
Note:
See TracChangeset
for help on using the changeset viewer.