Changeset e98f1c3e in mainline
- Timestamp:
- 2016-08-28T11:49:38Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3f4c537a
- Parents:
- db4c43e1
- Location:
- kernel
- Files:
-
- 19 edited
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" 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 */ -
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 -
kernel/generic/include/adt/list.h
rdb4c43e1 re98f1c3e 83 83 for (itype *iterator = NULL; iterator == NULL; iterator = (itype *) 1) \ 84 84 for (link_t *_link = (list).head.prev; \ 85 85 iterator = list_get_instance(_link, itype, member), \ 86 86 _link != &(list).head; _link = _link->prev) 87 87 -
kernel/generic/src/adt/btree.c
rdb4c43e1 re98f1c3e 1047 1047 /** Return number of B-tree elements. 1048 1048 * 1049 * @param t B-tree to count. 1049 * @param t B-tree to count. 1050 * 1050 1051 * @return Return number of B-tree elements. 1051 1052 * -
kernel/generic/src/console/kconsole.c
rdb4c43e1 re98f1c3e 166 166 const char *cmdtab_enum(const char *name, const char **h, void **ctx) 167 167 { 168 link_t **startpos = (link_t**) ctx;168 link_t **startpos = (link_t**) ctx; 169 169 size_t namelen = str_length(name); 170 170 … … 183 183 if (str_lcmp(curname, name, namelen) == 0) { 184 184 *startpos = (*startpos)->next; 185 if (h) {185 if (h) 186 186 *h = hlp->description; 187 }187 188 188 spinlock_unlock(&cmd_lock); 189 189 return (curname + str_lsize(curname, namelen)); … … 249 249 250 250 if (continue_showing_hints) { 251 252 251 if (help) 253 252 printf("%s%s (%s)\n", name, hint, help); … … 292 291 while (isspace(cmdline[start])) 293 292 start++; 293 294 294 end = start + 1; 295 295 296 while (!isspace(cmdline[end])) 296 297 end++; … … 374 375 for (beg = position - 1; 375 376 (beg > 0) && (!isspace(current[beg])); 376 beg--) { 377 ; 378 } 377 beg--); 379 378 380 379 if (isspace(current[beg])) … … 395 394 sp = false; 396 395 } 396 397 397 if (narg && isspace(current[0])) 398 398 narg--; 399 399 400 400 int found; 401 401 if (narg == 0) { -
kernel/test/test.c
rdb4c43e1 re98f1c3e 69 69 }; 70 70 71 const char *tests_hints_enum(const char *input, const char **help,71 const char *tests_hints_enum(const char *input, const char **help, 72 72 void **ctx) 73 73 { 74 74 size_t len = str_length(input); 75 test_t **test = (test_t **)ctx;75 test_t **test = (test_t **) ctx; 76 76 77 77 if (*test == NULL) -
kernel/test/test.h
rdb4c43e1 re98f1c3e 85 85 extern test_t tests[]; 86 86 87 extern const char *tests_hints_enum(const char *, const char **, void **);87 extern const char *tests_hints_enum(const char *, const char **, void **); 88 88 89 89 #endif
Note:
See TracChangeset
for help on using the changeset viewer.