From: Robert Millan <rmh@aybabtu.com>
To: grub-devel@gnu.org
Subject: Re: help with powerpc asm (moving grub_ieee1275_entry_fn initialization to crt0.S)
Date: Tue, 15 Jan 2008 21:08:24 +0100 [thread overview]
Message-ID: <20080115200824.GA2881@thorin> (raw)
In-Reply-To: <20080113191251.GA9050@thorin>
[-- Attachment #1: Type: text/plain, Size: 352 bytes --]
Here's an incomplete (missing powerpc & sparc) version of the patch that
would sanitize this function call.
In the meantime i386 just puts the value in %ecx (third argument) to match
what powerpc is doing.
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
[-- Attachment #2: ieee1275_statup.diff --]
[-- Type: text/x-diff, Size: 977 bytes --]
diff -urp grub2/kern/i386/ieee1275/startup.S ieee1275_statup/kern/i386/ieee1275/startup.S
--- grub2/kern/i386/ieee1275/startup.S 2008-01-15 21:05:44.000000000 +0100
+++ ieee1275_statup/kern/i386/ieee1275/startup.S 2008-01-15 21:06:18.000000000 +0100
@@ -34,5 +34,5 @@
start:
_start:
- movl %eax, %ecx
+ movl %eax, EXT_C(grub_ieee1275_entry_fn)
jmp EXT_C(cmain)
diff -urp grub2/kern/powerpc/ieee1275/cmain.c ieee1275_statup/kern/powerpc/ieee1275/cmain.c
--- grub2/kern/powerpc/ieee1275/cmain.c 2008-01-15 17:13:55.000000000 +0100
+++ ieee1275_statup/kern/powerpc/ieee1275/cmain.c 2008-01-15 21:06:38.000000000 +0100
@@ -102,12 +102,9 @@ grub_ieee1275_find_options (void)
}
}
-void cmain (uint32_t r3, uint32_t r4, uint32_t r5);
void
-cmain (UNUSED uint32_t r3, UNUSED uint32_t r4, uint32_t r5)
+cmain (void)
{
- grub_ieee1275_entry_fn = (int (*)(void *)) r5;
-
grub_ieee1275_finddevice ("/chosen", &grub_ieee1275_chosen);
grub_ieee1275_find_options ();
next prev parent reply other threads:[~2008-01-15 20:09 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-13 19:12 help with powerpc asm (moving grub_ieee1275_entry_fn initialization to crt0.S) Robert Millan
2008-01-15 20:08 ` Robert Millan [this message]
2008-01-17 7:54 ` Pavel Roskin
2008-01-17 12:17 ` Robert Millan
2008-01-17 17:30 ` Pavel Roskin
2008-01-17 19:11 ` Robert Millan
2008-01-17 20:08 ` Pavel Roskin
2008-01-19 11:40 ` Robert Millan
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=20080115200824.GA2881@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.