Ignore:
Timestamp:
2010-05-12T20:00:19Z (14 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
be6cef1b
Parents:
f09d891
Message:

do not use ofw_quiesce() (it can actually make more harm than good)
fix the order of arguments passed from the bootloader to kernel on sparc64 (this fixes booting on machines with non-zero physical address start)
remove separate cache.S, use the code directly in start.S

File:
1 edited

Legend:

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

    rf09d891 rb97b348  
    9393 *
    9494 * The registers are expected to be in this state:
    95  *  - %o0 bootinfo structure address (BSP only)
    96  *  - %o1 starting address of physical memory
     95 *  - %o0 starting address of physical memory
    9796 *        + bootstrap processor flag
    9897 *          bits 63...1: physical memory starting address / 2
    9998 *          bit 0:       non-zero on BSP processor, zero on AP processors
     99 *  - %o1 bootinfo structure address (BSP only)
     100 *
    100101 *
    101102 * Moreover, we depend on boot having established the following environment:
     
    107108kernel_image_start:
    108109        mov BSP_FLAG, %l0
    109         and %o1, %l0, %l7                       ! l7 <= bootstrap processor?
    110         andn %o1, %l0, %l6                      ! l6 <= start of physical memory
    111         or %o0, %g0, %l0
     110        and %o0, %l0, %l7                       ! l7 <= bootstrap processor?
     111        andn %o0, %l0, %l6                      ! l6 <= start of physical memory
     112        or %o1, %g0, %l1
    112113
    113114        ! Get bits (PHYSMEM_ADDR_SIZE - 1):13 of physmem_base.
     
    246247        sub %sp, STACK_BIAS, %sp
    247248
    248         or %l0, %g0, %o0
     249        /*
     250         * Call arch_pre_main(bootinfo)
     251         */
     252        or %l1, %g0, %o0
    249253        call arch_pre_main
    250254        nop
Note: See TracChangeset for help on using the changeset viewer.