X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/935ed37a5c468c8a1c07408573c08b8b7ef80e8b..e2fac8b15b12a7979f72090454d850e612fc5b13:/bsd/kern/uipc_mbuf.c diff --git a/bsd/kern/uipc_mbuf.c b/bsd/kern/uipc_mbuf.c index aba70cc66..0c0a27855 100644 --- a/bsd/kern/uipc_mbuf.c +++ b/bsd/kern/uipc_mbuf.c @@ -388,7 +388,6 @@ typedef struct mcl_slab { * whenever a new piece of memory mapped in from the VM crosses the 1MB * boundary. */ -#define MBSHIFT 20 /* 1MB */ #define NSLABSPMB ((1 << MBSHIFT) >> MCLSHIFT) /* 512 slabs/grp */ typedef struct mcl_slabg { @@ -1026,7 +1025,7 @@ mbinit(void) VERIFY(slabstbl != NULL); /* Allocate audit structures if needed */ - PE_parse_boot_arg("mbuf_debug", &mbuf_debug); + PE_parse_boot_argn("mbuf_debug", &mbuf_debug, sizeof (mbuf_debug)); mbuf_debug |= mcache_getflags(); if (mbuf_debug & MCF_AUDIT) { MALLOC(mclaudit, mcl_audit_t *, @@ -1051,7 +1050,7 @@ mbinit(void) embutl = (union mcluster *) ((unsigned char *)mbutl + (nmbclusters * MCLBYTES)); - PE_parse_boot_arg("initmcl", &initmcl); + PE_parse_boot_argn("initmcl", &initmcl, sizeof (initmcl)); lck_mtx_lock(mbuf_mlock);