param.h (11e9b8bad115cf9799076d3add8824862b038563) param.h (a254d1f16dd367b6ebb0e9dca50a29bb1ec33c31)
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 19 unchanged lines hidden (view full) ---

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * from: @(#)param.h 5.8 (Berkeley) 6/28/91
33 * $FreeBSD$
34 */
35
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * William Jolitz.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 19 unchanged lines hidden (view full) ---

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * from: @(#)param.h 5.8 (Berkeley) 6/28/91
33 * $FreeBSD$
34 */
35
36#include <machine/_align.h>
37
38#ifndef _I386_INCLUDE_PARAM_H_
39#define _I386_INCLUDE_PARAM_H_
40
36/*
37 * Machine dependent constants for Intel 386.
38 */
39
40/*
41 * Round p (pointer or byte index) up to a correctly-aligned value
42 * for all data types (int, long, ...). The result is unsigned int
43 * and must be cast to any desired pointer type.
44 */
45#ifndef _ALIGNBYTES
46#define _ALIGNBYTES (sizeof(int) - 1)
47#endif
48#ifndef _ALIGN
49#define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
50#endif
51
41/*
42 * Machine dependent constants for Intel 386.
43 */
44
45/*
46 * Round p (pointer or byte index) up to a correctly-aligned value
47 * for all data types (int, long, ...). The result is unsigned int
48 * and must be cast to any desired pointer type.
49 */
50#ifndef _ALIGNBYTES
51#define _ALIGNBYTES (sizeof(int) - 1)
52#endif
53#ifndef _ALIGN
54#define _ALIGN(p) (((unsigned)(p) + _ALIGNBYTES) & ~_ALIGNBYTES)
55#endif
56
52#ifndef _NO_NAMESPACE_POLLUTION
53
54#define __HAVE_ACPI
55#define __PCI_REROUTE_INTERRUPT
56
57
58#define __HAVE_ACPI
59#define __PCI_REROUTE_INTERRUPT
60
57#ifndef _MACHINE_PARAM_H_
58#define _MACHINE_PARAM_H_
59
60#ifndef MACHINE
61#define MACHINE "i386"
62#endif
63#ifndef MACHINE_ARCH
64#define MACHINE_ARCH "i386"
65#endif
66#define MID_MACHINE MID_I386
67

--- 76 unchanged lines hidden (view full) ---

144#define atop(x) ((x) >> PAGE_SHIFT)
145#define ptoa(x) ((x) << PAGE_SHIFT)
146
147#define i386_btop(x) ((x) >> PAGE_SHIFT)
148#define i386_ptob(x) ((x) << PAGE_SHIFT)
149
150#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
151
61#ifndef MACHINE
62#define MACHINE "i386"
63#endif
64#ifndef MACHINE_ARCH
65#define MACHINE_ARCH "i386"
66#endif
67#define MID_MACHINE MID_I386
68

--- 76 unchanged lines hidden (view full) ---

145#define atop(x) ((x) >> PAGE_SHIFT)
146#define ptoa(x) ((x) << PAGE_SHIFT)
147
148#define i386_btop(x) ((x) >> PAGE_SHIFT)
149#define i386_ptob(x) ((x) << PAGE_SHIFT)
150
151#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
152
152#endif /* !_MACHINE_PARAM_H_ */
153#endif /* !_NO_NAMESPACE_POLLUTION */
153#endif /* !_I386_INCLUDE_PARAM_H_ */