From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 24 03:52:47 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 884A216A419 for ; Sat, 24 Nov 2007 03:52:47 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 3A2D213C478 for ; Sat, 24 Nov 2007 03:52:47 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so12941nfb for ; Fri, 23 Nov 2007 19:52:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Gwm19eHCW2p/C0DkNXzENzq1BTNmkjMSviloQY3X7Eg=; b=xu+VNTiKOc2+7YafVIVT/0uo7Q7jYZOMTgTYajfyX6yKVtm0hkO6Ppqv0JwSqjpasLswoxi0DqgCoj9Iz5YV3orsURg5OCVq0uG7DYNRXsDFByJLBa6J42MtZdPPXIgxPYVhVDhqb+8Zv6rEkl2gwuFYcmffzIOiLQWr0bNzWCM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ZM93kr7xonjDgFTYF1hG/sjFh5/CRPNju7nWVReqzoNDUikeybMX7D9oQh+X9UUjIwYXrgb5LNQ6eFpp6oMfKGRy0/keYTwo30vJvRqjVenhAD2HeH9RSJMMwqybgiOwH487xWtYguclbf9/0hsnrkVMCfhkGi+47gxfd0R/L7s= Received: by 10.86.50.8 with SMTP id x8mr39081fgx.1195875984766; Fri, 23 Nov 2007 19:46:24 -0800 (PST) Received: by 10.86.28.19 with HTTP; Fri, 23 Nov 2007 19:46:24 -0800 (PST) Message-ID: <3bbf2fe10711231946i61e63419n2c3aaffdfc40b8cb@mail.gmail.com> Date: Sat, 24 Nov 2007 04:46:24 +0100 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Aryeh Friedman" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bbf2fe10711231937y1e9af357hd8b6a63cbf6ae077@mail.gmail.com> X-Google-Sender-Auth: 1054c674f1615bb0 Cc: freebsd-hackers@freebsd.org Subject: Re: a strange/stupid question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2007 03:52:47 -0000 2007/11/24, Aryeh Friedman : > On 11/24/07, Attilio Rao wrote: > > 2007/11/24, Aryeh Friedman : > > > Where do I find the main() [and/or other entery point] for the > > > kernel.... I tend to understand stuff better if I follow the flow of > > > exec from the start > > > > It is highly MD. > > For IA32 it is in i386/i386/locore.s::btext > > For AMD64 I assume something close to that... > > I just relized that I actually want to understand everything from POST > on (actually from power on but I know that is very mobo dependant) so > I guess the question is where do I find the first executed statement > for BTX (I know how to disamble the MBR so that part is not an issue) It should be: boot/i386/boot0/boot0.S::start Attilio -- Peace can only be achieved by understanding - A. Einstein