From owner-p4-projects@FreeBSD.ORG Sat Sep 29 09:23:39 2007 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4E2FC16A46B; Sat, 29 Sep 2007 09:23:39 +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 139FA16A418 for ; Sat, 29 Sep 2007 09:23:39 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0726413C48E for ; Sat, 29 Sep 2007 09:23:39 +0000 (UTC) (envelope-from imp@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 l8T9Nccx052770 for ; Sat, 29 Sep 2007 09:23:38 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l8T9Nc3g052767 for perforce@freebsd.org; Sat, 29 Sep 2007 09:23:38 GMT (envelope-from imp@freebsd.org) Date: Sat, 29 Sep 2007 09:23:38 GMT Message-Id: <200709290923.l8T9Nc3g052767@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 126962 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: Sat, 29 Sep 2007 09:23:39 -0000 http://perforce.freebsd.org/chv.cgi?CH=126962 Change 126962 by imp@imp_paco-paco on 2007/09/29 09:23:26 Update my porting notes for tonight's fun. Affected files ... .. //depot/projects/arm/src/sys/arm/orion/Orion-Port#2 edit Differences ... ==== //depot/projects/arm/src/sys/arm/orion/Orion-Port#2 (text+ko) ==== @@ -47,4 +47,37 @@ + systempage + at91_usart_class +20070929: 2:30-3:20 +o After talking to cognet@ on irc, I realized that I needed to revisit +KERNVIRTADDR and friends. Here's their definitions from Olivier Houchard: + KERNVIRTADDR is the virtual address at which the kernel is + loaded (and linked). + KERNPHYSADDR is the physical address at which the kernel is + loaded. + PHYSADDR is the physical address of the RAM. + KERNBASE is the virtual address of the beginning of the KVA. + STARTUP_PAGETABLE_ADDR is a physical address, suitable for the + very early pagetable we build in locore.S. + FLASHADDR is the address of the flash, virtual or physical + depending on what the loader does. That, and LOADERRAMADDR + (the address at which the loader maps the RAM if we're running + with the MMU enabled, and the physical address if not), are + used to detect if we're running from flash, and if so copying + the kernel to memory. +o Adjust std.orion to match the above, except for FLASHADDR support. + I had semi-bogusly mapped the load address (4MB) to 0xc0000000, but + instead we'll map it so that PA<->VA conversion just adds/subtracts + 0xc0000000 for ease of debugging (I hope). +o copy at91.c and at91var.h to orion.c and orion.h. This forms the + obio bus for the orion part. +o start working on orion_machdep.c. Copied it from kb920x_machdep.c, + but should be more careful about board init vs CPU/SoC init in this + port. +o Cleanup uart_cpu_orion so it builds. It is still LAME. +o Kernel links now with only a few undefines: +../../../ddb/db_command.c:610: undefined reference to `cpu_reset' +../../../kern/kern_clock.c:179: undefined reference to `cpu_initclocks' +../../../kern/kern_clock.c:389: undefined reference to `cpu_stopprofclock' +../../../kern/kern_clock.c:362: undefined reference to `cpu_startprofclock' +../../../kern/kern_shutdown.c:484: undefined reference to `cpu_reset'