summaryrefslogtreecommitdiff
path: root/cpu/mpc824x/drivers/dma/dma2.S
blob: dab1de34935d9ca471897f305b350bb8b903f8ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/**************************************
 *
 * copyright @ Motorola, 1999
 *
 **************************************/

/**********************************************************
 * function: load_runtime_reg
 *
 * input:  r3 - value of eumbbar
 *         r4 - register offset in embedded utility space
 *
 * output: r3 - register content
 **********************************************************/
      .text
      .align 2
      .global load_runtime_reg

load_runtime_reg:

	      lwbrx	r3,r4,r3
	      sync

 	      bclr 20, 0

/****************************************************************
 * function: store_runtime_reg
 *
 * input: r3 - value of eumbbar
 *        r4 - register offset in embedded utility space
 *        r5 - new value to be stored
 *
 ****************************************************************/
           .text
           .align 2
           .global store_runtime_reg
store_runtime_reg:

	      stwbrx r5,  r4, r3
	      sync

		  bclr   20,0