aboutsummaryrefslogtreecommitdiff
path: root/src/arch/i386/include/arch/asm.h
blob: ea63e2d4eb0ca7683ac331ae31175334acf1ffc5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef ASM_H
#define	ASM_H

#define ASSEMBLER

/*
 * Bootstrap code for the STPC Consumer
 * Copyright (c) 1999 by Net Insight AB. All Rights Reserved.
 *
 * $Id$
 *
 */

#define	I386_ALIGN_TEXT	0
#define	I386_ALIGN_DATA	0

/*
 *	XXX
 */
#ifdef __ELF__
#define	EXT(x)		x
#else
#define	EXT(x)		_ ## x
#endif

#define	STATIC(x)	.align I386_ALIGN_TEXT; EXT(x): 
#define	GLOBAL(x)	.globl EXT(x); STATIC(x)
#define	ENTRY(x)	.text; GLOBAL(x)

#endif /* ASM_H */