param.h (11e9b8bad115cf9799076d3add8824862b038563) | param.h (a254d1f16dd367b6ebb0e9dca50a29bb1ec33c31) |
---|---|
1/*- 2 * Copyright (c) 2001 David E. O'Brien 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 24 unchanged lines hidden (view full) --- 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)param.h 5.8 (Berkeley) 6/28/91 38 * $FreeBSD$ 39 */ 40 | 1/*- 2 * Copyright (c) 2001 David E. O'Brien 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * William Jolitz. 8 * --- 24 unchanged lines hidden (view full) --- 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: @(#)param.h 5.8 (Berkeley) 6/28/91 38 * $FreeBSD$ 39 */ 40 |
41#ifndef _ARM_INCLUDE_PARAM_H_ 42#define _ARM_INCLUDE_PARAM_H_ 43 |
|
41/* 42 * Machine dependent constants for StrongARM 43 */ 44 | 44/* 45 * Machine dependent constants for StrongARM 46 */ 47 |
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 | 48#include <machine/_align.h> |
56 57#define STACKALIGNBYTES (8 - 1) 58#define STACKALIGN(p) ((u_int)(p) & ~STACKALIGNBYTES) 59 | 49 50#define STACKALIGNBYTES (8 - 1) 51#define STACKALIGN(p) ((u_int)(p) & ~STACKALIGNBYTES) 52 |
60#ifndef _NO_NAMESPACE_POLLUTION 61 | |
62#define __PCI_REROUTE_INTERRUPT 63 | 53#define __PCI_REROUTE_INTERRUPT 54 |
64#ifndef _MACHINE_PARAM_H_ 65#define _MACHINE_PARAM_H_ 66 | |
67#ifndef MACHINE 68#define MACHINE "arm" 69#endif 70#ifndef MACHINE_ARCH 71#define MACHINE_ARCH "arm" 72#endif 73#define MID_MACHINE MID_ARM6 74 --- 56 unchanged lines hidden (view full) --- 131#define atop(x) ((unsigned)(x) >> PAGE_SHIFT) 132#define ptoa(x) ((unsigned)(x) << PAGE_SHIFT) 133 134#define arm32_btop(x) ((unsigned)(x) >> PAGE_SHIFT) 135#define arm32_ptob(x) ((unsigned)(x) << PAGE_SHIFT) 136 137#define pgtok(x) ((x) * (PAGE_SIZE / 1024)) 138 | 55#ifndef MACHINE 56#define MACHINE "arm" 57#endif 58#ifndef MACHINE_ARCH 59#define MACHINE_ARCH "arm" 60#endif 61#define MID_MACHINE MID_ARM6 62 --- 56 unchanged lines hidden (view full) --- 119#define atop(x) ((unsigned)(x) >> PAGE_SHIFT) 120#define ptoa(x) ((unsigned)(x) << PAGE_SHIFT) 121 122#define arm32_btop(x) ((unsigned)(x) >> PAGE_SHIFT) 123#define arm32_ptob(x) ((unsigned)(x) << PAGE_SHIFT) 124 125#define pgtok(x) ((x) * (PAGE_SIZE / 1024)) 126 |
139#endif /* !_MACHINE_PARAM_H_ */ 140#endif /* !_NO_NAMESPACE_POLLUTION */ | 127#endif /* !_ARM_INCLUDE_PARAM_H_ */ |