Changeset 5360cf0 in mainline for boot/arch/sparc64/loader/boot.S


Ignore:
Timestamp:
2009-08-20T16:48:08Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a11099f
Parents:
00a020d
Message:

coding style (no change in functionality)

File:
1 edited

Legend:

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

    r00a020d r5360cf0  
    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
    5960.global silo_ramdisk_image
    6061silo_ramdisk_image:
    6162        .word 0
     63
    6264.global silo_ramdisk_size
    6365silo_ramdisk_size:
     
    6567
    6668.align 8
    67 1:     
     691:
    6870        /*
    6971         * Disable interrupts and disable address masking.
     
    7173        wrpr %g0, PSTATE_PRIV_BIT, %pstate
    7274       
    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 
     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       
    7880        set initial_stack_top, %sp
    7981        add %sp, -STACK_BIAS, %sp
    80 
     82       
    8183        set ofw_cif, %l0
    82  
    83         call ofw_init           ! initialize OpenFirmware
     84       
     85        call ofw_init   ! initialize OpenFirmware
    8486        stx %o4, [%l0]
    8587       
     
    9092initial_stack:
    9193        .space INITIAL_STACK_SIZE
     94
    9295initial_stack_top:
    9396        .space STACK_WINDOW_SAVE_AREA_SIZE
Note: See TracChangeset for help on using the changeset viewer.