2001-11-28 17:49:55 +00:00
|
|
|
/**************************************
|
|
|
|
*
|
|
|
|
* copyright @ Motorola, 1999
|
|
|
|
*
|
|
|
|
**************************************/
|
|
|
|
|
|
|
|
/**********************************************************
|
|
|
|
* function: load_runtime_reg
|
|
|
|
*
|
|
|
|
* input: r3 - value of eumbbar
|
|
|
|
* r4 - register offset in embedded utility space
|
|
|
|
*
|
|
|
|
* output: r3 - register content
|
|
|
|
**********************************************************/
|
2003-06-27 21:31:46 +00:00
|
|
|
.text
|
|
|
|
.align 2
|
|
|
|
.global load_runtime_reg
|
2001-11-28 17:49:55 +00:00
|
|
|
|
|
|
|
load_runtime_reg:
|
|
|
|
|
2003-06-27 21:31:46 +00:00
|
|
|
lwbrx r3,r4,r3
|
|
|
|
sync
|
2001-11-28 17:49:55 +00:00
|
|
|
|
2003-06-27 21:31:46 +00:00
|
|
|
bclr 20, 0
|
2001-11-28 17:49:55 +00:00
|
|
|
|
|
|
|
/****************************************************************
|
|
|
|
* function: store_runtime_reg
|
|
|
|
*
|
|
|
|
* input: r3 - value of eumbbar
|
|
|
|
* r4 - register offset in embedded utility space
|
|
|
|
* r5 - new value to be stored
|
|
|
|
*
|
|
|
|
****************************************************************/
|
2003-06-27 21:31:46 +00:00
|
|
|
.text
|
|
|
|
.align 2
|
|
|
|
.global store_runtime_reg
|
2001-11-28 17:49:55 +00:00
|
|
|
store_runtime_reg:
|
|
|
|
|
2003-06-27 21:31:46 +00:00
|
|
|
stwbrx r5, r4, r3
|
|
|
|
sync
|
2001-11-28 17:49:55 +00:00
|
|
|
|
2003-06-27 21:31:46 +00:00
|
|
|
bclr 20,0
|