1 ;* Copyright 2004 Develer S.r.l. (http://www.develer.com/)
2 ;* Copyright 1999,2000,2001 Bernardo Innocenti <bernie@develer.com>
6 ;* \author Bernardo Innocenti <bernie@develer.com>
10 ;* Revision 1.1 2004/05/23 17:27:00 bernie
11 ;* Import kern/ subdirectory.
15 !!!!!! THIS FILE HAS NOT BEEN REVISED FOR THE NEW SCHEDULER API !!!!!!
24 PUBLIC AsmSwitchContext
25 PUBLIC AsmReplaceContext
28 ;* Perform low-level process context switching
30 ;* void AsmSwitchContext(cpustack_t *new_sp, cpustack_t **save_sp)
33 ;* Replace current context with new process
35 ;* void AsmReplaceContext(cpustack_t *new_sp, cpustack_t **dummy)
41 ; pop 2nd parameter from the stack
61 st SP,[?GR+2] ; save old stack pointer
65 ld SP,?GR+0 ; load new stack pointer
67 ; restore all registers
85 ; restore execution in new context