param.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
/* $NetBSD: param.h,v 1.3 2006/08/28 13:43:35 yamt Exp $ */
#define MACHINE "amd64"
#define _MACHINE_ARCH x86_64
#define MACHINE_ARCH "x86_64"
#define MID_MACHINE MID_X86_64
/*
* Round p (pointer or byte index) up to a correctly-aligned value
* for all data types (int, long, ...). The result is u_int and
* must be cast to any desired pointer type.
*
* ALIGNED_POINTER is a boolean macro that checks whether an address
* is valid to fetch data elements of type t from on this architecture.
* This does not reflect the optimal alignment, just the possibility
* (within reasonable limits).
*
*/
#define ALIGNED_POINTER(p,t) 1
/*
* XXXfvdl change this (after bootstrap) to take # of bits from
* config info into account.
*/
#define KERNTEXTOFF_HI 0xffffffff
#define KERNTEXTOFF_LO 0x80100000
#define KERNBASE_HI 0xffffffff
#define KERNBASE_LO 0x80000000
#define BLKDEV_IOSIZE 2048
#ifndef MAXPHYS
#endif
#ifndef MSGBUFSIZE
#endif
/*
* Constants related to network buffer management.
* MCLBYTES must be no larger than NBPG (the software page size), and,
* on machines that exchange pages of input or output buffers with mbuf
* clusters (MAPPED_MBUFS), MCLBYTES must also be an integral multiple
* of the hardware page size.
*/
#ifndef MCLSHIFT
/* 2K cluster can hold Ether frame */
#endif /* MCLSHIFT */
#ifndef NMBCLUSTERS
#ifdef GATEWAY
#else
#endif
#endif
#ifndef NFS_RSIZE
#define NFS_RSIZE 32768
#endif
#ifndef NFS_WSIZE
#define NFS_WSIZE 32768
#endif
/*
* Minimum and maximum sizes of the kernel malloc arena in PAGE_SIZE-sized
* logical pages.
*/
//#define NKMEMPAGES_MIN_DEFAULT ((8 * 1024 * 1024) >> PAGE_SHIFT)
//#define NKMEMPAGES_MAX_DEFAULT ((1 *1024 * 1024 * 1024) >> PAGE_SHIFT)
/*
* XXXfvdl the PD* stuff is different from i386.
*/
/*
* Mach derived conversion macros
*/
#ifdef MACH_DCM
#endif // MACH_DCM
#define round_pdr(x) x86_round_pdr(x)