From patchwork Thu Oct 16 08:26:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 400203 X-Patchwork-Delegate: sjg@chromium.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 2261B1400B6 for ; Thu, 16 Oct 2014 19:27:07 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7FE97A7406; Thu, 16 Oct 2014 10:27:05 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GaEzznmdnWuU; Thu, 16 Oct 2014 10:27:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8AF4CA73FA; Thu, 16 Oct 2014 10:27:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C7C32A73FA for ; Thu, 16 Oct 2014 10:27:00 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id duYJmNwnawrs for ; Thu, 16 Oct 2014 10:27:00 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f169.google.com (mail-pd0-f169.google.com [209.85.192.169]) by theia.denx.de (Postfix) with ESMTPS id 59E5FA73F9 for ; Thu, 16 Oct 2014 10:26:56 +0200 (CEST) Received: by mail-pd0-f169.google.com with SMTP id w10so2841358pde.28 for ; Thu, 16 Oct 2014 01:26:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=lvHt0ICOiEwOKDUsEhUboeOza9RDHjQCLnt6Mp4D5FQ=; b=f81MrtLiWwgX7oUSx3ga6Mii88w6pA6KHq4S1VbifayhjvfWE+OvM1L/JNr6WUrJjx ywVkGQOtjW+IBC6UYSFn165MevktLo/TzuOXsadT1wlolsRKDpDy+ek4vnN2PytLQJ+B KdgccussK7RRyrCR8uR0jWsxiRu/1OH3RHD0D//A2U6pYArx+l87SdnR1782L1U26D1g 6/EuQ/EiSMHEYHSuAJVDeyw5B/NTONMDPTPi/54XeWUpyE0yWCT2wUm9KIczpb2wXDNr esr0Qvg0UxH1E2gkPs21hjP3fWNvzYBPadFYxWfJhCxIUrOIrhUhfZ4k8vmoKZ1iPj2N a8uQ== X-Received: by 10.66.219.99 with SMTP id pn3mr172063pac.156.1413448015347; Thu, 16 Oct 2014 01:26:55 -0700 (PDT) Received: from pek-cc-pb03l.wrs.com ([106.120.101.38]) by mx.google.com with ESMTPSA id xf9sm19274501pab.2.2014.10.16.01.26.52 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 16 Oct 2014 01:26:54 -0700 (PDT) From: Bin Meng To: Simon Glass , U-Boot Mailing List Date: Thu, 16 Oct 2014 16:26:42 +0800 Message-Id: <1413448002-12903-1-git-send-email-bmeng.cn@gmail.com> X-Mailer: git-send-email 1.8.2.1 Subject: [U-Boot] [PATCH 2/2] x86: Fix GDT limit in start16.S X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de GDT limit should be one less than an integral multiple of eight. Signed-off-by: Bin Meng Acked-by: Simon Glass --- arch/x86/cpu/start16.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S index 8b9b327..6968fda 100644 --- a/arch/x86/cpu/start16.S +++ b/arch/x86/cpu/start16.S @@ -70,7 +70,7 @@ idt_ptr: * GDT is setup in a safe location in RAM */ gdt_ptr: - .word 0x20 /* limit (32 bytes = 4 GDT entries) */ + .word 0x1f /* limit (31 bytes = 4 GDT entries - 1) */ .long BOOT_SEG + gdt /* base */ /* Some CPUs are picky about GDT alignment... */