Changeset b0bf501 in mainline for arch/ia32/src/pm.c
- Timestamp:
- 2005-06-06T20:42:06Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a7a1063
- Parents:
- e3f41b6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/pm.c
re3f41b6 rb0bf501 72 72 void gdt_setbase(struct descriptor *d, __address base) 73 73 { 74 d->base_0_15 = KA2PA(base)& 0xffff;75 d->base_16_23 = ( KA2PA(base) >> 16) & 0xff;76 d->base_24_31 = ( KA2PA(base) >> 24) & 0xff;74 d->base_0_15 = base & 0xffff; 75 d->base_16_23 = ((base) >> 16) & 0xff; 76 d->base_24_31 = ((base) >> 24) & 0xff; 77 77 78 78 } … … 86 86 void idt_setoffset(struct idescriptor *d, __address offset) 87 87 { 88 d->offset_0_15 = KA2PA(offset) & 0xffff; 89 d->offset_16_31 = KA2PA(offset) >> 16; 88 /* 89 * Offset is a linear address. 90 */ 91 d->offset_0_15 = offset & 0xffff; 92 d->offset_16_31 = offset >> 16; 90 93 } 91 94
Note:
See TracChangeset
for help on using the changeset viewer.