public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Russell <rusty@rustcorp.com.au>
To: Andi Kleen <ak@muc.de>, Andrew Morton <akpm@osdl.org>
Cc: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>,
	Jeremy Fitzhardinge <jeremy@goop.org>,
	Zachary Amsden <zach@vmware.com>, Pratap <pratap@vmware.com>,
	Chris Wright <chrisw@sous-sol.org>,
	lkml - Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH 2/6] reboot.c to use struct Xgt_desc_struct
Date: Sat, 22 Jul 2006 10:05:31 +1000	[thread overview]
Message-ID: <1153526732.13699.21.camel@localhost.localdomain> (raw)
In-Reply-To: <1153526643.13699.18.camel@localhost.localdomain>

arch/i386/kernel/reboot.c defines its own struct to describe an ldt
entry: it should use struct Xgt_desc_struct (currently load_ldt is a
macro, so doesn't complain: paravirt patches make it warn).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Index: working-2.6.18-rc2-hg-paravirt/arch/i386/kernel/reboot.c
===================================================================
--- working-2.6.18-rc2-hg-paravirt.orig/arch/i386/kernel/reboot.c	2006-07-22 07:58:11.000000000 +1000
+++ working-2.6.18-rc2-hg-paravirt/arch/i386/kernel/reboot.c	2006-07-22 07:58:34.000000000 +1000
@@ -145,14 +145,10 @@
 	0x000092000100ffffULL	/* 16-bit real-mode 64k data at 0x00000100 */
 };
 
-static struct
-{
-	unsigned short       size __attribute__ ((packed));
-	unsigned long long * base __attribute__ ((packed));
-}
-real_mode_gdt = { sizeof (real_mode_gdt_entries) - 1, real_mode_gdt_entries },
-real_mode_idt = { 0x3ff, NULL },
-no_idt = { 0, NULL };
+static struct Xgt_desc_struct
+real_mode_gdt = { sizeof (real_mode_gdt_entries) - 1, (long)real_mode_gdt_entries },
+real_mode_idt = { 0x3ff, 0 },
+no_idt = { 0, 0 };
 
 
 /* This is 16-bit protected mode code to disable paging and the cache,

-- 
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law


       reply	other threads:[~2006-07-22  0:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1153526643.13699.18.camel@localhost.localdomain>
2006-07-22  0:05 ` Rusty Russell [this message]
     [not found] ` <1153526798.13699.23.camel@localhost.localdomain>
2006-07-22  0:13   ` [PATCH 6/6] cpuid neatening Rusty Russell
2006-07-22  4:12     ` David Schwartz
2006-07-24 23:58     ` H. Peter Anvin
2006-07-25  1:41       ` Andi Kleen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1153526732.13699.21.camel@localhost.localdomain \
    --to=rusty@rustcorp.com.au \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=ak@muc.de \
    --cc=akpm@osdl.org \
    --cc=chrisw@sous-sol.org \
    --cc=jeremy@goop.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pratap@vmware.com \
    --cc=zach@vmware.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox