Ignore:
File:
1 edited

Legend:

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

    r5360cf0 ra1a83e5e  
    3131#include <register.h>
    3232
    33 #define INITIAL_STACK_SIZE  8192
     33#define INITIAL_STACK_SIZE      8192
    3434
    35 #define NWINDOWS  8
     35#define NWINDOWS                8
    3636
    3737.register %g2, #scratch
     
    5757        .half 0
    5858        .half 0
    59 
    6059.global silo_ramdisk_image
    6160silo_ramdisk_image:
    6261        .word 0
    63 
    6462.global silo_ramdisk_size
    6563silo_ramdisk_size:
     
    6765
    6866.align 8
    69 1:
     671:     
    7068        /*
    7169         * Disable interrupts and disable address masking.
     
    7371        wrpr %g0, PSTATE_PRIV_BIT, %pstate
    7472       
    75         wrpr %g0, NWINDOWS - 2, %cansave   ! set maximum saveable windows
    76         wrpr %g0, 0, %canrestore           ! get rid of windows we will never need again
    77         wrpr %g0, 0, %otherwin             ! make sure the window state is consistent
    78         wrpr %g0, NWINDOWS - 1, %cleanwin  ! prevent needless clean_window traps for kernel
    79        
     73        wrpr %g0, NWINDOWS - 2, %cansave        ! set maximum saveable windows
     74        wrpr %g0, 0, %canrestore                ! get rid of windows we will never need again
     75        wrpr %g0, 0, %otherwin                  ! make sure the window state is consistent
     76        wrpr %g0, NWINDOWS - 1, %cleanwin       ! prevent needless clean_window traps for kernel
     77
    8078        set initial_stack_top, %sp
    8179        add %sp, -STACK_BIAS, %sp
    82        
     80
    8381        set ofw_cif, %l0
    84        
    85         call ofw_init   ! initialize OpenFirmware
     82 
     83        call ofw_init           ! initialize OpenFirmware
    8684        stx %o4, [%l0]
    8785       
     
    9290initial_stack:
    9391        .space INITIAL_STACK_SIZE
    94 
    9592initial_stack_top:
    9693        .space STACK_WINDOW_SAVE_AREA_SIZE
Note: See TracChangeset for help on using the changeset viewer.