diff options
author | wdenk <wdenk> | 2001-11-28 17:49:55 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2001-11-28 17:49:55 +0000 |
commit | 327f7a020a3037ae8ef6c94488d5e9a3aa772943 (patch) | |
tree | e9cdb59ef86fef010d1133a2589577509afe7523 /cpu/mpc824x/drivers/i2o/i2o2.S | |
parent | 12e4407c6a42284671bbcb4acceeedc00df04cb5 (diff) | |
download | u-boot-imx-327f7a020a3037ae8ef6c94488d5e9a3aa772943.zip u-boot-imx-327f7a020a3037ae8ef6c94488d5e9a3aa772943.tar.gz u-boot-imx-327f7a020a3037ae8ef6c94488d5e9a3aa772943.tar.bz2 |
Initial revision
Diffstat (limited to 'cpu/mpc824x/drivers/i2o/i2o2.S')
-rw-r--r-- | cpu/mpc824x/drivers/i2o/i2o2.S | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/cpu/mpc824x/drivers/i2o/i2o2.S b/cpu/mpc824x/drivers/i2o/i2o2.S new file mode 100644 index 0000000..1033979 --- /dev/null +++ b/cpu/mpc824x/drivers/i2o/i2o2.S @@ -0,0 +1,48 @@ +/************************************** + * + * 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: + + xor r5,r5,r5 + or r5,r5,r3 /* save eumbbar */ + + lwbrx r3,r4,r5 + 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: + + xor r0,r0,r0 + + stwbrx r5, r4, r3 + sync + + bclr 20,0 + |