Changeset e98f1c3e in mainline for kernel/arch/ia32
- Timestamp:
- 2016-08-28T11:49:38Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f4c537a
- Parents:
- db4c43e1
- Location:
- kernel/arch/ia32
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/arch/asm.h
rdb4c43e1 re98f1c3e 259 259 * 260 260 * @return Current interrupt priority level. 261 * 261 262 */ 262 263 NO_TRACE static inline ipl_t interrupts_read(void) … … 270 271 * 271 272 * @return Old interrupt priority level. 273 * 272 274 */ 273 275 NO_TRACE static inline ipl_t interrupts_enable(void) … … 285 287 * 286 288 * @return Old interrupt priority level. 289 * 287 290 */ 288 291 NO_TRACE static inline ipl_t interrupts_disable(void) -
kernel/arch/ia32/include/arch/cpuid.h
rdb4c43e1 re98f1c3e 85 85 86 86 asm volatile ( 87 "pushf\n" 87 "pushf\n" /* read flags */ 88 88 "popl %[ret]\n" 89 89 "movl %[ret], %[val]\n" 90 90 91 "xorl %[eflags_id], %[val]\n" 91 "xorl %[eflags_id], %[val]\n" /* swap the ID bit */ 92 92 93 "pushl %[val]\n" 93 "pushl %[val]\n" /* propagate the change into flags */ 94 94 "popf\n" 95 95 "pushf\n" 96 96 "popl %[val]\n" 97 97 98 "andl %[eflags_id], %[ret]\n" 98 "andl %[eflags_id], %[ret]\n" /* interrested only in ID bit */ 99 99 "andl %[eflags_id], %[val]\n" 100 100 "xorl %[val], %[ret]\n" -
kernel/arch/ia32/src/context.S
rdb4c43e1 re98f1c3e 59 59 FUNCTION_END(context_save_arch) 60 60 61 62 61 ## Restore saved CPU context 63 62 # -
kernel/arch/ia32/src/ia32.c
rdb4c43e1 re98f1c3e 143 143 zone_merge_all(); 144 144 } 145 146 145 } 147 146 -
kernel/arch/ia32/src/smp/ap.S
rdb4c43e1 re98f1c3e 75 75 movw %ax, %es 76 76 movw %ax, %ss 77 movl $KA2PA(ctx), %eax 77 movl $KA2PA(ctx), %eax /* KA2PA((uintptr_t) &ctx) */ 78 78 movl CONTEXT_OFFSET_SP(%eax), %esp 79 leal KA2PA(0)(%esp), %esp 79 leal KA2PA(0)(%esp), %esp /* KA2PA(ctx.sp) */ 80 80 81 81 /* … … 85 85 call map_kernel_pse 86 86 87 addl $PA2KA(0), %esp 87 addl $PA2KA(0), %esp /* PA2KA(ctx.sp) */ 88 88 89 89 /* create the first stack frame */
Note:
See TracChangeset
for help on using the changeset viewer.