Changeset 94d614e in mainline for kernel/arch/sparc64/src/start.S


Ignore:
Timestamp:
2006-07-13T17:32:38Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a5f76758
Parents:
63cda71
Message:

Remove OpenFirmware calls from kernel/ entirely.

Switch the sparc64 port to use bootinfo.

Copy memcpy from boot/ to sparc64 kernel/ and
adjust it for memcpy_from/to_uspace.

File:
1 edited

Legend:

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

    r63cda71 r94d614e  
    2727#
    2828
    29 #include <arch/boot/boot.h>
    3029#include <arch/regdef.h>
    3130
     
    4039 * Here is where the kernel is passed control
    4140 * from the boot loader.
     41 *
     42 * The registers are expected to be in this state:
     43 * %o0 bootinfo structure address
     44 * %o1 bootinfo structure size
    4245 */
    4346
     
    4649        flushw                          ! flush all but the active register window
    4750
     51        /*
     52         * Disable interrupts and disable 32-bit address masking.
     53         */
    4854        rdpr %pstate, %l0
    49         and %l0, ~PSTATE_AM_BIT, %l0
     55        and %l0, ~(PSTATE_AM_BIT|PSTATE_IE_BIT), %l0
    5056        wrpr %l0, 0, %pstate
    5157
    52         set ofw_cif, %l0
    53 
    54         call ofw_init
    55         stx %o4, [%l0]
    56 
    57         call ofw_init_memmap
     58        /*
     59         * Copy the bootinfo structure passed from the boot loader
     60         * to the kernel bootinfo structure.
     61         */
     62        mov %o1, %o2
     63        mov %o0, %o1
     64        set bootinfo, %o0
     65        call memcpy
    5866        nop
    5967
Note: See TracChangeset for help on using the changeset viewer.