From owner-freebsd-arm@FreeBSD.ORG Mon Jul 20 04:46:19 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F747106566B for ; Mon, 20 Jul 2009 04:46:19 +0000 (UTC) (envelope-from xiechao.mail@gmail.com) Received: from mail-qy0-f204.google.com (mail-qy0-f204.google.com [209.85.221.204]) by mx1.freebsd.org (Postfix) with ESMTP id D06338FC0C for ; Mon, 20 Jul 2009 04:46:18 +0000 (UTC) (envelope-from xiechao.mail@gmail.com) Received: by qyk42 with SMTP id 42so1608501qyk.3 for ; Sun, 19 Jul 2009 21:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=52ctLEokbrRwRb126+Ks2YdhPsVIazMbdVa3I69/hPo=; b=o2ysIr5YfqGJ473BWJp/pZXqIxkBN7Fiu7v9PHRCoQgdAlnD0ISspbZBltKjHhWF6Y kKuyd6mvrtU40/BWoDysSplvt7XlQ4sBzjqKM/l4ax/KEN/lxFBFl4ms3Ol4TIdcbRcN BD/K/WIaWhd2j2ZOHDYNuopJjW6KgjzKfaAwk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZJuGpvG6b6W3kDYrEhKaLNBE6TGamZ544mww6UEmRf1fDb/Q9J0k4Qw0Z1oJmvHnjC JG2XhuRmxeCbPJiM/xjo8cnxJ6VwKzWkv5vNHRdAeJEz2KH43iv6gqMLLGsawCErAo4T MGVkMTVVA3War+rTl+b21Wo+56R8Xlb6uR4h8= MIME-Version: 1.0 Received: by 10.229.96.132 with SMTP id h4mr720596qcn.65.1248061095655; Sun, 19 Jul 2009 20:38:15 -0700 (PDT) Date: Mon, 20 Jul 2009 11:38:15 +0800 Message-ID: From: Chao Xie To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: start_init data abort X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2009 04:46:19 -0000 hi I am trying to port Freebsd to pxa310. After I have compiled, and get kernel.bin, i will directly download it to SDRAM, and begin to run it. The SYSINITs are all right, and i get the final init - start_init. At this time, a exception of data abort happens. After i debug it, i find it is caused by subyte at the following code. /* * Move out the boot flag argument. */ options = 0; ucp = (char *)p->p_sysent->sv_usrstack; (void)subyte(--ucp, 0); /* trailing zero */ if (boothowto & RB_SINGLE) { (void)subyte(--ucp, 's'); options = 1; } It seems that subyte will store a byte to user stack of initproc. The user stack of initproc is started at 0xC0000000. i have checked the page mapping, and find the veirtual address 0xC0000000 - PAGESIZE to 0xC0000000 is not mapped. So i get the data abort. I am confuesed. Where should i map the user stack of initproc? I appreciate that someone can help me.Thanks.