Re: [PATCH 7/18] Don't clobber ebx/rbx in inline assembly when compiling with Apple's CC

2009-06-15 Thread Pavel Roskin
On Sat, 2009-05-30 at 16:49 +0200, Vladimir 'phcoder' Serbinenko wrote: > +#ifdef APPLE_CC >__asm__ __volatile__ ("xorl %%eax, %%eax\n\t" > -"cpuid":::"%rax", "%rbx", "%rcx", "%rdx"); Why do we need preprocessor conditionals here? What are we winning? I think it's mor

Re: [PATCH 6/18] define asm constant for absolute memory access

2009-06-15 Thread Pavel Roskin
On Sat, 2009-05-30 at 16:46 +0200, Vladimir 'phcoder' Serbinenko wrote: > +#ifdef APPLE_CC > +#define MSG(x) x ## _abs = ABS(x); movw $x ## _abs, %si; call message > +#else > #define MSG(x) movw $ABS(x), %si; call message > +#endif I have verified that defining APPLE_CC on Fedora would produce ex

Re: [PATCH 5/18] Check if cc is from apple toolchain

2009-06-15 Thread Pavel Roskin
On Sat, 2009-05-30 at 16:47 +0200, Vladimir 'phcoder' Serbinenko wrote: > +dnl check if our compiler is apple cc > +dnl because it requires numerous workarounds > +AC_DEFUN(grub_apple_cc, We don't use lowercase names for macros. They could conflict with variable names. > -boot_img_LDFLAGS = $(C

Re: [PATCH 4/18] Simplify sed script and make awk script more robust

2009-06-15 Thread Pavel Roskin
On Sat, 2009-05-30 at 16:44 +0200, Vladimir 'phcoder' Serbinenko wrote: > sed on apple's platform is more limited here is workaround. awk needs > a check not to make module depend on itself in some cases Sorry for not being able to review this series earlier. This patch doesn't seem to be properl

Re: [PATCH] Remove root drive support

2009-06-15 Thread Pavel Roskin
On Tue, 2009-06-16 at 01:41 +0200, Vladimir 'phcoder' Serbinenko wrote: > I successfully tested this patch in qemu with both grub-mkrescue and > multiboot load grub2-by-grub2. As I see root drive was always set to > 0xFF and so this field is useless and as it's in size-critical part. > However rea

Re: [PATCH] Remove root drive support

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
On Fri, Jun 12, 2009 at 10:45 PM, Pavel Roskin wrote: > Root drive support is not actually used by the installer.  Root drive is > superseded by grub_prefix with UUID, which is much more flexible, is > already used by grub-setup for cross-drive installs and doesn't require > a single byte in the bo

Re: [PATCH] hfs+ uuid

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
comitted On Fri, Jun 12, 2009 at 3:11 AM, Pavel Roskin wrote: > Quoting Vladimir 'phcoder' Serbinenko : > >>> If the variable name is not specified, I think xnu_uuid should just >>> output the UUID without any explanations.  Explanations belong to the >>> help, not to the normal output. >> >> GRUB

Re: [PATCH] probe command

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
Comitted On Wed, Jun 10, 2009 at 10:11 AM, Vladimir 'phcoder' Serbinenko wrote: > On Tue, Jun 9, 2009 at 11:48 PM, Pavel Roskin wrote: >> On Tue, 2009-06-09 at 22:55 +0200, Vladimir 'phcoder' Serbinenko wrote: >> >>> > --target=partmap doesn't work on whole disks. >>> It was the intent. I'm norkin

Re: [PATCH] more scripting fixes

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
Comitted On Mon, Jun 15, 2009 at 5:22 PM, Vladimir 'phcoder' Serbinenko wrote: > On Sat, Jun 13, 2009 at 10:15 PM, Pavel Roskin wrote: >> On Sat, 2009-06-13 at 00:34 +0200, Vladimir 'phcoder' Serbinenko wrote: >> >>> > It looks like \" cancels quoting for the subsequent characters, but it >>> > sh

Re: [WIP PATCH 2/2] SDL support

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
On Tue, Jun 16, 2009 at 1:01 AM, Pavel Roskin wrote: > On Mon, 2009-06-15 at 17:21 +0200, Vladimir 'phcoder' Serbinenko wrote: >> Hello here I have a preliminary SDL support. With this WIP patch you >> have to add LD_FLAGS=-lSDL to configure command. Another two problems >> are that window is never

Re: [WIP PATCH 2/2] SDL support

2009-06-15 Thread Pavel Roskin
On Mon, 2009-06-15 at 17:21 +0200, Vladimir 'phcoder' Serbinenko wrote: > Hello here I have a preliminary SDL support. With this WIP patch you > have to add LD_FLAGS=-lSDL to configure command. Another two problems > are that window is never repainted and input still has to go to > terminal window

Re: how to boot Xen Dom0 in Grub2 SVN trunk

2009-06-15 Thread Pavel Roskin
On Tue, 2009-06-16 at 00:01 +0200, Vladimir 'phcoder' Serbinenko wrote: > > Here is a part of terminal screen from MacOS X: > Thank you for reporting this problem. Tomorrow I'll look for a fix This message: -nostdlib -static -Wl,-preload -Wl,-segalign,20 -Wl,-image_base, comes from AC_MSG_RESUL

Re: how to boot Xen Dom0 in Grub2 SVN trunk

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
On Mon, Jun 15, 2009 at 11:44 PM, uzer cheg wrote: > Thank you for quick response, Vladimir. > > I just applied patch to grub2-r2322 and trying to build new grub2 image. > > It compiles fine on i386 platformbut ./configure script on amd64 > platform and MacOS X gets error message. > Here is a part

Re: how to boot Xen Dom0 in Grub2 SVN trunk

2009-06-15 Thread uzer cheg
Thank you for quick response, Vladimir. I just applied patch to grub2-r2322 and trying to build new grub2 image. It compiles fine on i386 platformbut ./configure script on amd64 platform and MacOS X gets error message. Here is a part of terminal screen from MacOS X: ... checking for nm... nm

Re: how to boot Xen Dom0 in Grub2 SVN trunk

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
On Mon, Jun 15, 2009 at 9:41 PM, uzer cheg wrote: > Dear all, > I'd like to ask you for an advice regarding Xen Dom0 support in > current Grub2 trunk. > Has anybody tried to boot Xen Dom0 by Grub2 on latest versions (r 2322 > for instance)? > > I installed Debian Linux 5.0 (lenny) with Dom0. > It w

how to boot Xen Dom0 in Grub2 SVN trunk

2009-06-15 Thread uzer cheg
Dear all, I'd like to ask you for an advice regarding Xen Dom0 support in current Grub2 trunk. Has anybody tried to boot Xen Dom0 by Grub2 on latest versions (r 2322 for instance)? I installed Debian Linux 5.0 (lenny) with Dom0. It works fine and loads in Xen Dom0 via legacy grub supplied by Debia

Re: what is the present stage of grub2 ?

2009-06-15 Thread J. Bakshi
On Sun, 14 Jun 2009 17:56:36 +0200 Felix Zielcke wrote: > Am Sonntag, den 14.06.2009, 21:09 +0530 schrieb J. Bakshi: > > Hello List, > > > > What is the present stage of grub2 ? Is it still in the development > > stage as stated in the official site ? > > I recently brought the homepage up here

Re: [PATCH] more scripting fixes

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
On Sat, Jun 13, 2009 at 10:15 PM, Pavel Roskin wrote: > On Sat, 2009-06-13 at 00:34 +0200, Vladimir 'phcoder' Serbinenko wrote: > >> > It looks like \" cancels quoting for the subsequent characters, but it >> > shouldn't. >> Actually the problem is different: escaping in quoting isn't parsed at >>

[WIP PATCH 2/2] SDL support

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
Hello here I have a preliminary SDL support. With this WIP patch you have to add LD_FLAGS=-lSDL to configure command. Another two problems are that window is never repainted and input still has to go to terminal window This will of course be fixed in the next patch just that I knew that debugging v

[WIP PATCH 1/2] Split framebuffer from vbe

2009-06-15 Thread Vladimir 'phcoder' Serbinenko
Hello. Here is my first attempt on splitting video_fb.mod from vbe.mod. The idea was to make framebuffer code work with render_target without knowing what the real video mode is and let video-card specific code bother with things like double buffering and modesetting. Two loader: linux and xnu have