Deleted Added
full compact
param.h (96606) param.h (96912)
1/* $FreeBSD: head/sys/ia64/include/param.h 96606 2002-05-14 20:35:29Z phk $ */
1/* $FreeBSD: head/sys/ia64/include/param.h 96912 2002-05-19 04:42:19Z marcel $ */
2/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
3
4/*
5 * Copyright (c) 1988 University of Utah.
6 * Copyright (c) 1992, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * This code is derived from software contributed to Berkeley by

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

65#endif
66#ifndef _ALIGNED_POINTER
67#define _ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
68#endif
69
70#ifndef _MACHINE
71#define _MACHINE ia64
72#endif
2/* From: NetBSD: param.h,v 1.20 1997/09/19 13:52:53 leo Exp */
3
4/*
5 * Copyright (c) 1988 University of Utah.
6 * Copyright (c) 1992, 1993
7 * The Regents of the University of California. All rights reserved.
8 *
9 * This code is derived from software contributed to Berkeley by

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

65#endif
66#ifndef _ALIGNED_POINTER
67#define _ALIGNED_POINTER(p,t) ((((u_long)(p)) & (sizeof(t)-1)) == 0)
68#endif
69
70#ifndef _MACHINE
71#define _MACHINE ia64
72#endif
73#ifndef MACHINE
74#define MACHINE "ia64"
75#endif
76#ifndef _MACHINE_ARCH
77#define _MACHINE_ARCH ia64
78#endif
73#ifndef _MACHINE_ARCH
74#define _MACHINE_ARCH ia64
75#endif
76
77#ifndef _NO_NAMESPACE_POLLUTION
78
79#ifndef _MACHINE_PARAM_H_
80#define _MACHINE_PARAM_H_
81
82#ifndef MACHINE
83#define MACHINE "ia64"
84#endif
79#ifndef MACHINE_ARCH
80#define MACHINE_ARCH "ia64"
81#endif
82#define MID_MACHINE MID_IA64
83
85#ifndef MACHINE_ARCH
86#define MACHINE_ARCH "ia64"
87#endif
88#define MID_MACHINE MID_IA64
89
84#include <machine/ia64_cpu.h>
85#include <machine/cpu.h>
86
87/*
88 * OBJFORMAT_NAMES is a comma-separated list of the object formats
89 * that are supported on the architecture.
90 */
91#define OBJFORMAT_NAMES "elf"
92#define OBJFORMAT_DEFAULT "elf"
93
94#ifdef SMP

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

127#ifdef PAGE_SIZE_16K
128#define PAGE_SIZE 16384 /* bytes/page */
129#define PAGE_SHIFT 14
130#endif
131
132#define PAGE_MASK (PAGE_SIZE-1)
133#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
134
90/*
91 * OBJFORMAT_NAMES is a comma-separated list of the object formats
92 * that are supported on the architecture.
93 */
94#define OBJFORMAT_NAMES "elf"
95#define OBJFORMAT_DEFAULT "elf"
96
97#ifdef SMP

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

130#ifdef PAGE_SIZE_16K
131#define PAGE_SIZE 16384 /* bytes/page */
132#define PAGE_SHIFT 14
133#endif
134
135#define PAGE_MASK (PAGE_SIZE-1)
136#define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t)))
137
135#define KERNBASE 0xfffffc0000300000LL /* start of kernel virtual */
136#define BTOPKERNBASE ((u_long)KERNBASE >> PGSHIFT)
137
138#define CLSIZE 1
139#define CLSIZELOG2 0
140
141/* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE */
142#define SSIZE 1 /* initial stack size/NBPG */
143#define SINCR 1 /* increment of stack/NBPG */
144
145#define KSTACK_PAGES 4 /* pages of kernel stack */
146#define UAREA_PAGES 1 /* pages of u-area */
147
138#define CLSIZE 1
139#define CLSIZELOG2 0
140
141/* NOTE: SSIZE, SINCR and UPAGES must be multiples of CLSIZE */
142#define SSIZE 1 /* initial stack size/NBPG */
143#define SINCR 1 /* increment of stack/NBPG */
144
145#define KSTACK_PAGES 4 /* pages of kernel stack */
146#define UAREA_PAGES 1 /* pages of u-area */
147
148/* #define KSTACK_GUARD */ /* compile in kstack guard page */
149
150/*
151 * Mach derived conversion macros
152 */
153#define round_page(x) ((((unsigned long)(x)) + PAGE_MASK) & ~(PAGE_MASK))
154#define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK))
155
156#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
157#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
158
159#define ia64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT)
160#define ia64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT)
161
162#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
148/*
149 * Mach derived conversion macros
150 */
151#define round_page(x) ((((unsigned long)(x)) + PAGE_MASK) & ~(PAGE_MASK))
152#define trunc_page(x) ((unsigned long)(x) & ~(PAGE_MASK))
153
154#define atop(x) ((unsigned long)(x) >> PAGE_SHIFT)
155#define ptoa(x) ((unsigned long)(x) << PAGE_SHIFT)
156
157#define ia64_btop(x) ((unsigned long)(x) >> PAGE_SHIFT)
158#define ia64_ptob(x) ((unsigned long)(x) << PAGE_SHIFT)
159
160#define pgtok(x) ((x) * (PAGE_SIZE / 1024))
161
162#endif /* !_MACHINE_PARAM_H_ */
163#endif /* !_NO_NAMESPACE_POLLUTION */