Rename assym.s to assym.inc

assym is only to be included by other .s files, and should never
actually be assembled by itself.

Reviewed by:	imp, bdrewery (earlier)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D14180
This commit is contained in:
Ed Maste 2018-03-20 17:58:51 +00:00
parent 9cffc92c62
commit fc2a8776a2
94 changed files with 109 additions and 109 deletions

View File

@ -34,7 +34,7 @@
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include <machine/timerreg.h> #include <machine/timerreg.h>
#include "assym.s" #include "assym.inc"
/* /*
* Resume entry point for real mode. * Resume entry point for real mode.

View File

@ -44,7 +44,7 @@
#include "opt_smp.h" #include "opt_smp.h"
#include "assym.s" #include "assym.inc"
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>

View File

@ -36,7 +36,7 @@
* master and slave interrupt controllers. * master and slave interrupt controllers.
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asmacros.h> #include <machine/asmacros.h>
/* /*

View File

@ -36,7 +36,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
/*****************************************************************************/ /*****************************************************************************/

View File

@ -42,7 +42,7 @@
#include "opt_compat.h" #include "opt_compat.h"
#include "opt_hwpmc_hooks.h" #include "opt_hwpmc_hooks.h"
#include "assym.s" #include "assym.inc"
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <machine/psl.h> #include <machine/psl.h>

View File

@ -31,7 +31,7 @@
#include <machine/pmap.h> #include <machine/pmap.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
/* /*
* Compiled KERNBASE location * Compiled KERNBASE location

View File

@ -29,7 +29,7 @@
#include <machine/asmacros.h> /* miscellaneous asm macros */ #include <machine/asmacros.h> /* miscellaneous asm macros */
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
.data /* So we can modify it */ .data /* So we can modify it */

View File

@ -30,7 +30,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include "assym.s" #include "assym.inc"
.text .text
/********************************************************************** /**********************************************************************

View File

@ -36,7 +36,7 @@
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include <machine/pmap.h> #include <machine/pmap.h>
#include "assym.s" #include "assym.inc"
.text .text

View File

@ -40,7 +40,7 @@
#define __ASSEMBLY__ #define __ASSEMBLY__
#include <xen/interface/elfnote.h> #include <xen/interface/elfnote.h>
#include "assym.s" #include "assym.inc"
.section __xen_guest .section __xen_guest
ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz, "FreeBSD") ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz, "FreeBSD")

View File

@ -28,7 +28,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include "assym.s" #include "assym.inc"
.text .text
/* /*

View File

@ -31,7 +31,7 @@
#include "linux_assym.h" /* system definitions */ #include "linux_assym.h" /* system definitions */
#include <machine/asmacros.h> /* miscellaneous asm macros */ #include <machine/asmacros.h> /* miscellaneous asm macros */
#include "assym.s" #include "assym.inc"
futex_fault: futex_fault:
movq $0,PCB_ONFAULT(%r8) movq $0,PCB_ONFAULT(%r8)

View File

@ -31,7 +31,7 @@
#include "linux32_assym.h" /* system definitions */ #include "linux32_assym.h" /* system definitions */
#include <machine/asmacros.h> /* miscellaneous asm macros */ #include <machine/asmacros.h> /* miscellaneous asm macros */
#include "assym.s" #include "assym.inc"
futex_fault: futex_fault:
movq $0,PCB_ONFAULT(%r8) movq $0,PCB_ONFAULT(%r8)

View File

@ -34,7 +34,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <amd64/sgx/sgxvar.h> #include <amd64/sgx/sgxvar.h>
#include "assym.s" #include "assym.inc"
.text .text

View File

@ -42,7 +42,7 @@
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#include "assym.s" #include "assym.inc"
#ifndef _ARM_ARCH_5E #ifndef _ARM_ARCH_5E

View File

@ -36,7 +36,7 @@
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asm.h> #include <machine/asm.h>
#include <sys/errno.h> #include <sys/errno.h>

View File

@ -38,7 +38,7 @@
* Created : 16/05/95 * Created : 16/05/95
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/armreg.h> #include <machine/armreg.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");

View File

@ -26,7 +26,7 @@
* *
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/asmacros.h> #include <machine/asmacros.h>

View File

@ -46,7 +46,7 @@
* *
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/armreg.h> #include <machine/armreg.h>

View File

@ -35,7 +35,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/armreg.h> #include <machine/armreg.h>
#include "assym.s" #include "assym.inc"
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
.syntax unified .syntax unified

View File

@ -24,7 +24,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include "assym.s" #include "assym.inc"
#include <sys/syscall.h> #include <sys/syscall.h>
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/asmacros.h> #include <machine/asmacros.h>

View File

@ -43,7 +43,7 @@
#include "opt_inet.h" #include "opt_inet.h"
#include <machine/asm.h> #include <machine/asm.h>
#include "assym.s" #include "assym.inc"
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
.syntax unified .syntax unified

View File

@ -33,7 +33,7 @@
* *
*/ */
#include "assym.s" #include "assym.inc"
#include <sys/syscall.h> #include <sys/syscall.h>
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/armreg.h> #include <machine/armreg.h>

View File

@ -28,7 +28,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include "assym.s" #include "assym.inc"
#include <sys/syscall.h> #include <sys/syscall.h>
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/asmacros.h> #include <machine/asmacros.h>
@ -38,7 +38,7 @@
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
/* We map 64MB of kernel unless overridden in assym.s by the kernel option. */ /* We map 64MB of kernel unless overridden in assym.inc by the kernel option. */
#ifndef LOCORE_MAP_MB #ifndef LOCORE_MAP_MB
#define LOCORE_MAP_MB 64 #define LOCORE_MAP_MB 64
#endif #endif

View File

@ -89,7 +89,7 @@
#include <machine/asm.h> #include <machine/asm.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#include "assym.s" #include "assym.inc"
.syntax unified .syntax unified

View File

@ -78,7 +78,7 @@
* *
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
#include <machine/asm.h> #include <machine/asm.h>

View File

@ -78,7 +78,7 @@
* *
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
#include <machine/asm.h> #include <machine/asm.h>

View File

@ -78,7 +78,7 @@
* *
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/asmacros.h> #include <machine/asmacros.h>

View File

@ -30,7 +30,7 @@
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#include "assym.s" #include "assym.inc"
/* /*
* void bzero(void *p, size_t size) * void bzero(void *p, size_t size)

View File

@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$");
#include <machine/vmparam.h> #include <machine/vmparam.h>
#include "assym.s" #include "assym.inc"
/* /*
* Fault handler for the copy{in,out} functions below. * Fault handler for the copy{in,out} functions below.

View File

@ -29,7 +29,7 @@
#include <machine/armreg.h> #include <machine/armreg.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#include "assym.s" #include "assym.inc"
.text .text

View File

@ -26,7 +26,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_kstack_pages.h" #include "opt_kstack_pages.h"
#include <sys/syscall.h> #include <sys/syscall.h>
#include <machine/asm.h> #include <machine/asm.h>

View File

@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$");
#include <machine/param.h> #include <machine/param.h>
#include <machine/vmparam.h> #include <machine/vmparam.h>
#include "assym.s" #include "assym.inc"
/* /*
* One of the fu* or su* functions failed, return -1. * One of the fu* or su* functions failed, return -1.

View File

@ -29,7 +29,7 @@
* *
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_kstack_pages.h" #include "opt_kstack_pages.h"
#include "opt_sched.h" #include "opt_sched.h"

View File

@ -35,7 +35,7 @@
#include <machine/armreg.h> #include <machine/armreg.h>
#include <machine/asm.h> #include <machine/asm.h>
#include "assym.s" #include "assym.inc"
/* /*
void dtrace_membar_producer(void) void dtrace_membar_producer(void)

View File

@ -34,7 +34,7 @@
#include <sys/cpuvar_defs.h> #include <sys/cpuvar_defs.h>
#include <sys/dtrace.h> #include <sys/dtrace.h>
#include "assym.s" #include "assym.inc"
#define INTR_POP \ #define INTR_POP \
MEXITCOUNT; \ MEXITCOUNT; \

View File

@ -35,7 +35,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#include <machine/armreg.h> #include <machine/armreg.h>
#include "assym.s" #include "assym.inc"
/* /*
void dtrace_membar_producer(void) void dtrace_membar_producer(void)

View File

@ -32,7 +32,7 @@
#include <sys/cpuvar_defs.h> #include <sys/cpuvar_defs.h>
#include <sys/dtrace.h> #include <sys/dtrace.h>
#include "assym.s" #include "assym.inc"
ENTRY(dtrace_invop_start) ENTRY(dtrace_invop_start)

View File

@ -28,7 +28,7 @@
* Use is subject to license terms. * Use is subject to license terms.
*/ */
#include "assym.s" #include "assym.inc"
#define _ASM #define _ASM

View File

@ -37,7 +37,7 @@
#include <machine/riscvreg.h> #include <machine/riscvreg.h>
#include <machine/asm.h> #include <machine/asm.h>
#include "assym.s" #include "assym.inc"
/* /*
void dtrace_membar_producer(void) void dtrace_membar_producer(void)

View File

@ -105,7 +105,7 @@ hptrr_lib.o optional hptrr \
# #
amd64/acpica/acpi_machdep.c optional acpi amd64/acpica/acpi_machdep.c optional acpi
acpi_wakecode.o optional acpi \ acpi_wakecode.o optional acpi \
dependency "$S/amd64/acpica/acpi_wakecode.S assym.s" \ dependency "$S/amd64/acpica/acpi_wakecode.S assym.inc" \
compile-with "${NORMAL_S}" \ compile-with "${NORMAL_S}" \
no-obj no-implicit-rule before-depend \ no-obj no-implicit-rule before-depend \
clean "acpi_wakecode.o" clean "acpi_wakecode.o"

View File

@ -443,7 +443,7 @@ dev/isci/scil/scif_sas_task_request_states.c optional isci
dev/isci/scil/scif_sas_timer.c optional isci dev/isci/scil/scif_sas_timer.c optional isci
i386/acpica/acpi_machdep.c optional acpi i386/acpica/acpi_machdep.c optional acpi
acpi_wakecode.o optional acpi \ acpi_wakecode.o optional acpi \
dependency "$S/i386/acpica/acpi_wakecode.S assym.s" \ dependency "$S/i386/acpica/acpi_wakecode.S assym.inc" \
compile-with "${NORMAL_S}" \ compile-with "${NORMAL_S}" \
no-obj no-implicit-rule before-depend \ no-obj no-implicit-rule before-depend \
clean "acpi_wakecode.o" clean "acpi_wakecode.o"

View File

@ -155,7 +155,7 @@ ${FULLKERNEL}: ${SYSTEM_DEP} vers.o
.endif .endif
${SYSTEM_LD_TAIL} ${SYSTEM_LD_TAIL}
OBJS_DEPEND_GUESS+= assym.s vnode_if.h ${BEFORE_DEPEND:M*.h} \ OBJS_DEPEND_GUESS+= assym.inc vnode_if.h ${BEFORE_DEPEND:M*.h} \
${MFILES:T:S/.m$/.h/} ${MFILES:T:S/.m$/.h/}
.for mfile in ${MFILES} .for mfile in ${MFILES}
@ -184,7 +184,7 @@ hack.pico: Makefile
${CC} ${HACK_EXTRA_FLAGS} -nostdlib hack.c -o hack.pico ${CC} ${HACK_EXTRA_FLAGS} -nostdlib hack.c -o hack.pico
rm -f hack.c rm -f hack.c
assym.s: $S/kern/genassym.sh genassym.o assym.inc: $S/kern/genassym.sh genassym.o
NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.TARGET} NM='${NM}' NMFLAGS='${NMFLAGS}' sh $S/kern/genassym.sh genassym.o > ${.TARGET}
genassym.o: $S/$M/$M/genassym.c genassym.o: $S/$M/$M/genassym.c
@ -212,7 +212,7 @@ _SKIP_DEPEND= 1
.endif .endif
kernel-depend: .depend kernel-depend: .depend
SRCS= assym.s vnode_if.h ${BEFORE_DEPEND} ${CFILES} \ SRCS= assym.inc vnode_if.h ${BEFORE_DEPEND} ${CFILES} \
${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} \ ${SYSTEM_CFILES} ${GEN_CFILES} ${SFILES} \
${MFILES:T:S/.m$/.h/} ${MFILES:T:S/.m$/.h/}
DEPENDOBJS+= ${SYSTEM_OBJS} genassym.o DEPENDOBJS+= ${SYSTEM_OBJS} genassym.o

View File

@ -454,14 +454,14 @@ acpi_quirks.h: ${SYSDIR}/tools/acpi_quirks2h.awk ${SYSDIR}/dev/acpica/acpi_quirk
${AWK} -f ${SYSDIR}/tools/acpi_quirks2h.awk ${SYSDIR}/dev/acpica/acpi_quirks ${AWK} -f ${SYSDIR}/tools/acpi_quirks2h.awk ${SYSDIR}/dev/acpica/acpi_quirks
.endif .endif
.if !empty(SRCS:Massym.s) || !empty(DPSRCS:Massym.s) .if !empty(SRCS:Massym.inc) || !empty(DPSRCS:Massym.inc)
CLEANFILES+= assym.s genassym.o CLEANFILES+= assym.inc genassym.o
DEPENDOBJS+= genassym.o DEPENDOBJS+= genassym.o
assym.s: genassym.o assym.inc: genassym.o
.if defined(KERNBUILDDIR) .if defined(KERNBUILDDIR)
genassym.o: opt_global.h genassym.o: opt_global.h
.endif .endif
assym.s: ${SYSDIR}/kern/genassym.sh assym.inc: ${SYSDIR}/kern/genassym.sh
sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET} sh ${SYSDIR}/kern/genassym.sh genassym.o > ${.TARGET}
genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c genassym.o: ${SYSDIR}/${MACHINE}/${MACHINE}/genassym.c
genassym.o: ${SRCS:Mopt_*.h} genassym.o: ${SRCS:Mopt_*.h}

View File

@ -26,7 +26,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>

View File

@ -29,7 +29,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
/* /*
* This is the Hyper-V vmbus channel direct callback interrupt. * This is the Hyper-V vmbus channel direct callback interrupt.

View File

@ -34,7 +34,7 @@
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include <machine/timerreg.h> #include <machine/timerreg.h>
#include "assym.s" #include "assym.inc"
/* /*
* Resume entry point. The BIOS enters here in real mode after POST with * Resume entry point. The BIOS enters here in real mode after POST with

View File

@ -42,7 +42,7 @@
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include <x86/apicreg.h> #include <x86/apicreg.h>
#include "assym.s" #include "assym.inc"
.text .text
SUPERALIGN_TEXT SUPERALIGN_TEXT

View File

@ -38,7 +38,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include "assym.s" #include "assym.inc"
/* /*
* Macros for interrupt entry, call to handler, and exit. * Macros for interrupt entry, call to handler, and exit.

View File

@ -32,7 +32,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include "assym.s" #include "assym.inc"
.data .data
ALIGN_DATA ALIGN_DATA

View File

@ -42,7 +42,7 @@
#include <machine/psl.h> #include <machine/psl.h>
#include <machine/trap.h> #include <machine/trap.h>
#include "assym.s" #include "assym.inc
#define SEL_RPL_MASK 0x0003 #define SEL_RPL_MASK 0x0003
#define GSEL_KPL 0x0020 /* GSEL(GCODE_SEL, SEL_KPL) */ #define GSEL_KPL 0x0020 /* GSEL(GCODE_SEL, SEL_KPL) */

View File

@ -52,7 +52,7 @@
#include <machine/pmap.h> #include <machine/pmap.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
/* /*
* XXX * XXX

View File

@ -35,7 +35,7 @@
#include <x86/apicreg.h> #include <x86/apicreg.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
#define R(x) ((x)-KERNBASE) #define R(x) ((x)-KERNBASE)

View File

@ -45,7 +45,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include <machine/psl.h> #include <machine/psl.h>
#include "assym.s" #include "assym.inc"
/* /*
* Signal trampoline, copied to top of user stack * Signal trampoline, copied to top of user stack

View File

@ -34,7 +34,7 @@
#include <machine/pmap.h> #include <machine/pmap.h>
#include <machine/specialreg.h> #include <machine/specialreg.h>
#include "assym.s" #include "assym.inc"
#define IDXSHIFT 10 #define IDXSHIFT 10

View File

@ -36,7 +36,7 @@
#include <machine/asmacros.h> #include <machine/asmacros.h>
#include "assym.s" #include "assym.inc"
#if defined(SMP) && defined(SCHED_ULE) #if defined(SMP) && defined(SCHED_ULE)
#define SETOP xchgl #define SETOP xchgl

View File

@ -29,7 +29,7 @@
#include <machine/asmacros.h> /* miscellaneous asm macros */ #include <machine/asmacros.h> /* miscellaneous asm macros */
#include <machine/trap.h> #include <machine/trap.h>
#include "assym.s" #include "assym.inc"
#define SCR_NEWPTD PCB_ESI /* readability macros */ #define SCR_NEWPTD PCB_ESI /* readability macros */
#define SCR_VMFRAME PCB_EBP /* see vm86.c for explanation */ #define SCR_VMFRAME PCB_EBP /* see vm86.c for explanation */

View File

@ -5,7 +5,7 @@
#include <i386/linux/linux_syscall.h> /* system call numbers */ #include <i386/linux/linux_syscall.h> /* system call numbers */
#include "assym.s" #include "assym.inc"
/* /*
* To avoid excess stack frame the signal trampoline code emulates * To avoid excess stack frame the signal trampoline code emulates

View File

@ -31,7 +31,7 @@
#include "linux_assym.h" /* system definitions */ #include "linux_assym.h" /* system definitions */
#include <machine/asmacros.h> /* miscellaneous asm macros */ #include <machine/asmacros.h> /* miscellaneous asm macros */
#include "assym.s" #include "assym.inc"
futex_fault_decx: futex_fault_decx:
movl PCPU(CURPCB),%ecx movl PCPU(CURPCB),%ecx

View File

@ -29,7 +29,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#include <mips/cavium/octeon_cop2.h> #include <mips/cavium/octeon_cop2.h>
#include "assym.s" #include "assym.inc"
.set noreorder .set noreorder

View File

@ -27,7 +27,7 @@
*/ */
#include <machine/asm.h> #include <machine/asm.h>
#include "assym.s" #include "assym.inc"
.text .text
.set noat .set noat

View File

@ -63,7 +63,7 @@
#include <machine/pte.h> #include <machine/pte.h>
#include <machine/pcb.h> #include <machine/pcb.h>
#include "assym.s" #include "assym.inc"
.set noreorder # Noreorder is default style! .set noreorder # Noreorder is default style!

View File

@ -43,7 +43,7 @@
#include <machine/regnum.h> #include <machine/regnum.h>
#include <machine/cpuregs.h> #include <machine/cpuregs.h>
#include "assym.s" #include "assym.inc"
#define SEXP_INF 0xff #define SEXP_INF 0xff
#define DEXP_INF 0x7ff #define DEXP_INF 0x7ff

View File

@ -70,7 +70,7 @@
#include <machine/cpuregs.h> #include <machine/cpuregs.h>
#include <machine/regnum.h> #include <machine/regnum.h>
#include "assym.s" #include "assym.inc"
.data .data
#ifdef YAMON #ifdef YAMON

View File

@ -30,7 +30,7 @@
#include <machine/cpu.h> #include <machine/cpu.h>
#include <machine/cpuregs.h> #include <machine/cpuregs.h>
#include "assym.s" #include "assym.inc"
.text .text
.set noat .set noat

View File

@ -30,7 +30,7 @@
#include <machine/cpuregs.h> #include <machine/cpuregs.h>
#include <machine/octeon_cop2.h> #include <machine/octeon_cop2.h>
#include "assym.s" #include "assym.inc"
.set noreorder .set noreorder

View File

@ -94,7 +94,7 @@
#include <machine/cpuregs.h> #include <machine/cpuregs.h>
#include <machine/pcb.h> #include <machine/pcb.h>
#include "assym.s" #include "assym.inc"
.set noreorder # Noreorder is default style! .set noreorder # Noreorder is default style!

View File

@ -64,7 +64,7 @@
#include <machine/pte.h> #include <machine/pte.h>
#include <machine/pcb.h> #include <machine/pcb.h>
#include "assym.s" #include "assym.inc"
.set noreorder # Noreorder is default style! .set noreorder # Noreorder is default style!

View File

@ -38,7 +38,7 @@
#define SYS_REG_KSEG1(node, reg) (0xa0000000 + XLP_DEFAULT_IO_BASE + \ #define SYS_REG_KSEG1(node, reg) (0xa0000000 + XLP_DEFAULT_IO_BASE + \
XLP_IO_SYS_OFFSET(node) + XLP_IO_PCI_HDRSZ + (reg) * 4) XLP_IO_SYS_OFFSET(node) + XLP_IO_PCI_HDRSZ + (reg) * 4)
#include "assym.s" #include "assym.inc"
.text .text
.set noat .set noat

View File

@ -27,9 +27,9 @@ CFLAGS+= -I${SYSDIR}/cddl/contrib/opensolaris/uts/intel \
SRCS+= bus_if.h device_if.h vnode_if.h SRCS+= bus_if.h device_if.h vnode_if.h
# Needed for dtrace_asm.S # Needed for dtrace_asm.S
DPSRCS+= assym.s DPSRCS+= assym.inc
# These are needed for assym.s # These are needed for assym.inc
SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h SRCS+= opt_compat.h opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
#This is needed for dtrace.c #This is needed for dtrace.c
@ -53,7 +53,7 @@ EXPORT_SYMS= dtrace_register \
dtrace_unregister \ dtrace_unregister \
dtrace_probe_lookup dtrace_probe_lookup
dtrace_asm.o: assym.s dtrace_asm.o: assym.inc
.include <bsd.kmod.mk> .include <bsd.kmod.mk>

View File

@ -17,13 +17,13 @@ SRCS= hyperv.c \
vmbus_xact.c vmbus_xact.c
SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h SRCS+= acpi_if.h bus_if.h device_if.h opt_acpi.h pci_if.h pcib_if.h vmbus_if.h
# XXX: for assym.s # XXX: for assym.inc
SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h opt_compat.h SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h opt_compat.h
.if ${MACHINE_CPUARCH} == "i386" .if ${MACHINE_CPUARCH} == "i386"
SRCS+= opt_apic.h SRCS+= opt_apic.h
.endif .endif
DPSRCS+= assym.s DPSRCS= assym.inc
vmbus_vector.o: vmbus_vector.o:
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \

View File

@ -19,9 +19,9 @@ SRCS= linux_fork.c linux${SFX}_dummy.c linux_file.c linux_event.c \
opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \ opt_inet6.h opt_compat.h opt_posix.h opt_usb.h vnode_if.h \
device_if.h bus_if.h \ device_if.h bus_if.h \
linux${SFX}_support.s linux${SFX}_support.s
DPSRCS= assym.s linux${SFX}_genassym.c DPSRCS= assym.inc linux${SFX}_genassym.c
# XXX: for assym.s # XXX: for assym.inc
SRCS+= opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h SRCS+= opt_kstack_pages.h opt_nfs.h opt_compat.h opt_hwpmc_hooks.h
.if ${MACHINE_CPUARCH} == "i386" .if ${MACHINE_CPUARCH} == "i386"
SRCS+= opt_apic.h SRCS+= opt_apic.h
@ -48,7 +48,7 @@ CLEANFILES= linux${SFX}_assym.h linux${SFX}_genassym.o linux${SFX}_locore.o
linux${SFX}_assym.h: linux${SFX}_genassym.o linux${SFX}_assym.h: linux${SFX}_genassym.o
sh ${SYSDIR}/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET} sh ${SYSDIR}/kern/genassym.sh linux${SFX}_genassym.o > ${.TARGET}
linux${SFX}_locore.o: linux${SFX}_assym.h assym.s linux${SFX}_locore.o: linux${SFX}_assym.h assym.inc
${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s \ ${CC} -x assembler-with-cpp -DLOCORE -m32 -shared -s \
-pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib \ -pipe -I. -I${SYSDIR} -Werror -Wall -fno-common -nostdinc -nostdlib \
-fno-omit-frame-pointer -fPIC \ -fno-omit-frame-pointer -fPIC \
@ -56,7 +56,7 @@ linux${SFX}_locore.o: linux${SFX}_assym.h assym.s
-Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common \ -Wl,-soname=${VDSO}.so.1,--eh-frame-hdr,-warn-common \
${.IMPSRC} -o ${.TARGET} ${.IMPSRC} -o ${.TARGET}
linux${SFX}_support.o: linux${SFX}_assym.h assym.s linux${SFX}_support.o: linux${SFX}_assym.h assym.inc
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET} ${.IMPSRC} -o ${.TARGET}

View File

@ -13,9 +13,9 @@ SRCS= linux_fork.c linux_dummy.c linux_file.c linux_event.c \
opt_inet6.h opt_compat.h opt_posix.h opt_usb.h \ opt_inet6.h opt_compat.h opt_posix.h opt_usb.h \
vnode_if.h device_if.h bus_if.h \ vnode_if.h device_if.h bus_if.h \
linux_support.s linux_support.s
DPSRCS= assym.s linux_genassym.c DPSRCS= assym.inc linux_genassym.c
# XXX: for assym.s # XXX: for assym.inc
SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h SRCS+= opt_kstack_pages.h opt_nfs.h opt_hwpmc_hooks.h
.if ${MACHINE_CPUARCH} == "i386" .if ${MACHINE_CPUARCH} == "i386"
SRCS+= opt_apic.h SRCS+= opt_apic.h
@ -40,7 +40,7 @@ ${VDSO}.so: linux_locore.o
-S -g --binary-architecture i386:x86-64 linux_locore.o ${.TARGET} -S -g --binary-architecture i386:x86-64 linux_locore.o ${.TARGET}
strip -N _binary_linux_locore_o_size ${.TARGET} strip -N _binary_linux_locore_o_size ${.TARGET}
linux_support.o: assym.s linux_assym.h linux_support.o: assym.inc linux_assym.h
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET} ${.IMPSRC} -o ${.TARGET}

View File

@ -5,9 +5,9 @@
KMOD= sgx KMOD= sgx
SRCS= sgx.c sgxvar.h sgx_support.S SRCS= sgx.c sgxvar.h sgx_support.S
SRCS+= opt_compat.h opt_hwpmc_hooks.h opt_kstack_pages.h SRCS+= opt_compat.h opt_hwpmc_hooks.h opt_kstack_pages.h
DPSRCS= assym.s DPSRCS= assym.inc
sgx_support.o: assym.s sgx_support.o: assym.inc
${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \
${.IMPSRC} -o ${.TARGET} ${.IMPSRC} -o ${.TARGET}

View File

@ -25,7 +25,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "assym.s" #include "assym.inc"
#include <sys/syscall.h> #include <sys/syscall.h>

View File

@ -27,7 +27,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include <sys/syscall.h> #include <sys/syscall.h>

View File

@ -26,7 +26,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_hwpmc_hooks.h" #include "opt_hwpmc_hooks.h"

View File

@ -27,7 +27,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include <machine/asm.h> #include <machine/asm.h>

View File

@ -34,7 +34,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include "assym.s" #include "assym.inc"
/* /*
* The following code gets copied to the top of the user stack on process * The following code gets copied to the top of the user stack on process

View File

@ -34,7 +34,7 @@
#include <machine/asm.h> #include <machine/asm.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include "assym.s" #include "assym.inc"
/* /*
* The following code gets copied to the top of the user stack on process * The following code gets copied to the top of the user stack on process

View File

@ -56,7 +56,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
#include <sys/syscall.h> #include <sys/syscall.h>

View File

@ -56,7 +56,7 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
#include <sys/syscall.h> #include <sys/syscall.h>

View File

@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#include <sys/errno.h> #include <sys/errno.h>
#include "assym.s" #include "assym.inc"
/* /*
* Fault handler for the copy{in,out} functions below. * Fault handler for the copy{in,out} functions below.

View File

@ -35,7 +35,7 @@
#include <machine/asm.h> #include <machine/asm.h>
__FBSDID("$FreeBSD$"); __FBSDID("$FreeBSD$");
#include "assym.s" #include "assym.inc"
#include <machine/trap.h> #include <machine/trap.h>
#include <machine/riscvreg.h> #include <machine/riscvreg.h>

View File

@ -34,7 +34,7 @@
* $FreeBSD$ * $FreeBSD$
*/ */
#include "assym.s" #include "assym.inc"
#include <sys/syscall.h> #include <sys/syscall.h>
#include <machine/asm.h> #include <machine/asm.h>

View File

@ -37,7 +37,7 @@ __FBSDID("$FreeBSD$");
#include <machine/setjmp.h> #include <machine/setjmp.h>
#include "assym.s" #include "assym.inc"
/* /*
* One of the fu* or su* functions failed, return -1. * One of the fu* or su* functions failed, return -1.

View File

@ -32,7 +32,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
*/ */
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
#include <machine/param.h> #include <machine/param.h>

View File

@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
#include <machine/utrap.h> #include <machine/utrap.h>
#include <machine/wstate.h> #include <machine/wstate.h>
#include "assym.s" #include "assym.inc"
#define TSB_ASI 0x0 #define TSB_ASI 0x0
#define TSB_KERNEL 0x0 #define TSB_KERNEL 0x0

View File

@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$");
#include <machine/pstate.h> #include <machine/pstate.h>
#include <machine/ver.h> #include <machine/ver.h>
#include "assym.s" #include "assym.inc"
/* /*
* Handle a vectored interrupt. * Handle a vectored interrupt.

View File

@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$");
#include <machine/pstate.h> #include <machine/pstate.h>
#include <machine/wstate.h> #include <machine/wstate.h>
#include "assym.s" #include "assym.inc"
.register %g2,#ignore .register %g2,#ignore

View File

@ -33,7 +33,7 @@ __FBSDID("$FreeBSD$");
#include <machine/ktr.h> #include <machine/ktr.h>
#include <machine/pstate.h> #include <machine/pstate.h>
#include "assym.s" #include "assym.inc"
.register %g2, #ignore .register %g2, #ignore
.register %g3, #ignore .register %g3, #ignore

View File

@ -36,7 +36,7 @@ __FBSDID("$FreeBSD$");
#include <machine/smp.h> #include <machine/smp.h>
#include <machine/ver.h> #include <machine/ver.h>
#include "assym.s" #include "assym.inc"
.register %g2, #ignore .register %g2, #ignore
.register %g3, #ignore .register %g3, #ignore

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include <machine/pstate.h> #include <machine/pstate.h>
#include <machine/wstate.h> #include <machine/wstate.h>
#include "assym.s" #include "assym.inc"
.register %g2, #ignore .register %g2, #ignore
.register %g3, #ignore .register %g3, #ignore

View File

@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$");
#include <machine/pcb.h> #include <machine/pcb.h>
#include <machine/tstate.h> #include <machine/tstate.h>
#include "assym.s" #include "assym.inc"
#include "opt_sched.h" #include "opt_sched.h"
.register %g2, #ignore .register %g2, #ignore