Changeset 0ffa3ef5 in mainline for arch/sparc64/src/asm.S


Ignore:
Timestamp:
2006-07-10T20:57:30Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
11675207
Parents:
7f1c620
Message:

Sync OpenFirmware functionality with boot.
Random cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/sparc64/src/asm.S

    r7f1c620 r0ffa3ef5  
    2727#
    2828
     29#include <arch/stack.h>
     30#include <arch/register.h>
     31
    2932.text
    3033
     
    3538.global memcpy_to_uspace_failover_address
    3639.global memsetb
     40
    3741
    3842memcpy:
     
    5256        nop
    5357
     58.global ofw
     59ofw:
     60        save %sp, -STACK_WINDOW_SAVE_AREA_SIZE, %sp
     61        set ofw_cif, %l0
     62        ldx [%l0], %l0
     63
     64        rdpr  %pstate, %l1
     65        and  %l1, ~PSTATE_AM_BIT, %l2
     66        wrpr  %l2, 0, %pstate
     67           
     68        jmpl %l0, %o7
     69        mov %i0, %o0
     70       
     71        wrpr  %l1, 0, %pstate
     72
     73        ret
     74        restore %o0, 0, %o0
Note: See TracChangeset for help on using the changeset viewer.