4 * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
5 * Copyright 1999,2000,2001 Bernardo Innocenti <bernie@develer.com>
6 * This file is part of DevLib - See devlib/README for information.
9 * \brief i386 context switch
13 * \author Bernardo Innocenti <bernie@develer.com>
18 * Revision 1.2 2004/06/06 16:14:12 bernie
19 * Add DevLib license information.
21 * Revision 1.1 2004/05/23 17:27:00 bernie
22 * Import kern/ subdirectory.
26 !!!!!! THIS FILE HAS NOT BEEN REVISED FOR THE NEW SCHEDULER API !!!!!!
28 /* I know it's ugly... */
31 /* void AsmSwitchContext(void * new_sp, void ** save_sp) */
32 .globl AsmSwitchContext
41 movl 0x24(%esp),%ebp /* ebp = save_sp */
42 movl %esp,(%ebp) /* *save_sp = esp */
43 movl 0x20(%esp),%esp /* esp = new_sp */
53 /* void AsmReplaceContext(void * new_sp, void ** dummy) */
54 .globl AsmReplaceContext
56 movl 4(%esp),%esp /* esp = new_sp */