Changeset 2550b6e in mainline


Ignore:
Timestamp:
2011-02-25T19:23:10Z (13 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b9c229b
Parents:
6e84dc3
Message:

Do not disable interrupts twice before switching to userspace on sun4v.
Allocate an ABI-compliant stack frame.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/sun4v/asm.S

    r6e84dc3 r2550b6e  
    4141.global switch_to_userspace
    4242switch_to_userspace:
    43         wrpr PSTATE_PRIV_BIT, %pstate
    44         save %o1, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
     43        save %o1, -(STACK_WINDOW_SAVE_AREA_SIZE + STACK_ARG_SAVE_AREA_SIZE), %sp
    4544        flushw
    4645        wrpr %g0, 0, %cleanwin          ! avoid information leak
Note: See TracChangeset for help on using the changeset viewer.