Changeset 26aafe8 in mainline for kernel/arch/ia64/src


Ignore:
Timestamp:
2011-05-19T16:47:49Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a6d8726
Parents:
bcaca55
Message:

cleanup the huge mess related to stacks, their sizes and locations
use two frames for kernel stacks by default on all platforms (to play it safe)

Location:
kernel/arch/ia64/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/ia64.c

    rbcaca55 r26aafe8  
    250250
    251251        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    252             ((uintptr_t) kernel_uarg->uspace_stack) + PAGE_SIZE -
     252            ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE -
    253253            ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT),
    254             ((uintptr_t) kernel_uarg->uspace_stack) + PAGE_SIZE,
     254            ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE,
    255255            (uintptr_t) kernel_uarg->uspace_uarg, psr.value, rsc.value);
    256256
  • kernel/arch/ia64/src/proc/scheduler.c

    rbcaca55 r26aafe8  
    8686                "bsw.1\n"
    8787                :
    88                 : "r" (&THREAD->kstack[THREAD_STACK_SIZE]),
    89                   "r" (&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA])
     88                : "r" (&THREAD->kstack[STACK_SIZE]),
     89                  "r" (&THREAD->kstack[STACK_SIZE - SP_DELTA])
    9090                );
    9191}
Note: See TracChangeset for help on using the changeset viewer.