cpu_switch.S (ac474627f4abc802c4383ec22181bf1cfb990d1e) | cpu_switch.S (267173e72dc9f967f9d2a8f3bd1e88aae0a417bb) |
---|---|
1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 1/*- 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * William Jolitz. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $Id: swtch.s,v 1.27 1996/01/30 12:54:15 davidg Exp $ | 36 * $Id: swtch.s,v 1.28 1996/02/02 18:30:06 davidg Exp $ |
37 */ 38 39#include "npx.h" /* for NNPX */ 40#include "opt_user_ldt.h" /* for USER_LDT */ 41#include "assym.s" /* for preprocessor defines */ 42#include <sys/errno.h> /* for error codes */ 43 44#include <machine/asmacros.h> /* for miscellaneous assembly macros */ --- 451 unchanged lines hidden (view full) --- 496 call _set_user_ldt 497 popl %edx 4982: 499#endif 500 501 sti 502 ret 503 | 37 */ 38 39#include "npx.h" /* for NNPX */ 40#include "opt_user_ldt.h" /* for USER_LDT */ 41#include "assym.s" /* for preprocessor defines */ 42#include <sys/errno.h> /* for error codes */ 43 44#include <machine/asmacros.h> /* for miscellaneous assembly macros */ --- 451 unchanged lines hidden (view full) --- 496 call _set_user_ldt 497 popl %edx 4982: 499#endif 500 501 sti 502 ret 503 |
504ENTRY(mvesp) 505 movl %esp,%eax 506 ret 507 | |
508/* 509 * savectx(pcb) 510 * Update pcb, saving current processor state. 511 */ 512ENTRY(savectx) 513 /* fetch PCB */ 514 movl 4(%esp),%ecx 515 --- 93 unchanged lines hidden --- | 504/* 505 * savectx(pcb) 506 * Update pcb, saving current processor state. 507 */ 508ENTRY(savectx) 509 /* fetch PCB */ 510 movl 4(%esp),%ecx 511 --- 93 unchanged lines hidden --- |