]> git.ipfire.org Git - people/ms/u-boot.git/blame - cpu/mpc824x/drivers/i2o/i2o2.S
* Code cleanup:
[people/ms/u-boot.git] / cpu / mpc824x / drivers / i2o / i2o2.S
CommitLineData
327f7a02
WD
1/**************************************
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
8bde7f77 22 or r5,r5,r3 /* save eumbbar */
327f7a02
WD
23
24 lwbrx r3,r4,r5
25 sync
26
8bde7f77 27 bclr 20, 0
327f7a02
WD
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 ****************************************************************/
8bde7f77
WD
37 .text
38 .align 2
39 .global store_runtime_reg
327f7a02
WD
40store_runtime_reg:
41
42 xor r0,r0,r0
43
44 stwbrx r5, r4, r3
45 sync
46
47 bclr 20,0