Date: Sat, 15 Nov 2008 21:02:46 GMT From: Pankov Pavel <pankov_p@mail.ru> To: freebsd-gnats-submit@FreeBSD.org Subject: arm/128897: [PATCH] Failture to build arm kernel with "options KTR" Message-ID: <200811152102.mAFL2kLY011191@www.freebsd.org> Resent-Message-ID: <200811152110.mAFLA6H9091775@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811152102.mAFL2kLY011191>