Re: [PATCH] Move assembly code out of the kernel

2008-08-24 Thread Vesa Jääskeläinen
Bean wrote: On Sun, Aug 17, 2008 at 7:31 PM, Vesa Jääskeläinen [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I have made generic function that does basically the same thing for bios service 0x10 (video). In that modification you prepare registers structure that will be configured during

Re: [Fwd: Bug#495949: grub-common: grub-probe segfaults]

2008-08-24 Thread Felix Zielcke
Thanks very much for your reply Jean-Luc please make sure you're subscribed to grub-devel and then please reply there. If you want you can CC bugs.debian.org but it isn't needed. Both Robert and me are actively on grub-devel too. We're just not alone there and I don't feel myself able to trace

Re: Modifying GRUB to read DMI data

2008-08-24 Thread Javier Martín
2008/8/24 W. Michael Petullo [EMAIL PROTECTED]: I am interested in modifying GRUB to read DMI data from my BIOS (i.e., the data dmidecode reads). The SMBIOS specification seems to state that the Plug-n-Play function interface is deprecated while the table-based interface requires a processor

Re: GRUB_CONSOLE_KEY_NPAGE/PPAGE codes

2008-08-24 Thread Carles Pina i Estany
Hello, On Aug/23/2008, Vesa Jääskeläinen wrote: Let's define: NPAGE (next page) = PGDN (PG DOWN). PPAGE (previous page) = PGUP (PG UP). Is this assumption correct? [...] Or me.. couldn't we just use GRUB_CONSOLE_KEY_PAGE_UP / GRUB_CONSOLE_KEY_PAGE_DOWN or something like that. NPAGE or

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Christian Franke
Bean wrote: Hi, This patch add support for mingw, now you can create native executable for windows. Nice! Does grub-setup work? ... --- a/include/grub/util/misc.h +++ b/include/grub/util/misc.h ... +#ifdef __MINGW32__ + +#include windows.h + +grub_int64_t fseeko (FILE *fp,

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Felix Zielcke
Am Sonntag, den 24.08.2008, 14:40 +0200 schrieb Christian Franke: I would suggest to add AC_CHECK_FUNC(asprintf) to configure. asprintf() is a GNU extension and not part of C99 or POSIX. See my [RFC] GNU extention topic. There's already in configure.ac a check for #define _GNU_SOURCE which is

[PATCH] Correcting GRUB_CONSOLE_KEY_NPAGE/PPAGE

2008-08-24 Thread Carles Pina i Estany
Hello, I send a patch that corrects the GRUB_CONSOLE_KEY_NPAGE/PPAGE constants. ChangeLog: 2008-08-24 Carles Pina i Estany [EMAIL PROTECTED] * include/grub/powerpc/ieee1275/console.h (GRUB_TERM_NPAGE): Changed to 0x5100. (GRUB_TERM_PPAGE): Changed to 0x4900.

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Bean
On Sun, Aug 24, 2008 at 8:40 PM, Christian Franke [EMAIL PROTECTED] wrote: Bean wrote: Hi, This patch add support for mingw, now you can create native executable for windows. Nice! Does grub-setup work? Yes, it works, although mingw can't use device names like /dev/sda, but it can use

Re: [PATCH] Correcting GRUB_CONSOLE_KEY_NPAGE/PPAGE

2008-08-24 Thread Carles Pina i Estany
Hi, I was just thinking now... On Aug/24/2008, Carles Pina i Estany wrote: * include/grub/powerpc/ieee1275/console.h (GRUB_TERM_NPAGE): Changed to 0x5100. (GRUB_TERM_PPAGE): Changed to 0x4900. * include/grub/sparc64/ieee1275/console.h: Likewise. *

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Bean
On Sun, Aug 24, 2008 at 8:48 PM, Felix Zielcke [EMAIL PROTECTED] wrote: Am Sonntag, den 24.08.2008, 14:40 +0200 schrieb Christian Franke: I would suggest to add AC_CHECK_FUNC(asprintf) to configure. asprintf() is a GNU extension and not part of C99 or POSIX. See my [RFC] GNU extention topic.

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Felix Zielcke
Am Sonntag, den 24.08.2008, 23:11 +0800 schrieb Bean: Hi Bean, Hi, I just check, _GNU_SOURCE is defined for mingw, but asprintf is still missing. I guess mingw implementation is not so completed. Oh sorry I forgot to tell you that you may need to add a `#include config.h' For my

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Bean
On Sun, Aug 24, 2008 at 11:25 PM, Felix Zielcke [EMAIL PROTECTED] wrote: Am Sonntag, den 24.08.2008, 23:11 +0800 schrieb Bean: Hi Bean, Hi, I just check, _GNU_SOURCE is defined for mingw, but asprintf is still missing. I guess mingw implementation is not so completed. Oh sorry I forgot to

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Bean
Hi, This is the new patch with modification suggested by Christian, it also change grub-mkdevicemap to support mingw device name //./PHYSICALDRIVE0 and fix some warnings. -- Bean diff --git a/config.h.in b/config.h.in index e2dd41f..044e81e 100644 --- a/config.h.in +++ b/config.h.in @@ -25,6

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Vesa Jääskeläinen
Bean wrote: Yes, it works, although mingw can't use device names like /dev/sda, but it can use windows special name //./PHYSICALDRIVE0. That should be with back slashes ('\'). Or is there some hack somewhere to support that? ___ Grub-devel mailing

Re: GRUB_CONSOLE_KEY_NPAGE/PPAGE codes

2008-08-24 Thread Vesa Jääskeläinen
Carles Pina i Estany wrote: In the ChangeLog from Grub (not Grub2) I can read: 1999-03-13 Gordon Matzigkeit [EMAIL PROTECTED] [...] * shared_src/shared.h (KEY_DELETE): Rename to KEY_DC, for compatibility with curses. (KEY_INSERT): Rename to KEY_IC.

Re: [PATCH] Correcting GRUB_CONSOLE_KEY_NPAGE/PPAGE

2008-08-24 Thread Vesa Jääskeläinen
Carles Pina i Estany wrote: I was just thinking... is there any reason that we have the same macros in 4 different files? Why not having just a grub/console_scancodes.h: #ifndef GRUB_CONSOLE_SCAN_CODES #define GRUB_CONSOLE_KEY_LEFT 0x4B00 #define GRUB_CONSOLE_KEY_RIGHT

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Bean
On Mon, Aug 25, 2008 at 12:04 AM, Vesa Jääskeläinen [EMAIL PROTECTED] wrote: Bean wrote: Yes, it works, although mingw can't use device names like /dev/sda, but it can use windows special name //./PHYSICALDRIVE0. That should be with back slashes ('\'). Or is there some hack somewhere to

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Vesa Jääskeläinen
Bean wrote: On Mon, Aug 25, 2008 at 12:04 AM, Vesa Jääskeläinen [EMAIL PROTECTED] wrote: Bean wrote: Yes, it works, although mingw can't use device names like /dev/sda, but it can use windows special name //./PHYSICALDRIVE0. That should be with back slashes ('\'). Or is there some hack

Re: [PATCH] Mingw support for grub2

2008-08-24 Thread Christian Franke
Vesa Jääskeläinen wrote: Bean wrote: On Mon, Aug 25, 2008 at 12:04 AM, Vesa Jääskeläinen [EMAIL PROTECTED] wrote: Bean wrote: Yes, it works, although mingw can't use device names like /dev/sda, but it can use windows special name //./PHYSICALDRIVE0. That should be

Re: [PATCH] Correcting GRUB_CONSOLE_KEY_NPAGE/PPAGE

2008-08-24 Thread Carles Pina i Estany
Hi, On Aug/24/2008, Vesa Jääskeläinen wrote: Carles Pina i Estany wrote: I was just thinking... is there any reason that we have the same macros in 4 different files? Why not having just a grub/console_scancodes.h: #ifndef GRUB_CONSOLE_SCAN_CODES #define

Re: [PATCH] Correcting GRUB_CONSOLE_KEY_NPAGE/PPAGE (summary)

2008-08-24 Thread Carles Pina i Estany
Hello, On Aug/24/2008, Carles Pina i Estany wrote: ChangeLog: 2008-08-24 Carles Pina i Estany [EMAIL PROTECTED] * include/grub/powerpc/ieee1275/console.h (GRUB_TERM_NPAGE): Changed to 0x5100. (GRUB_TERM_PPAGE): Changed to 0x4900. *

Re: Modifying GRUB to read DMI data

2008-08-24 Thread W. Michael Petullo
On Aug 24, 2008, at 6:32 AM, Javier Martín wrote: 2008/8/24 W. Michael Petullo [EMAIL PROTECTED]: I am interested in modifying GRUB to read DMI data from my BIOS (i.e., the data dmidecode reads). The SMBIOS specification seems to state that the Plug-n-Play function interface is deprecated