arm/128897: [PATCH] Failture to build arm kernel with "options KTR"
Pankov Pavel
pankov_p at mail.ru
Sat Nov 15 13:10:07 PST 2008
>Number: 128897
>Category: arm
>Synopsis: [PATCH] Failture to build arm kernel with "options KTR"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-arm
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Nov 15 21:10:06 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Pankov Pavel
>Release: 8.0-CURRENT
>Organization:
MPEI
>Environment:
FreeBSD tionfather 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Wed Oct 29 13:12:21 MSK 2008 root at tionfather:/usr/obj/usr/src/sys/TIONFATHER i386
>Description:
Building ktr(4)-enabled ARM kernel results in error because of use of undefined variable Maxmem in _bus_dmamap_count_pages function.
>How-To-Repeat:
Add "options KTR" to any ARM kernel config try building kernel.
>Fix:
Apply the attached patch.
Patch attached with submission follows:
Index: sys/arm/arm/busdma_machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/arm/arm/busdma_machdep.c,v
retrieving revision 1.39
diff -u -r1.39 busdma_machdep.c
--- sys/arm/arm/busdma_machdep.c 13 Oct 2008 18:59:59 -0000 1.39
+++ sys/arm/arm/busdma_machdep.c 15 Nov 2008 15:35:46 -0000
@@ -673,8 +673,8 @@
bus_addr_t paddr;
if ((map->pagesneeded == 0)) {
- CTR4(KTR_BUSDMA, "lowaddr= %d Maxmem= %d, boundary= %d, "
- "alignment= %d", dmat->lowaddr, ptoa((vm_paddr_t)Maxmem),
+ CTR3(KTR_BUSDMA, "lowaddr= %d, boundary= %d, "
+ "alignment= %d", dmat->lowaddr,
dmat->boundary, dmat->alignment);
CTR2(KTR_BUSDMA, "map= %p, pagesneeded= %d",
map, map->pagesneeded);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-arm
mailing list