Changeset 208fa65 in mainline


Ignore:
Timestamp:
2006-09-09T12:34:08Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7bb6b06
Parents:
9b0f294
Message:

Revert last change.
The register window save area is automatically allocated by the SAVE instruction.

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

Legend:

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

    r9b0f294 r208fa65  
    9393                 */
    9494                uint64_t sp = (uintptr_t) THREAD->kstack + STACK_SIZE
    95                         - (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_WINDOW_SAVE_AREA_SIZE);
     95                        - (STACK_BIAS + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT));
    9696                write_to_ig_g6(sp);
    9797                write_to_ag_g6(sp);
  • kernel/arch/sparc64/src/sparc64.c

    r9b0f294 r208fa65  
    9999        switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
    100100                ((uintptr_t) kernel_uarg->uspace_stack) + STACK_SIZE
    101                 - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS + STACK_WINDOW_SAVE_AREA_SIZE),
     101                - (ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT) + STACK_BIAS),
    102102                (uintptr_t) kernel_uarg->uspace_uarg);
    103103
Note: See TracChangeset for help on using the changeset viewer.