From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 24 03:41:58 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 5922B16A469 for ; Sat, 24 Nov 2007 03:41:58 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 33D3A13C468 for ; Sat, 24 Nov 2007 03:41:57 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so33218pyb for ; Fri, 23 Nov 2007 19:41:56 -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:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=9QuiQE5jgdnxIJZPnSi7IntNzBn0WVU7T3/9yoklVes=; b=MZmTOEjKhwV0mN/4+E+yHieGMz8Ok54hg7zVUnxbWgIq9fvHqWyzIqUcQ5IzL8LgU/n/HN1QI1tnYu1W6p5Zc/QavUhMpbx7jDzCl6y5KAaxFxRCHpqgfRgYX8rc2/PuEWGSfoQpAcUgwwhhw2i1UQhmcSkM8d+Voekbj3z1NOQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=nm5ZCRsYcL1b+dS8ZWpaqSLocXABPeNDhcTYqoQJJBrFaMX+x3e3mC0lUkYd6ogmxhxxRiKK+DAk+l42gDgpHzKELeS5R6qxbj7nYNd0QqOT4RNnYCjP//qdbep9t4RJIiQhyKrVE00oc9XyUWqagdjvlPqX7E9kd3F3QkaMjUs= Received: by 10.64.179.12 with SMTP id b12mr128696qbf.1195875716251; Fri, 23 Nov 2007 19:41:56 -0800 (PST) Received: by 10.65.105.5 with HTTP; Fri, 23 Nov 2007 19:41:56 -0800 (PST) Message-ID: Date: Sat, 24 Nov 2007 03:41:56 +0000 From: "Aryeh Friedman" To: "Attilio Rao" In-Reply-To: <3bbf2fe10711231937y1e9af357hd8b6a63cbf6ae077@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3bbf2fe10711231937y1e9af357hd8b6a63cbf6ae077@mail.gmail.com> 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:41:58 -0000 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)