grub2: bring back build of aros-side grub2 tools
[AROS.git] / rom / exec / setsr.c
blobbbe4878cfcfd1e683be65c2c7f25d3882fca9f0e
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: SetSR() - Modify the CPU status register.
6 Lang: english
7 */
9 /*****************************************************************************
11 NAME */
12 #include <proto/exec.h>
14 AROS_LH2(ULONG, SetSR,
16 /* SYNOPSIS */
17 AROS_LHA(ULONG, newSR, D0),
18 AROS_LHA(ULONG, mask, D1),
20 /* LOCATION */
21 struct ExecBase *, SysBase, 24, Exec)
23 /* FUNCTION
24 Read/Modify the CPU status register in an easy way. Only the bits
25 set it the mask parameter will be changed.
27 The bits in the register mapped to those of the Motorola MC680x0
28 family of microprocessors.
30 INPUTS
31 newSR - The new contents of the status register.
32 mask - Mask of bits to change.
34 RESULT
35 The old contents of the status register or ~0UL if this function
36 is not implemented.
38 NOTES
39 This function is of limited use.
41 EXAMPLE
42 You can read the status register by calling SetSR(0,0).
44 BUGS
45 This function may do nothing on non-mc680x0 systems.
47 SEE ALSO
49 INTERNALS
51 ******************************************************************************/
53 AROS_LIBFUNC_INIT
56 You can just as easily leave this function as a NOP, or alternatively
57 map the flag bits to your local processor and implement the function.
59 I used to have this as a print, but it is used by the math*.library's
62 return ~0;
64 AROS_LIBFUNC_EXIT
65 } /* SetSR() */