summaryrefslogtreecommitdiff
path: root/sys/arch/arm/include/param.h
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2018-10-18 09:01:51 +0000
committerskrll <skrll@NetBSD.org>2018-10-18 09:01:51 +0000
commite4a950e645819ac3dff3d7fe5ed0a10266315c8d (patch)
tree5910fd11a83e9f5a3c6b0e5e978ea07737462887 /sys/arch/arm/include/param.h
parent9b2d13984a8ab4648c551288ae3601d6b2870d9e (diff)
Provide generic start code that assumes the MMU is off and caches are
disabled as per the linux booting protocol for ARMv6 and ARMv7 boards. u-boot image type should be changed to 'linux' for correct behaviour. The new start code builds a minimal "bootstrap" L1PT with cached access disabled and uses the same table for all processors. AP startup is performed in less steps and more code is written in C. The bootstrap tables and stack are placed into an (orphaned) section "_init_memory" which is given to uvm when it is no longer used. Various kernels have been converted to use this code and tested. Some boards were provided by TNF. Thanks! The GENERIC kernel now boots on boards using the TEGRA, SUNXI and EXYNOS kernels. The GENERIC kernel will also work on RPI2 using u-boot. Thanks to martin@ and aymeric@ for testing on parallella and nanosoc respectively
Diffstat (limited to 'sys/arch/arm/include/param.h')
-rw-r--r--sys/arch/arm/include/param.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/arm/include/param.h b/sys/arch/arm/include/param.h
index b920e3dae3e..73901293703 100644
--- a/sys/arch/arm/include/param.h
+++ b/sys/arch/arm/include/param.h
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.20 2016/08/26 05:56:03 mlelstv Exp $ */
+/* $NetBSD: param.h,v 1.21 2018/10/18 09:01:52 skrll Exp $ */
/*
* Copyright (c) 1994,1995 Mark Brinicombe.
@@ -145,6 +145,8 @@
# endif /* __ARMEB__ */
#endif /* !_KERNEL */
+#define MAXCPUS 8
+
#define MID_MACHINE MID_ARM6
/* ARM-specific macro to align a stack pointer (downwards). */