Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 5360cf0 in mainline


Ignore:
Timestamp:
2009-08-20T16:48:08Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master
Children:
a11099f
Parents:
00a020d
Message:

coding style (no change in functionality)

Location:
boot/arch/sparc64/loader
Files:
3 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
  • boot/arch/sparc64/loader/register.h

    r00a020d r5360cf0  
    3030#define BOOT_sparc64_REGISTER_H_
    3131
    32 #define PSTATE_IE_BIT   2
    33 #define PSTATE_PRIV_BIT 4
    34 #define PSTATE_AM_BIT   8
     32#define PSTATE_IE_BIT    2
     33#define PSTATE_PRIV_BIT  4
     34#define PSTATE_AM_BIT    8
    3535
    36 #define ASI_ICBUS_CONFIG                0x4a
    37 #define ICBUS_CONFIG_MID_SHIFT          17
     36#define ASI_ICBUS_CONFIG        0x4a
     37#define ICBUS_CONFIG_MID_SHIFT  17
    3838
    3939#endif
  • boot/arch/sparc64/loader/stack.h

    r00a020d r5360cf0  
    3030#define BOOT_sparc64_STACK_H_
    3131
    32 #define STACK_ALIGNMENT                 16
    33 #define STACK_BIAS                      2047
    34 #define STACK_WINDOW_SAVE_AREA_SIZE     (16*8)
     32#define STACK_ALIGNMENT              16
     33#define STACK_BIAS                   2047
     34#define STACK_WINDOW_SAVE_AREA_SIZE  (16 * 8)
    3535
    3636#endif
Note: See TracChangeset for help on using the changeset viewer.