PERFORCE change 40901 for review
Peter Wemm
peter at FreeBSD.org
Thu Oct 30 15:56:13 PST 2003
http://perforce.freebsd.org/chv.cgi?CH=40901
Change 40901 by peter at peter_daintree on 2003/10/30 15:56:08
compile hacks. KERNLOAD doesn't exist here since we have dmap. I need
to fix this properly.
Affected files ...
.. //depot/projects/hammer/sys/amd64/acpica/madt.c#7 edit
Differences ...
==== //depot/projects/hammer/sys/amd64/acpica/madt.c#7 (text+ko) ====
@@ -200,7 +200,9 @@
(void *)rsdp_ptr.Pointer.Logical);
printf("rsdp_ptr.Pointer.Physical = 0x%jx\n",
(uintmax_t)rsdp_ptr.Pointer.Physical);
+#ifdef __i386__
KASSERT(rsdp_ptr.Pointer.Physical < KERNLOAD, ("RSDP too high"));
+#endif
rsdp = pmap_mapdev(rsdp_ptr.Pointer.Physical, sizeof(RSDP_DESCRIPTOR));
if (rsdp == NULL) {
if (bootverbose)
@@ -422,7 +424,7 @@
if (bootverbose)
printf("MADT: Found IO APIC ID %d, Vector %d at %p\n",
apic->IoApicId, apic->Vector,
- (void *)apic->IoApicAddress);
+ (void *)(uintptr_t)apic->IoApicAddress);
if (apic->IoApicId >= NIOAPICS)
panic("%s: I/O APIC ID %d too high", __func__,
apic->IoApicId);
More information about the p4-projects
mailing list