From: Andrew Morton <akpm@osdl.org>
To: "Tolentino, Matthew E" <matthew.e.tolentino@intel.com>
Cc: ebiederm@xmission.com, linux-kernel@vger.kernel.org
Subject: Re: [updated patch] for efi support in ia32 kernels
Date: Fri, 3 Oct 2003 23:00:44 -0700 [thread overview]
Message-ID: <20031003230044.76e08ab4.akpm@osdl.org> (raw)
In-Reply-To: <D36CE1FCEFD3524B81CA12C6FE5BCAB002FFE713@fmsmsx406.fm.intel.com>
"Tolentino, Matthew E" <matthew.e.tolentino@intel.com> wrote:
>
> Attached is another patch that enables EFI boot-up support in ia32 kernels.
I've added the below patch to fix a few warnings:
arch/i386/kernel/efi.c:446: warning: cast from pointer to integer of different size
arch/i386/kernel/efi.c:455: warning: cast from pointer to integer of different size
arch/i386/kernel/efi.c:455: warning: cast to pointer from integer of different size
Please review, and test 2.6.0-test6-mm3 or later to make sure that things
are all OK.
Also, we really should make the EFI code CONFIGurable - it's another seven
kilobytes which a lot of people won't be needing. A patch against -mm
which implements that would be appreciated.
arch/i386/kernel/efi.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff -puN arch/i386/kernel/efi.c~ia32-efi-support-warning-fixes arch/i386/kernel/efi.c
--- 25/arch/i386/kernel/efi.c~ia32-efi-support-warning-fixes 2003-10-03 22:43:42.000000000 -0700
+++ 25-akpm/arch/i386/kernel/efi.c 2003-10-03 22:51:03.000000000 -0700
@@ -441,18 +441,19 @@ void __init efi_enter_virtual_mode(void)
if (md->attribute & EFI_MEMORY_RUNTIME) {
md->virt_addr =
- (u64) ioremap((unsigned long) md->phys_addr,
- (unsigned long) (md->num_pages
- << EFI_PAGE_SHIFT));
+ (unsigned long)ioremap(md->phys_addr,
+ md->num_pages << EFI_PAGE_SHIFT);
if (!(unsigned long) md->virt_addr) {
printk(KERN_ERR PFX "ioremap of md: 0x%lX failed \n",
(unsigned long) md->phys_addr);
}
if (((unsigned long)md->phys_addr <= (unsigned long)efi_phys.systab) && ((unsigned long)efi_phys.systab < md->phys_addr + ((unsigned long) md->num_pages << EFI_PAGE_SHIFT))) {
- efi.systab = (efi_system_table_t *)
- ((md->virt_addr - md->phys_addr) +
- (u64)efi_phys.systab);
+ unsigned long addr;
+
+ addr = md->virt_addr - md->phys_addr +
+ (unsigned long)efi_phys.systab;
+ efi.systab = (efi_system_table_t *)addr;
}
}
}
_
next prev parent reply other threads:[~2003-10-04 5:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-03 21:46 Tolentino, Matthew E
2003-10-04 6:00 ` Andrew Morton [this message]
2003-10-04 6:55 ` Andrew Morton
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=20031003230044.76e08ab4.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=ebiederm@xmission.com \
--cc=linux-kernel@vger.kernel.org \
--cc=matthew.e.tolentino@intel.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
all inboxes | Powered by JetHome®