Changeset View
Changeset View
Standalone View
Standalone View
sys/cddl/dev/dtrace/arm/dtrace_asm.S
Show All 22 Lines | |||||
*/ | */ | ||||
/* | /* | ||||
* Copyright 2004 Sun Microsystems, Inc. All rights reserved. | * Copyright 2004 Sun Microsystems, Inc. All rights reserved. | ||||
* Use is subject to license terms. | * Use is subject to license terms. | ||||
*/ | */ | ||||
#define _ASM | #define _ASM | ||||
#define _LOCORE | #define _LOCORE | ||||
#define LOCORE | |||||
#include <sys/cpuvar_defs.h> | #include <sys/cpuvar_defs.h> | ||||
imp: Why would this be defined already? | |||||
Not Done Inline ActionsIt is defined here: <built-in>:316:9: note: previous definition is here what it that <built-in> ? clang ? br: It is defined here:
<built-in>:316:9: note: previous definition is here
#define LOCORE 1
what… | |||||
Not Done Inline ActionsDoesn't it come from the command line? rpaulo: Doesn't it come from the command line? | |||||
Not Done Inline Actionsyes it comes from sys/conf/kern.pre.mk: DTRACE_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE ${DTRACE_CFLAGS} (I copied it from ZFS_ASM_CFLAGS) should it be removed both from ZFS_ASM_CFLAGS and DTRACE_ASM_CFLAGS ? br: yes it comes from sys/conf/kern.pre.mk:
DTRACE_ASM_CFLAGS= -x assembler-with-cpp -DLOCORE… | |||||
Not Done Inline ActionsThe other way around I think: since it's now defined in the command line, can't you remove it from this file? rpaulo: The other way around I think: since it's now defined in the command line, can't you remove it… | |||||
Not Done Inline Actionsyes it is also works both with modules & with no modules br: yes it is also works both with modules & with no modules | |||||
#include <sys/dtrace.h> | #include <sys/dtrace.h> | ||||
#include <machine/armreg.h> | #include <machine/armreg.h> | ||||
#include <machine/asm.h> | #include <machine/asm.h> | ||||
#include "assym.s" | #include "assym.s" | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |
Why would this be defined already?