2 ** Copyright 2001-2003, Travis Geiselbrecht. All rights reserved.
3 ** Distributed under the terms of the NewOS License.
7 /* void switch_stacks_and_call(unsigned int new_stack, void *func, int arg0, int arg1) */
8 .globl switch_stacks_and_call
9 switch_stacks_and_call:
10 mr r1, r3 /* load the stack pointer */
16 /* void getibats(int bats[8]); */
37 // void setibats(int bats[8]);
74 // void getdbats(int bats[8]);
95 // void setdbats(int bats[8]);
123 // unsigned int getsdr1();
129 // void setsdr1(unsigned int sdr);
137 // unsigned int getsr(unsigned int va);
144 // void setsr(unsigned int va, unsigned int val);
151 // unsigned int getmsr();
157 // void setmsr(unsigned int msr);