revert between 56095 -> 55830 in arch
[AROS.git] / arch / .unmaintained / ppc-native / exec / setsr.s
blob711a52587097fe5b29db3fa51ac07e37ca372835
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /*****************************************************************************
8 NAME
10 AROS_LH2(ULONG, SetSR,
12 SYNOPSIS
13 AROS_LHA(ULONG, newSR, D0),
14 AROS_LHA(ULONG, mask, D1),
16 LOCATION
17 struct ExecBase *, SysBase, 24, Exec)
19 FUNCTION
20 Read/Modify the CPU status register in an easy way. Only the bits set in
21 the mask parameter will be changed.
23 INPUTS
24 newSR - New contents of sr.
25 mask - Bits to change.
27 RESULT
28 Old contents of sr.
30 NOTES
32 EXAMPLE
34 BUGS
36 SEE ALSO
38 INTERNALS
40 HISTORY
42 ******************************************************************************/
44 #include "machine.i"
46 .text
47 .balign 4
48 .globl AROS_SLIB_ENTRY(SetSR,Exec)
49 .type AROS_SLIB_ENTRY(SetSR,Exec),@function
50 AROS_SLIB_ENTRY(SetSR,Exec):
51 subr
52 li ret,0
53 rts