Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757428Ab1FJPw1 (ORCPT ); Fri, 10 Jun 2011 11:52:27 -0400 Received: from oproxy6-pub.bluehost.com ([67.222.54.6]:44758 "HELO oproxy6-pub.bluehost.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755305Ab1FJPw0 (ORCPT ); Fri, 10 Jun 2011 11:52:26 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=xenotime.net; h=Received:Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References:Organization:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding:X-Identified-User; b=mIYvSS7usDp0fl8hbyGCi2zOTwVtApLDo+ui73Hk6ZukPwq7zefLr9zISf1GbCsZC4gnOLIF1jRWXrjWvs4645MVeiEq7xCJyjeiNa9bm0HfWE13ELnE/1iH9depTHdh; Date: Fri, 10 Jun 2011 08:52:23 -0700 From: Randy Dunlap To: Mathias Krause Cc: Andrew Morton , Linus Torvalds , Chris Metcalf , "David S. Miller" , Chris Zankel , Al Viro , linux-kernel@vger.kernel.org, stable@kernel.org, Rusty Russell Subject: Re: [PATCH] init: use KERNEL_DS when trying to start init process Message-Id: <20110610085223.6aa97dee.rdunlap@xenotime.net> In-Reply-To: References: <1307642718-22257-1-git-send-email-minipli@googlemail.com> <20110609155630.0f734351.akpm@linux-foundation.org> Organization: YPO4 X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Identified-User: {1807:box742.bluehost.com:xenotime:xenotime.net} {sentby:smtp auth 50.53.38.135 authed with rdunlap@xenotime.net} Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 35 On Fri, 10 Jun 2011 10:11:39 +0200 Mathias Krause wrote: > cat<hello.c > #include > #include > > int main(void) { > printf("Hello %s world!\n", sizeof(int) == sizeof(long) ? "32" : "64"); "Hello %s bit world!\n" :) > pause(); > > return 0; > } > EOT > * If you're running a 64 bit kernel /etc/init should start and print > out "Hello 64 bit world!", otherwise the kernel should fail to start > this binary and go ahead to /bin/init. > * Finally, if /etc/init failed, /bin/init should start and print out > "Hello 32 bit world!". --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/