Date: Tue, 12 Jul 2005 01:02:26 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 80033 for review Message-ID: <200507120102.j6C12Q6T007960@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=80033 Change 80033 by peter@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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507120102.j6C12Q6T007960>