From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752991Ab3CJRqM (ORCPT ); Sun, 10 Mar 2013 13:46:12 -0400 Received: from terminus.zytor.com ([198.137.202.10]:60543 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619Ab3CJRqK (ORCPT ); Sun, 10 Mar 2013 13:46:10 -0400 User-Agent: K-9 Mail for Android In-Reply-To: References: <1362897887-30808-1-git-send-email-yinghai@kernel.org> <1362897887-30808-9-git-send-email-yinghai@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2 08/20] x86, ACPI: Find acpi tables in initrd early from head_32.S/head64.c From: "H. Peter Anvin" Date: Sun, 10 Mar 2013 10:42:36 -0700 To: Yinghai Lu , Pekka Enberg CC: Thomas Gleixner , Ingo Molnar , Andrew Morton , Tejun Heo , Thomas Renninger , Tang Chen , linux-kernel@vger.kernel.org, Jacob Shin , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no 64-bit flat mode. We use a #PF handler to emulate one by creating page tables on the fly. Yinghai Lu wrote: >On Sun, Mar 10, 2013 at 3:25 AM, Pekka Enberg >wrote: >> >> What is preventing us from making the 64-bit variant also work in >flat >> mode to make the code consistent and not hiding the differences under >> the rug? What am I missing here? > >Boot loader could start kernel from 64bit directly from >from arch/x86/boot/compressed/head_64.s::startup_64. > >initrd can be loaded by 64bit bootloader above 4G. > >So we even switch back to 32bit flat mode, we still can not access >those initrd >directly. > >Thanks > >Yinghai -- Sent from my mobile phone. Please excuse brevity and lack of formatting.