Changeset 382fb4ba in mainline for kernel/arch/sparc32/src/proc/scheduler.c
- Timestamp:
- 2013-12-10T22:33:33Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7a33de
- Parents:
- 2955bb9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc32/src/proc/scheduler.c
r2955bb9 r382fb4ba 44 44 void before_thread_runs_arch(void) 45 45 { 46 printf("before_thread_runs_arch(uspace=%d, kernel_sp=0x%08x\n", THREAD->uspace, (uintptr_t)THREAD->kstack + STACK_SIZE);47 46 if (THREAD->uspace) { 48 47 uint32_t kernel_sp = (uint32_t) THREAD->kstack + STACK_SIZE - 8; … … 54 53 void after_thread_ran_arch(void) 55 54 { 55 if (THREAD->uspace) { 56 uint32_t kernel_sp; 57 uint32_t uspace_wbuf; 58 uint32_t l7; 59 read_from_invalid(&kernel_sp, &uspace_wbuf, &l7); 60 THREAD->arch.uspace_window_buffer = (uint8_t *)uspace_wbuf; 61 } 56 62 } 57 63
Note:
See TracChangeset
for help on using the changeset viewer.