blob: 10339792bfe625410ec7d62d2148125c65172d87 [file] [log] [blame]
wdenk327f7a02001-11-28 17:49:55 +00001/**************************************
2 *
3 * copyright @ Motorola, 1999
4 *
5 **************************************/
6
7/**********************************************************
8 * function: load_runtime_reg
9 *
10 * input: r3 - value of eumbbar
11 * r4 - register offset in embedded utility space
12 *
13 * output: r3 - register content
14 **********************************************************/
15 .text
16 .align 2
17 .global load_runtime_reg
18
19load_runtime_reg:
20
21 xor r5,r5,r5
22 or r5,r5,r3 /* save eumbbar */
23
24 lwbrx r3,r4,r5
25 sync
26
27 bclr 20, 0
28
29/****************************************************************
30 * function: store_runtime_reg
31 *
32 * input: r3 - value of eumbbar
33 * r4 - register offset in embedded utility space
34 * r5 - new value to be stored
35 *
36 ****************************************************************/
37 .text
38 .align 2
39 .global store_runtime_reg
40store_runtime_reg:
41
42 xor r0,r0,r0
43
44 stwbrx r5, r4, r3
45 sync
46
47 bclr 20,0
48