diff options
author | Jake Burkholder <jake@FreeBSD.org> | 2001-11-18 03:31:01 +0000 |
---|---|---|
committer | Jake Burkholder <jake@FreeBSD.org> | 2001-11-18 03:31:01 +0000 |
commit | bc40966754c26f33f2a41c6ee1e1264909c58216 (patch) | |
tree | e6955979d15e533f9996588c14a226557e8ae181 /sys/sparc64/include/asmacros.h | |
parent | cb67f0018f1ab1611ac13fd92b3c6d8d7becda8f (diff) | |
download | src-bc40966754c26f33f2a41c6ee1e1264909c58216.tar.gz src-bc40966754c26f33f2a41c6ee1e1264909c58216.zip |
Implement SET. Set execption.s 1.12.
Submitted by: tmm
Notes
Notes:
svn path=/head/; revision=86524
Diffstat (limited to 'sys/sparc64/include/asmacros.h')
-rw-r--r-- | sys/sparc64/include/asmacros.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/sparc64/include/asmacros.h b/sys/sparc64/include/asmacros.h index 93c142d47e28..5deabf7475fc 100644 --- a/sys/sparc64/include/asmacros.h +++ b/sys/sparc64/include/asmacros.h @@ -69,4 +69,16 @@ name ## : #define END(name) \ .size name, . - name +/* + * If the kernel can be located above 4G, setx needs to be used to load + * symbol values, otherwise set is sufficient. + */ +#ifdef HIGH_KERNEL +#define SET(sym, tmp, dst) \ + setx sym, tmp, dst +#else +#define SET(sym, tmp, dst) \ + set sym, dst +#endif + #endif /* !_MACHINE_ASMACROS_H_ */ |