Add a workaround to avoid 'defined but not used' warnings for linker
sets on i386 and alpha ELF kernels.
This commit is contained in:
parent
20982dfb10
commit
f2d4e36cce
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=41956
@ -39,7 +39,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)kernel.h 8.3 (Berkeley) 1/21/94
|
||||
* $Id: kernel.h,v 1.45 1998/11/15 15:25:56 bde Exp $
|
||||
* $Id: kernel.h,v 1.46 1998/12/03 23:02:03 jb Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_KERNEL_H_
|
||||
@ -92,12 +92,14 @@ extern long timedelta;
|
||||
|
||||
#ifdef __alpha__
|
||||
#define MAKE_SET(set, sym) \
|
||||
static void const * const __set_##set##_sym_##sym = &sym; \
|
||||
__asm(".align 3"); \
|
||||
__asm(".section .set." #set ",\"aw\""); \
|
||||
__asm(".quad " #sym); \
|
||||
__asm(".previous")
|
||||
#else
|
||||
#define MAKE_SET(set, sym) \
|
||||
static void const * const __set_##set##_sym_##sym = &sym; \
|
||||
__asm(".section .set." #set ",\"aw\""); \
|
||||
__asm(".long " #sym); \
|
||||
__asm(".previous")
|
||||
|
Loading…
Reference in New Issue
Block a user