summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2013-04-05 19:55:47 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2013-04-05 19:55:47 +0000
commitbe87460ddca8515e69c43db1687fab3733429538 (patch)
treee8ed40affab44ab67f2a1baee8c15bcbe29b267b /sys/arch
parentd456245e527a2f95ab28f31f54dd29cbb66301b9 (diff)
don't hardcode the size of u-boot's argv, but use a define instead.
to be re-used shortly elsewhere..
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/octeon/include/octeonvar.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/octeon/include/octeonvar.h b/sys/arch/octeon/include/octeonvar.h
index 16d8364996f..54a19c13504 100644
--- a/sys/arch/octeon/include/octeonvar.h
+++ b/sys/arch/octeon/include/octeonvar.h
@@ -203,6 +203,8 @@ struct octeon_fau_map {
#define BOARD_TYPE_UBIQUITI_E100 20002
#ifdef _KERNEL
+#define OCTEON_ARGV_MAX 64
+
struct boot_desc {
uint32_t desc_ver;
uint32_t desc_size;
@@ -215,7 +217,7 @@ struct boot_desc {
uint32_t __unused15;
uint32_t __unused14;
uint32_t argc;
- uint32_t argv[64];
+ uint32_t argv[OCTEON_ARGV_MAX];
uint32_t flags;
uint32_t core_mask;
uint32_t dram_size;