Ignore:
Timestamp:
2013-12-10T22:33:33Z (10 years ago)
Author:
Jakub Klama <jakub.klama@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f7a33de
Parents:
2955bb9
Message:

Fixes as follows:

  • memcpy_from/to_uspace - fixed return value when size is 0
  • saving UWB pointer after thead runs
  • preemptible trap/syscall fixes
  • support for missing page fault types in page_fault()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc32/src/proc/scheduler.c

    r2955bb9 r382fb4ba  
    4444void before_thread_runs_arch(void)
    4545{
    46         printf("before_thread_runs_arch(uspace=%d, kernel_sp=0x%08x\n", THREAD->uspace, (uintptr_t)THREAD->kstack + STACK_SIZE);
    4746        if (THREAD->uspace) {
    4847                uint32_t kernel_sp = (uint32_t) THREAD->kstack + STACK_SIZE - 8;
     
    5453void after_thread_ran_arch(void)
    5554{
     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        }
    5662}
    5763
Note: See TracChangeset for help on using the changeset viewer.