From b4d4f40018399ac15c80f0ef6c96e4990135881c Mon Sep 17 00:00:00 2001 From: jasper Date: Sat, 12 Jul 2014 20:31:52 +0000 Subject: [PATCH] add guards to just make available to the bootblocks what they need. prompted by miod@ --- sys/arch/octeon/include/octeonvar.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/arch/octeon/include/octeonvar.h b/sys/arch/octeon/include/octeonvar.h index 7457466f6f6..f4a28683d1d 100644 --- a/sys/arch/octeon/include/octeonvar.h +++ b/sys/arch/octeon/include/octeonvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: octeonvar.h,v 1.18 2014/07/09 18:31:34 pirofti Exp $ */ +/* $OpenBSD: octeonvar.h,v 1.19 2014/07/12 20:31:52 jasper Exp $ */ /* $NetBSD: maltavar.h,v 1.3 2002/03/18 10:10:16 simonb Exp $ */ /*- @@ -203,7 +203,7 @@ struct octeon_fau_map { #define BOARD_TYPE_SIM 1 #define BOARD_TYPE_UBIQUITI_E100 20002 -#ifdef _KERNEL +#if defined(_KERNEL) || defined(_STANDALONE) #define OCTEON_ARGV_MAX 64 /* Maximum number of cores on <= CN52XX */ @@ -278,6 +278,7 @@ struct boot_info { extern struct boot_desc *octeon_boot_desc; extern struct boot_info *octeon_boot_info; +#ifdef _KERNEL /* Device capabilities advertised in boot_info->config_flags */ #define BOOTINFO_CFG_FLAG_PCI_HOST (1ull << 0) #define BOOTINFO_CFG_FLAG_PCI_TARGET (1ull << 1) @@ -294,6 +295,7 @@ int octeon_get_ethaddr(int, u_int8_t *); int octeon_ioclock_speed(void); #endif /* _KERNEL */ +#endif /* _KERNEL || _STANDALONE */ static inline int ffs64(uint64_t val) -- 2.20.1