Changeset f6297e0 in mainline for arch/ia32/src/pm.c
- Timestamp:
- 2005-09-03T15:45:14Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ab08b42
- Parents:
- 2f08a55d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/pm.c
r2f08a55d rf6297e0 71 71 72 72 /* gdtr is changed by kmp before next CPU is initialized */ 73 struct ptr_16_32 gdtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt - BOOT_OFFSET) }; 73 struct ptr_16_32 bsp_bootstrap_gdtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt - BOOT_OFFSET) }; 74 struct ptr_16_32 ap_bootstrap_gdtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt) }; 75 struct ptr_16_32 gdtr = { .limit = sizeof(gdt), .base = KA2PA((__address) gdt) }; 74 76 struct ptr_16_32 idtr __attribute__ ((section ("K_DATA_START"))) = { .limit = sizeof(idt), .base = KA2PA((__address) idt) }; 75 77 … … 171 173 * Update addresses in GDT and IDT to their virtual counterparts. 172 174 */ 173 gdtr.base = KA2PA(gdtr.base);175 gdtr.base = (__address) gdt; 174 176 idtr.base = (__address) idt; 175 177 __asm__ volatile ("lgdt %0\n" : : "m" (gdtr));
Note:
See TracChangeset
for help on using the changeset viewer.