param.h (cbd59a4f658ff44ebe2aab164cc6f830f8dfcd62) param.h (a254d1f16dd367b6ebb0e9dca50a29bb1ec33c31)
1/*-
2 * Copyright (c) 2002 David E. O'Brien. All rights reserved.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department and Ralph Campbell.

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

34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)param.h 8.1 (Berkeley) 6/10/93
39 * $FreeBSD$
40 */
41
1/*-
2 * Copyright (c) 2002 David E. O'Brien. All rights reserved.
3 * Copyright (c) 1992, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * the Systems Programming Group of the University of Utah Computer
8 * Science Department and Ralph Campbell.

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

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

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

145#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
146#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
147
148#define amd64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT)
149#define amd64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT)
150
151#define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
152
53#define __HAVE_ACPI
54#define __PCI_REROUTE_INTERRUPT
55
56#ifndef MACHINE
57#define MACHINE "amd64"
58#endif
59#ifndef MACHINE_ARCH
60#define MACHINE_ARCH "amd64"

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

135#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
136#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
137
138#define amd64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT)
139#define amd64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT)
140
141#define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
142
153#endif /* !_NO_NAMESPACE_POLLUTION */
154#endif /* !_AMD64_INCLUDE_PARAM_H_ */
143#endif /* !_AMD64_INCLUDE_PARAM_H_ */