bin/115406: [patch] gpt(8) GPT MBR hangs award BIOS on boot

Jeff Kletsky jeff+freebsd at wagsky.com
Thu Jul 9 19:20:04 UTC 2009


The following reply was made to PR bin/115406; it has been noted by GNATS.

From: Jeff Kletsky <jeff+freebsd at wagsky.com>
To: bug-followup at FreeBSD.org, kent at khauser.net
Cc:  
Subject: Re: bin/115406: [patch] gpt(8) GPT MBR hangs award BIOS on boot
Date: Thu, 09 Jul 2009 11:55:01 -0700

 Apparently still present in 7.2 -- *may* be the cause of BIOS 
 "destruction" on Intel D945GCLF2 boards.
 
  From /usr/src/sys/geom/part/g_part_gpt.c
 
         le16enc(table->mbr + DOSMAGICOFFSET, DOSMAGIC);
         table->mbr[DOSPARTOFF + 1] = 0xff;              /* shd */
         table->mbr[DOSPARTOFF + 2] = 0xff;              /* ssect */
         table->mbr[DOSPARTOFF + 3] = 0xff;              /* scyl */
         table->mbr[DOSPARTOFF + 4] = 0xee;              /* typ */
         table->mbr[DOSPARTOFF + 5] = 0xff;              /* ehd */
         table->mbr[DOSPARTOFF + 6] = 0xff;              /* esect */
         table->mbr[DOSPARTOFF + 7] = 0xff;              /* ecyl */
         le32enc(table->mbr + DOSPARTOFF + 8, 1);        /* start */
         le32enc(table->mbr + DOSPARTOFF + 12, MIN(last, 0xffffffffLL));
 


More information about the freebsd-bugs mailing list