Changeset a5f76758 in mainline


Ignore:
Timestamp:
2006-07-13T19:50:06Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
10b890b
Parents:
94d614e
Message:

Switch to identically mapped stack during boot.
Put stack related and register related macros to dedicated
header files.

Location:
boot/arch/sparc64/loader
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/asm.S

    r94d614e ra5f76758  
    2727#
    2828
    29 #define STACK_WINDOW_SAVE_AREA_SIZE     (16*8)
    30 
    31 #define PSTATE_AM_BIT   8
     29#include <stack.h>
     30#include <register.h>
    3231
    3332.text
  • boot/arch/sparc64/loader/boot.S

    r94d614e ra5f76758  
    2727#
    2828
    29 #define INITIAL_STACK 0x0
     29#include <stack.h>
     30#include <register.h>
    3031
    31 #define PSTATE_IE_BIT   2
    32 #define PSTATE_AM_BIT   8
     32#define INITIAL_STACK_SIZE      1024
    3333
    3434.register %g2, #scratch
     
    6363        wrpr %g2, 0, %pstate
    6464
    65         # TODO: set initial stack
     65        set initial_stack_top, %g3
     66        add %g3, -STACK_BIAS, %sp
    6667
    6768        set ofw_cif, %l0
     
    7273        b bootstrap
    7374        nop
     75
     76.align 16
     77initial_stack:
     78        .space INITIAL_STACK_SIZE
     79initial_stack_top:
     80        .space STACK_WINDOW_SAVE_AREA_SIZE
Note: See TracChangeset for help on using the changeset viewer.