Deleted Added
full compact
swtch.S (229677) swtch.S (232449)
1/* $OpenBSD: locore.S,v 1.18 1998/09/15 10:58:53 pefo Exp $ */
2/*-
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Digital Equipment Corporation and Ralph Campbell.
8 *

--- 33 unchanged lines hidden (view full) ---

42 * v 1.1 89/07/11 17:55:04 nelson Exp SPRITE (DECWRL)
43 * from: Header: /sprite/src/kernel/mach/ds3100.md/RCS/machAsm.s,
44 * v 9.2 90/01/29 18:00:39 shirriff Exp SPRITE (DECWRL)
45 * from: Header: /sprite/src/kernel/vm/ds3100.md/vmPmaxAsm.s,
46 * v 1.1 89/07/10 14:27:41 nelson Exp SPRITE (DECWRL)
47 *
48 * from: @(#)locore.s 8.5 (Berkeley) 1/4/94
49 * JNPR: swtch.S,v 1.6.2.1 2007/09/10 10:36:50 girish
1/* $OpenBSD: locore.S,v 1.18 1998/09/15 10:58:53 pefo Exp $ */
2/*-
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Digital Equipment Corporation and Ralph Campbell.
8 *

--- 33 unchanged lines hidden (view full) ---

42 * v 1.1 89/07/11 17:55:04 nelson Exp SPRITE (DECWRL)
43 * from: Header: /sprite/src/kernel/mach/ds3100.md/RCS/machAsm.s,
44 * v 9.2 90/01/29 18:00:39 shirriff Exp SPRITE (DECWRL)
45 * from: Header: /sprite/src/kernel/vm/ds3100.md/vmPmaxAsm.s,
46 * v 1.1 89/07/10 14:27:41 nelson Exp SPRITE (DECWRL)
47 *
48 * from: @(#)locore.s 8.5 (Berkeley) 1/4/94
49 * JNPR: swtch.S,v 1.6.2.1 2007/09/10 10:36:50 girish
50 * $FreeBSD: head/sys/mips/mips/swtch.S 229677 2012-01-06 01:23:26Z gonzo $
50 * $FreeBSD: head/sys/mips/mips/swtch.S 232449 2012-03-03 08:19:18Z jmallett $
51 */
52
53/*
54 * Contains code that is the first executed at boot time plus
55 * assembly language support routines.
56 */
57
51 */
52
53/*
54 * Contains code that is the first executed at boot time plus
55 * assembly language support routines.
56 */
57
58#include "opt_compat.h"
58#include "opt_cputype.h"
59#include <sys/syscall.h>
60#include <machine/asm.h>
61#include <machine/cpu.h>
62#include <machine/cpuregs.h>
63#include <machine/regnum.h>
64#include <machine/pte.h>
65

--- 565 unchanged lines hidden (view full) ---

631 .globl _C_LABEL(esigcode)
632_C_LABEL(esigcode):
633
634 .data
635 .globl szsigcode
636szsigcode:
637 .long esigcode-sigcode
638 .text
59#include "opt_cputype.h"
60#include <sys/syscall.h>
61#include <machine/asm.h>
62#include <machine/cpu.h>
63#include <machine/cpuregs.h>
64#include <machine/regnum.h>
65#include <machine/pte.h>
66

--- 565 unchanged lines hidden (view full) ---

632 .globl _C_LABEL(esigcode)
633_C_LABEL(esigcode):
634
635 .data
636 .globl szsigcode
637szsigcode:
638 .long esigcode-sigcode
639 .text
640
641#if (defined(__mips_n32) || defined(__mips_n64)) && defined(COMPAT_FREEBSD32)
642 .globl _C_LABEL(sigcode32)
643_C_LABEL(sigcode32):
644 addu a0, sp, SIGF32_UC # address of ucontext
645 li v0, SYS_sigreturn
646# sigreturn (ucp)
647 syscall
648 break 0 # just in case sigreturn fails
649 .globl _C_LABEL(esigcode32)
650_C_LABEL(esigcode32):
651
652 .data
653 .globl szsigcode32
654szsigcode32:
655 .long esigcode32-sigcode32
656 .text
657#endif