From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751713Ab0CATlO (ORCPT ); Mon, 1 Mar 2010 14:41:14 -0500 Received: from mail-fx0-f219.google.com ([209.85.220.219]:57386 "EHLO mail-fx0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388Ab0CATlM (ORCPT ); Mon, 1 Mar 2010 14:41:12 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=oXm1IFbu8AFCV1x/OJKca1Zm5bTxUXVDQUXg2DACwlpMhi1vAFKbPatrkOH/jMMVq4 fKxuomN9iKBvGvDBxHrIckPqpCi6o3Frv6IBFLWMtFb1/5YMe8VasDa0+K5uBFNemWat WPMLpn4cHSHHImmQsfWlIszjdUihN0lrGYd7w= Message-ID: <4B8C184E.2000400@gmail.com> Date: Tue, 02 Mar 2010 06:41:02 +1100 From: Graeme Russ User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: "H. Peter Anvin" CC: linux-kernel@vger.kernel.org Subject: Re: x86 embedded - Problem getting past 'move compressed kernel before decompression' References: <4B80946D.1030503@gmail.com> <4B80C892.9000303@zytor.com> <4B80CA55.3040402@zytor.com> <4B88A865.2080009@gmail.com> <4B8BAB5C.5030707@gmail.com> <4B8BEF71.5040105@zytor.com> In-Reply-To: <4B8BEF71.5040105@zytor.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org H. Peter Anvin wrote: > On 03/01/2010 03:56 AM, Graeme Russ wrote: >> I have done a little more digging. By adding an ascii string before >> relocated: label, I am able to determine that the int3 after the relocated: >> label exists in bzImage at offset 0x1C3FD7 >> >> EAX holds (for the jump) 0x5379d0 (different bzImage of course). The >> contents of memory at this address is in bzImage at offset 0x1C09D7 - A >> difference of 0x3600 (seems too even to be random) >> >> I'm obviously doing something hideously wrong, but what? >> > > 0x3600 sounds like the size of the real-mode code in bzImage. > But what could I be doing to cause the miscalculation? From what I understand, everything looks to be calculated at build time Graeme