Please see attached patch which adds support for a few options that
the FreeBSD-CURRENT loader is able to understand.

Alex
diff -ru grub-cvs/stage2/freebsd.h grub-0.92/stage2/freebsd.h
--- grub-cvs/stage2/freebsd.h   Mon Nov 12 07:57:29 2001
+++ grub-0.92/stage2/freebsd.h  Fri Nov 22 13:00:25 2002
@@ -33,6 +33,11 @@
 #define RB_VERBOSE      0x800  /* print all potentially useful info */
 #define RB_SERIAL       0x1000 /* user serial port as console */
 #define RB_CDROM        0x2000 /* use cdrom as root */
+#define RB_POWEROFF     0x4000  /* if you can, turn the power off */
+#define RB_GDB          0x8000  /* use GDB remote debugger instead of DDB */
+#define RB_MUTE         0x10000 /* Come up with the console muted */
+
+#define RB_MULTIPLE     0x20000000      /* Use multiple consoles */
 
 #define RB_BOOTINFO     0x80000000     /* have `struct bootinfo *' arg */
 


--- grub-cvs/stage2/boot.c      Fri Jul 12 11:55:55 2002
+++ grub-0.92/stage2/boot.c     Fri Nov 22 13:00:55 2002
@@ -887,8 +860,14 @@
                clval |= RB_CONFIG;
              if (*str == 'd')
                clval |= RB_KDB;
+             if (*str == 'D')
+               clval |= RB_MULTIPLE;
+             if (*str == 'g')
+               clval |= RB_GDB;
              if (*str == 'h')
                clval |= RB_SERIAL;
+             if (*str == 'm')
+               clval |= RB_MUTE;
              if (*str == 'r')
                clval |= RB_DFLTROOT;
              if (*str == 's')

Reply via email to