diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-04-05 19:55:47 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2013-04-05 19:55:47 +0000 |
commit | be87460ddca8515e69c43db1687fab3733429538 (patch) | |
tree | e8ed40affab44ab67f2a1baee8c15bcbe29b267b | |
parent | d456245e527a2f95ab28f31f54dd29cbb66301b9 (diff) |
don't hardcode the size of u-boot's argv, but use a define instead.
to be re-used shortly elsewhere..
-rw-r--r-- | sys/arch/octeon/include/octeonvar.h | 4 |
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; |