Make sigcode.s and sunos_sigcode.s build as their own stand-alone files.

This commit is contained in:
thorpej 2024-01-17 12:33:49 +00:00
parent c935f8294f
commit 6279c1e992
17 changed files with 27 additions and 148 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.169 2024/01/17 12:19:05 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.170 2024/01/17 12:33:49 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -1047,14 +1047,6 @@ Lnoflush:
addql #8,%sp | pop SSP and stack adjust count
rte
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.125 2024/01/17 12:19:05 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.126 2024/01/17 12:33:49 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -1036,14 +1036,6 @@ Lnoflush:
addql #8,%sp | pop SSP and stack adjust count
rte
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.45 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.46 2024/01/17 12:33:49 thorpej Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@ -719,14 +719,6 @@ Lnosir:
Ldorte:
rte | real return
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.183 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.184 2024/01/17 12:33:49 thorpej Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@ -941,14 +941,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | and do real RTE
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.81 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.82 2024/01/17 12:33:49 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -643,14 +643,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | and do real RTE
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
# $NetBSD: files.m68k,v 1.53 2024/01/17 12:19:07 thorpej Exp $
# $NetBSD: files.m68k,v 1.54 2024/01/17 12:33:51 thorpej Exp $
#
defflag opt_fpsp.h FPSP
@ -26,9 +26,13 @@ file arch/m68k/m68k/process_machdep.c
file arch/m68k/m68k/reenter_syscall.s
file arch/m68k/m68k/regdump.c
file arch/m68k/m68k/sig_machdep.c
file arch/m68k/m68k/sigcode.s
file arch/m68k/m68k/support.s
file arch/m68k/m68k/m68k_syscall.c
file arch/m68k/m68k/sunos_sigcode.s compat_sunos
file arch/m68k/m68k/sunos_syscall.c compat_sunos
file arch/m68k/m68k/linux_syscall.c compat_linux
file arch/m68k/m68k/compat_13_machdep.c compat_13

View File

@ -1,4 +1,4 @@
/* $NetBSD: sigcode.s,v 1.15 2013/08/01 13:42:52 matt Exp $ */
/* $NetBSD: sigcode.s,v 1.16 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -38,12 +38,11 @@
* @(#)locore.s 8.6 (Berkeley) 5/27/94
*/
/*
* NOTICE: This is not a standalone file. To use it, #include it in
* your port's locore.s, like so:
*
* #include <m68k/m68k/sigcode.s>
*/
#include <machine/asm.h>
#include "assym.h"
.file "sigcode.s"
/*
* Signal trampoline; copied to top of user stack.

View File

@ -1,4 +1,4 @@
/* $NetBSD: sunos_sigcode.s,v 1.7 2023/09/26 14:33:55 tsutsui Exp $ */
/* $NetBSD: sunos_sigcode.s,v 1.8 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -40,13 +40,7 @@
#include <machine/asm.h>
/*
* NOTICE: This is typically included in port's locore.s, like so:
*
* #ifdef COMPAT_SUNOS
* #include <m68k/m68k/sunos_sigcode.s>
* #endif
*/
.file "sunos_sigcode.s"
.data
.align 2

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.182 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.183 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -883,14 +883,6 @@ ASENTRY_NOPROFILE(rei)
.Ldorte:
rte | real return
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.129 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.130 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -954,14 +954,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | and do real RTE
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.84 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.85 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -761,14 +761,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | real return
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.84 2024/01/17 12:19:06 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.85 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1998 Darrin B. Jewell
@ -708,14 +708,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | and do real RTE
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.37 2024/01/17 12:19:07 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.38 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@ -475,16 +475,6 @@ Ldorte:
* (The MMU has a "boot" bit that forces access to the PROM)
*/
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
.text
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.109 2024/01/17 12:19:07 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.110 2024/01/17 12:33:50 thorpej Exp $ */
/*
* Copyright (c) 1980, 1990, 1993
@ -521,16 +521,6 @@ Ldorte:
* (The MMU has a "boot" bit that forces access to the PROM)
*/
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
.text
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.77 2024/01/17 12:19:07 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.78 2024/01/17 12:33:51 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -506,16 +506,6 @@ Ldorte:
* (The MMU has a "boot" bit that forces access to the PROM)
*/
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
.text
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.12 2024/01/17 12:19:07 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.13 2024/01/17 12:33:51 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -551,14 +551,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | and do real RTE
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: locore.s,v 1.130 2024/01/17 12:19:07 thorpej Exp $ */
/* $NetBSD: locore.s,v 1.131 2024/01/17 12:33:51 thorpej Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@ -757,14 +757,6 @@ Laststkadj:
movl %sp@,%sp | and our SP
rte | and do real RTE
/*
* Use common m68k sigcode.
*/
#include <m68k/m68k/sigcode.s>
#ifdef COMPAT_SUNOS
#include <m68k/m68k/sunos_sigcode.s>
#endif
/*
* Primitives
*/