From owner-p4-projects@FreeBSD.ORG Thu Jun 26 08:13:53 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id E678A106566C; Thu, 26 Jun 2008 08:13:52 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8E9E1065686 for ; Thu, 26 Jun 2008 08:13:52 +0000 (UTC) (envelope-from andrew@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8F4108FC1A for ; Thu, 26 Jun 2008 08:13:52 +0000 (UTC) (envelope-from andrew@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m5Q8DqL6055058 for ; Thu, 26 Jun 2008 08:13:52 GMT (envelope-from andrew@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m5Q8DqY5055056 for perforce@freebsd.org; Thu, 26 Jun 2008 08:13:52 GMT (envelope-from andrew@freebsd.org) Date: Thu, 26 Jun 2008 08:13:52 GMT Message-Id: <200806260813.m5Q8DqY5055056@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to andrew@freebsd.org using -f From: Andrew Turner To: Perforce Change Reviews Cc: Subject: PERFORCE change 144128 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2008 08:13:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=144128 Change 144128 by andrew@andrew_bender on 2008/06/26 08:12:57 Allow access to all UART registers Affected files ... .. //depot/projects/arm/src/sys/arm/s3c2xx0/neo1973_machdep.c#3 edit Differences ... ==== //depot/projects/arm/src/sys/arm/s3c2xx0/neo1973_machdep.c#3 (text+ko) ==== @@ -137,15 +137,18 @@ extern vm_offset_t s3c2410_uart_vaddr; +#define _A(a) ((a) & ~L1_S_OFFSET) +#define _S(s) (((s) + L1_S_SIZE - 1) & ~(L1_S_SIZE-1)) + /* Static device mappings. */ static const struct pmap_devmap neo1973_devmap[] = { { /* * Map the UART to VA == PA */ - S3C2410_UART0_BASE, - S3C2410_UART0_BASE, - 0x100000, + _A(S3C2410_UART0_BASE), + _A(S3C2410_UART0_BASE), + _S(S3C2410_UART_BASE(3) - S3C2410_UART0_BASE), VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE, }, @@ -158,6 +161,9 @@ } }; +#undef _A +#undef _S + #ifdef DDB extern vm_offset_t ksym_start, ksym_end; #endif