PERFORCE change 80033 for review
Peter Wemm
peter at FreeBSD.org
Tue Jul 12 01:02:28 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=80033
Change 80033 by peter at peter_daintree on 2005/07/12 01:01:28
Aargh. kmem_alloc returns vm_offset_t
Affected files ...
.. //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#103 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/amd64/mp_machdep.c#103 (text+ko) ====
@@ -683,8 +683,8 @@
cpu_apic_ids[cpu] = apic_id;
/* allocate and set up an idle stack data page */
- bootstacks[cpu] = kmem_alloc(kernel_map, KSTACK_PAGES * PAGE_SIZE);
- doublefault_stack = kmem_alloc(kernel_map, PAGE_SIZE);
+ bootstacks[cpu] = (void *)kmem_alloc(kernel_map, KSTACK_PAGES * PAGE_SIZE);
+ doublefault_stack = (char *)kmem_alloc(kernel_map, PAGE_SIZE);
bootSTK = (char *)bootstacks[cpu] + KSTACK_PAGES * PAGE_SIZE - 8;
bootAP = cpu;
More information about the p4-projects
mailing list