Fix two casts.
This commit is contained in:
parent
155811b49c
commit
6d386b5202
|
@ -164,7 +164,7 @@ cpu_startup()
|
||||||
* in that they usually occupy more virtual memory than physical.
|
* in that they usually occupy more virtual memory than physical.
|
||||||
*/
|
*/
|
||||||
size = MAXBSIZE * nbuf;
|
size = MAXBSIZE * nbuf;
|
||||||
buffer_map = kmem_suballoc(kernel_map, (vm_offset_t)&buffers,
|
buffer_map = kmem_suballoc(kernel_map, (vm_offset_t *)&buffers,
|
||||||
&maxaddr, size, FALSE);
|
&maxaddr, size, FALSE);
|
||||||
minaddr = (vm_offset_t)buffers;
|
minaddr = (vm_offset_t)buffers;
|
||||||
if (vm_map_find(buffer_map, vm_object_allocate(size), (vm_offset_t)0,
|
if (vm_map_find(buffer_map, vm_object_allocate(size), (vm_offset_t)0,
|
||||||
|
@ -215,7 +215,7 @@ cpu_startup()
|
||||||
mclrefcnt = (char *)malloc(NMBCLUSTERS+CLBYTES/MCLBYTES,
|
mclrefcnt = (char *)malloc(NMBCLUSTERS+CLBYTES/MCLBYTES,
|
||||||
M_MBUF, M_NOWAIT);
|
M_MBUF, M_NOWAIT);
|
||||||
bzero(mclrefcnt, NMBCLUSTERS+CLBYTES/MCLBYTES);
|
bzero(mclrefcnt, NMBCLUSTERS+CLBYTES/MCLBYTES);
|
||||||
mb_map = kmem_suballoc(kernel_map, (vm_offset_t)&mbutl, &maxaddr,
|
mb_map = kmem_suballoc(kernel_map, (vm_offset_t *)&mbutl, &maxaddr,
|
||||||
VM_MBUF_SIZE, FALSE);
|
VM_MBUF_SIZE, FALSE);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue