4 * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
5 * Copyright 1999,2000,2001 Bernardo Innocenti <bernie@develer.com>
9 * \brief i386 context switch
13 * \author Bernardo Innocenti <bernie@develer.com>
18 * Revision 1.1 2004/05/23 17:27:00 bernie
19 * Import kern/ subdirectory.
23 !!!!!! THIS FILE HAS NOT BEEN REVISED FOR THE NEW SCHEDULER API !!!!!!
25 /* I know it's ugly... */
28 /* void AsmSwitchContext(void * new_sp, void ** save_sp) */
29 .globl AsmSwitchContext
38 movl 0x24(%esp),%ebp /* ebp = save_sp */
39 movl %esp,(%ebp) /* *save_sp = esp */
40 movl 0x20(%esp),%esp /* esp = new_sp */
50 /* void AsmReplaceContext(void * new_sp, void ** dummy) */
51 .globl AsmReplaceContext
53 movl 4(%esp),%esp /* esp = new_sp */