From owner-freebsd-ia64@FreeBSD.ORG Thu Nov 17 10:49:41 2011 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BECF91065675 for ; Thu, 17 Nov 2011 10:49:41 +0000 (UTC) (envelope-from loerner@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.freebsd.org (Postfix) with SMTP id 175188FC14 for ; Thu, 17 Nov 2011 10:49:40 +0000 (UTC) Received: (qmail 31231 invoked by uid 0); 17 Nov 2011 10:49:39 -0000 Received: from 212.185.199.2 by www030.gmx.net with HTTP; Thu, 17 Nov 2011 11:49:37 +0100 (CET) Content-Type: text/plain; charset="utf-8" Date: Thu, 17 Nov 2011 11:49:37 +0100 From: =?iso-8859-1?Q?=22Marc_L=F6rner=22?= Message-ID: <20111117104937.192340@gmx.net> MIME-Version: 1.0 To: marcel@xcllnt.net, freebsd-ia64@freebsd.org X-Authenticated: #60932973 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/uQbYmVAruHUv29L4wzWHprMka6K6WIAv7vCljKp APDvXvzZi2V4RKBY4au6bPy7zjqTF3D8Ei7w== Content-Transfer-Encoding: 8bit X-GMX-UID: jpOlKksqa0A7fAys1DIzOXY/Njh6dI7z Cc: Subject: Booting 9.0 RC2 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2011 10:49:41 -0000 Hello Marcel, good news: loader starts now. Unfortunately I got the same problems that you have with Machine-Checks on the early booting stage with GENERIC. I did some investigation in code and code-changes and I probably found the cause: In __start (locore.S) you try to store PA of bootinfo block to pa_bootinfo which seems to reside in kernel-text space => DATA-ACCESS-RIGHTS fault because text-space is pinned in DTR with AR_RX. (c.f. mmu_setup_paged calling mmu_wire in the loader code) After changing this kernel started, at least I now got output on console. Unfortunately the next hang is in sapic_create accessing sa->sa_register which seems to be NULL, at least I got NULL as returnvalue of pmap_mapdev. Comparing the assembler code and supposed code from ia64/ia64/pmap.c I saw some differences. I didn't find out why the "normal" code just pinning sapic-address to region 7 wasn't included in kernel anymore. Hardcoding sa_register to 0xe0000000fedfe000 seemed to solve this problem for me. Hope this helps to get FreeBSD GENERIC working again on Montecito platforms, Marc -- Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de