1 /**************************************
3 * copyright @ Motorola, 1999
6 * This file contains two commonly used
7 * lower level utility routines.
9 * The utility routines are also in other
10 * Kahlua device driver libraries. The
11 * need to be linked in only once.
12 **************************************/
14 #include <ppc_asm.tmpl>
17 /**********************************************************
18 * function: load_runtime_reg
20 * input: r3 - value of eumbbar
21 * r4 - register offset in embedded utility space
23 * output: r3 - register content
24 **********************************************************/
27 .global load_runtime_reg
32 or r5,r5,r3 /* save eumbbar */
39 /****************************************************************
40 * function: store_runtime_reg
42 * input: r3 - value of eumbbar
43 * r4 - register offset in embedded utility space
44 * r5 - new value to be stored
46 ****************************************************************/
49 .global store_runtime_reg