Changeset 5f83634 in mainline for kernel/arch/ia32/src/pm.c
- Timestamp:
- 2010-07-12T16:45:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6b1a85c
- Parents:
- bee2d4c (diff), 8078180 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/pm.c
rbee2d4c r5f83634 130 130 d->selector = gdtselector(KTEXT_DES); 131 131 132 d->access = AR_PRESENT | AR_INTERRUPT; /* masking interrupt */133 134 132 if (i == VECTOR_SYSCALL) { 135 133 /* 136 * The syscall interrupt gate must be calleable from137 * userland. 134 * The syscall trap gate must be callable from 135 * userland. Interrupts will remain enabled. 138 136 */ 139 d->access |= DPL_USER; 137 d->access = AR_PRESENT | AR_TRAP | DPL_USER; 138 } else { 139 /* 140 * Other interrupts use interrupt gates which 141 * disable interrupts. 142 */ 143 d->access = AR_PRESENT | AR_INTERRUPT; 140 144 } 141 145 } … … 206 210 idt_setoffset(d++, (uintptr_t) &int_62); 207 211 idt_setoffset(d++, (uintptr_t) &int_63); 212 213 idt_setoffset(&idt[VECTOR_SYSCALL], (uintptr_t) &int_syscall); 208 214 } 209 215
Note:
See TracChangeset
for help on using the changeset viewer.