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 |
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 |
85#ifndef MACHINE_ARCH 86#define MACHINE_ARCH "ia64" 87#endif 88#define MID_MACHINE MID_IA64 89 |
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 |
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/* 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 */ |