Changeset e98f1c3e in mainline for kernel/arch
- 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
- Files:
-
- 14 edited
-
amd64/include/arch/asm.h (modified) (3 diffs)
-
amd64/src/asm.S (modified) (2 diffs)
-
amd64/src/context.S (modified) (1 diff)
-
arm32/src/asm.S (modified) (1 diff)
-
arm32/src/context.S (modified) (1 diff)
-
arm32/src/debug/stacktrace_asm.S (modified) (1 diff)
-
arm32/src/eabi.S (modified) (1 diff)
-
ia32/include/arch/asm.h (modified) (3 diffs)
-
ia32/include/arch/cpuid.h (modified) (1 diff)
-
ia32/src/context.S (modified) (1 diff)
-
ia32/src/ia32.c (modified) (1 diff)
-
ia32/src/smp/ap.S (modified) (2 diffs)
-
ia64/src/debug/stacktrace_asm.S (modified) (1 diff)
-
sparc32/include/arch/barrier.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/arch/asm.h
rdb4c43e1 re98f1c3e 235 235 * 236 236 * @return Current interrupt priority level. 237 * 237 238 */ 238 239 NO_TRACE static inline ipl_t interrupts_read(void) … … 246 247 * 247 248 * @return Old interrupt priority level. 249 * 248 250 */ 249 251 NO_TRACE static inline ipl_t interrupts_enable(void) … … 261 263 * 262 264 * @return Old interrupt priority level. 265 * 263 266 */ 264 267 NO_TRACE static inline ipl_t interrupts_disable(void) -
kernel/arch/amd64/src/asm.S
rdb4c43e1 re98f1c3e 180 180 subq $(ISTATE_SOFT_SIZE + 8), %rsp 181 181 .endif 182 182 183 183 /* 184 184 * Save the general purpose registers. … … 346 346 swapgs 347 347 sti 348 348 349 349 /* Copy the 4th argument where it is expected */ 350 350 movq %r10, %rcx -
kernel/arch/amd64/src/context.S
rdb4c43e1 re98f1c3e 78 78 movq CONTEXT_OFFSET_PC(%rdi), %rdx 79 79 movq %rdx, (%rsp) 80 80 81 81 movq CONTEXT_OFFSET_TP(%rdi), %rcx 82 82 movq vreg_ptr, %rsi -
kernel/arch/arm32/src/asm.S
rdb4c43e1 re98f1c3e 101 101 mov pc, lr 102 102 FUNCTION_END(early_putchar) 103 -
kernel/arch/arm32/src/context.S
rdb4c43e1 re98f1c3e 58 58 mov pc, lr 59 59 FUNCTION_END(context_restore_arch) 60 -
kernel/arch/arm32/src/debug/stacktrace_asm.S
rdb4c43e1 re98f1c3e 40 40 mov pc, lr 41 41 FUNCTION_END(program_counter_get) 42 -
kernel/arch/arm32/src/eabi.S
rdb4c43e1 re98f1c3e 90 90 mov pc, lr 91 91 FUNCTION_END(__aeabi_uldivmod) 92 -
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" /* read flags */87 "pushf\n" /* read flags */ 88 88 "popl %[ret]\n" 89 89 "movl %[ret], %[val]\n" 90 90 91 "xorl %[eflags_id], %[val]\n" /* swap the ID bit */91 "xorl %[eflags_id], %[val]\n" /* swap the ID bit */ 92 92 93 "pushl %[val]\n" /* propagate the change into flags */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" /* interrested only in ID bit */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 /* KA2PA((uintptr_t) &ctx) */77 movl $KA2PA(ctx), %eax /* KA2PA((uintptr_t) &ctx) */ 78 78 movl CONTEXT_OFFSET_SP(%eax), %esp 79 leal KA2PA(0)(%esp), %esp /* KA2PA(ctx.sp) */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 /* PA2KA(ctx.sp) */87 addl $PA2KA(0), %esp /* PA2KA(ctx.sp) */ 88 88 89 89 /* create the first stack frame */ -
kernel/arch/ia64/src/debug/stacktrace_asm.S
rdb4c43e1 re98f1c3e 40 40 br.ret.sptk.many b0 41 41 FUNCTION_END(program_counter_get) 42 -
kernel/arch/sparc32/include/arch/barrier.h
rdb4c43e1 re98f1c3e 71 71 72 72 #ifdef KERNEL 73 73 74 #define smc_coherence(addr) 74 75 #define smc_coherence_block(addr, size) 76 75 77 #endif /* KERNEL */ 76 78
Note:
See TracChangeset
for help on using the changeset viewer.
