Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/include/param.h
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
#include <machine/_align.h> | #include <machine/_align.h> | ||||
#define STACKALIGNBYTES (8 - 1) | #define STACKALIGNBYTES (8 - 1) | ||||
#define STACKALIGN(p) ((u_int)(p) & ~STACKALIGNBYTES) | #define STACKALIGN(p) ((u_int)(p) & ~STACKALIGNBYTES) | ||||
#define __PCI_REROUTE_INTERRUPT | #define __PCI_REROUTE_INTERRUPT | ||||
#if __ARM_ARCH >= 7 | |||||
#define _V_SUFFIX "v7" | |||||
#elif __ARM_ARCH >= 6 | |||||
#define _V_SUFFIX "v6" | |||||
#else | |||||
#define _V_SUFFIX "" | |||||
#endif | |||||
#ifdef __ARM_BIG_ENDIAN | |||||
#define _EB_SUFFIX "eb" | |||||
#else | |||||
#define _EB_SUFFIX "" | |||||
#endif | |||||
#ifndef MACHINE | #ifndef MACHINE | ||||
#define MACHINE "arm" | #define MACHINE "arm" | ||||
#endif | #endif | ||||
#ifndef MACHINE_ARCH | #ifndef MACHINE_ARCH | ||||
#define MACHINE_ARCH "arm" _V_SUFFIX _EB_SUFFIX | #if __ARM_ARCH >= 7 | ||||
#define MACHINE_ARCH "armv7" | |||||
#else | |||||
#define MACHINE_ARCH "armv6" | |||||
#endif | |||||
#endif | #endif | ||||
#ifdef SMP | #ifdef SMP | ||||
#ifndef MAXCPU | #ifndef MAXCPU | ||||
#define MAXCPU 4 | #define MAXCPU 4 | ||||
#endif | #endif | ||||
#else | #else | ||||
#define MAXCPU 1 | #define MAXCPU 1 | ||||
▲ Show 20 Lines • Show All 73 Lines • Show Last 20 Lines |