]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - cpu/mpc824x/drivers/dma/dma2.S
* Code cleanup:
[karo-tx-uboot.git] / cpu / mpc824x / drivers / dma / dma2.S
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
19 load_runtime_reg:
20
21         lwbrx   r3,r4,r3
22         sync
23
24         bclr 20, 0
25
26 /****************************************************************
27  * function: store_runtime_reg
28  *
29  * input: r3 - value of eumbbar
30  *        r4 - register offset in embedded utility space
31  *        r5 - new value to be stored
32  *
33  ****************************************************************/
34         .text
35         .align 2
36         .global store_runtime_reg
37 store_runtime_reg:
38
39         stwbrx r5,  r4, r3
40         sync
41
42         bclr   20,0