From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 6 11:07:54 2011 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 B98F71065670 for ; Tue, 6 Dec 2011 11:07:54 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by mx1.freebsd.org (Postfix) with ESMTP id 47FEC8FC0A for ; Tue, 6 Dec 2011 11:07:53 +0000 (UTC) Received: by eaai12 with SMTP id i12so6926186eaa.13 for ; Tue, 06 Dec 2011 03:07:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; bh=GoEzi2ESPtrrSBGAb5Du1QNvp3/VgrcFgy3LIL+tQpY=; b=ZVSOYR5esNRwjbug3iiAWV9CCmTLGCgJiQKTTWMiIey2O0aKXowOxZkkhsclYLsVjo FgdpzWN3AZBK1ztYigOwqR9fXvMlPJwQ76qM4shfxXxBdguqeeeRphWcppdY7RrKMxvR wxsyb9xf42owDk85D+d8yWi6t/uBwS6QiFWuo= Received: by 10.213.13.136 with SMTP id c8mr2280115eba.15.1323168244639; Tue, 06 Dec 2011 02:44:04 -0800 (PST) Received: from ernst.jennejohn.org (p578E3F12.dip.t-dialin.net. [87.142.63.18]) by mx.google.com with ESMTPS id 49sm69730172eec.1.2011.12.06.02.44.02 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Dec 2011 02:44:03 -0800 (PST) Date: Tue, 6 Dec 2011 11:44:00 +0100 From: Gary Jennejohn To: some body Message-ID: <20111206114400.6dbea313@ernst.jennejohn.org> In-Reply-To: References: X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: boot0.S empty #ifdef X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: gljennjohn@googlemail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Dec 2011 11:07:54 -0000 On Mon, 5 Dec 2011 12:54:15 -0800 some body wrote: > I sent this to freebsd-drives too but I think that might not be the right > list for it so here it is: I am starting to learn how the kernel works and > have started by going through the boot loader and I've noticed that between > lines 21-32 in boot0.S there are some empty #ifdef statements. I was > wondering a) where are these paramaters defined and if they are defined, > what difference does it make since it looks like it doesn't change anything > since they're empty? > > > #ifdef SIO > #endif > > #ifdef CHECK_DRIVE > #endif > > #ifdef ONLY_F_KEYS > #endif > These seem to be there to act as reminders for command line options which can be used to build boot0. They're also documented in Makefile. These are actually used later in the code. -- Gary Jennejohn