summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authormaxv <maxv@NetBSD.org>2018-06-03 10:01:21 +0000
committermaxv <maxv@NetBSD.org>2018-06-03 10:01:21 +0000
commit77efda58ae3127fdd232cc0ec705a18ee709bf8f (patch)
tree49adc43a52ccaed7008abbf8cf74d2d90fdbd797 /sys/dev/pci
parent8e726b8e9be3bb943fbd8d652c439fb872483fca (diff)
Constify the microcode variables used by BNX. This moves 38 pages of kernel
memory from .data to .rodata.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_bnxreg.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/pci/if_bnxreg.h b/sys/dev/pci/if_bnxreg.h
index 4ec9d314516..46d959a3c3c 100644
--- a/sys/dev/pci/if_bnxreg.h
+++ b/sys/dev/pci/if_bnxreg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bnxreg.h,v 1.18 2014/07/01 17:11:35 msaitoh Exp $ */
+/* $NetBSD: if_bnxreg.h,v 1.19 2018/06/03 10:01:22 maxv Exp $ */
/* $OpenBSD: if_bnxreg.h,v 1.33 2009/09/05 16:02:28 claudio Exp $ */
/*-
@@ -4643,31 +4643,31 @@ struct fw_info {
uint32_t text_addr;
uint32_t text_len;
uint32_t text_index;
- uint32_t *text;
+ const uint32_t *text;
/* Data section. */
uint32_t data_addr;
uint32_t data_len;
uint32_t data_index;
- uint32_t *data;
+ const uint32_t *data;
/* SBSS section. */
uint32_t sbss_addr;
uint32_t sbss_len;
uint32_t sbss_index;
- uint32_t *sbss;
+ const uint32_t *sbss;
/* BSS section. */
uint32_t bss_addr;
uint32_t bss_len;
uint32_t bss_index;
- uint32_t *bss;
+ const uint32_t *bss;
/* Read-only section. */
uint32_t rodata_addr;
uint32_t rodata_len;
uint32_t rodata_index;
- uint32_t *rodata;
+ const uint32_t *rodata;
};
struct bnx_rv2p_header {