Changeset b6d4566 in mainline for generic/src
- Timestamp:
- 2006-03-27T16:56:51Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ff75d34
- Parents:
- 50fe620
- Location:
- generic/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/cpu/cpu.c
r50fe620 rb6d4566 63 63 64 64 for (i=0; i < config.cpu_count; i++) { 65 cpus[i].stack = (__u8 *) PA2KA(PFN2ADDR(frame_alloc( ONE_FRAME, FRAME_KA | FRAME_PANIC)));65 cpus[i].stack = (__u8 *) PA2KA(PFN2ADDR(frame_alloc(STACK_FRAMES, FRAME_KA | FRAME_PANIC))); 66 66 67 67 cpus[i].id = i; -
generic/src/main/main.c
r50fe620 rb6d4566 93 93 #endif 94 94 95 #define CONFIG_STACK_SIZE ((1<<STACK_FRAMES)*STACK_SIZE) 96 95 97 /** Bootstrap CPU main kernel routine 96 98 * … … 129 131 130 132 context_save(&ctx); 131 context_set(&ctx, FADDR(main_bsp_separated_stack), 132 stackaddr, CONFIG_STACK_SIZE); 133 context_set(&ctx, FADDR(main_bsp_separated_stack), stackaddr, THREAD_STACK_SIZE); 133 134 context_restore(&ctx); 134 135 /* not reached */ -
generic/src/proc/thread.c
r50fe620 rb6d4566 267 267 268 268 /* Not needed, but good for debugging */ 269 memsetb((__address)t->kstack, THREAD_STACK_SIZE , 0);269 memsetb((__address)t->kstack, THREAD_STACK_SIZE * 1<<STACK_FRAMES, 0); 270 270 271 271 ipl = interrupts_disable();
Note:
See TracChangeset
for help on using the changeset viewer.