mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-25 12:33:41 +00:00
8bde7f776c
- remove trailing white space, trailing empty lines, C++ comments, etc. - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c) * Patches by Kenneth Johansson, 25 Jun 2003: - major rework of command structure (work done mostly by Michal Cendrowski and Joakim Kristiansen)
42 lines
899 B
ArmAsm
42 lines
899 B
ArmAsm
/**************************************
|
|
*
|
|
* 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
|