bin/115406: commit references a PR

dfilter service dfilter at FreeBSD.ORG
Mon Aug 17 16:20:02 UTC 2009


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

From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: bin/115406: commit references a PR
Date: Mon, 17 Aug 2009 16:16:59 +0000 (UTC)

 Author: marcel
 Date: Mon Aug 17 16:16:46 2009
 New Revision: 196333
 URL: http://svn.freebsd.org/changeset/base/196333
 
 Log:
   The start of the EFI GPT partition in the PMBR can always be represented
   by CHS addressing. Don't define these fields as 0xff, but rather define
   them correctly. This prevents boot problems on PCs where GPT is being
   used.
   
   PR:		115406
   Submitted by:	Kent Hauser <kent at khauser.net>
   Approved by:	re (kib)
 
 Modified:
   head/sys/geom/part/g_part_gpt.c
 
 Modified: head/sys/geom/part/g_part_gpt.c
 ==============================================================================
 --- head/sys/geom/part/g_part_gpt.c	Mon Aug 17 16:12:28 2009	(r196332)
 +++ head/sys/geom/part/g_part_gpt.c	Mon Aug 17 16:16:46 2009	(r196333)
 @@ -409,9 +409,9 @@ g_part_gpt_create(struct g_part_table *b
  	last = (pp->mediasize / pp->sectorsize) - 1;
  
  	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 + 1] = 0x01;		/* shd */
 +	table->mbr[DOSPARTOFF + 2] = 0x01;		/* ssect */
 +	table->mbr[DOSPARTOFF + 3] = 0x00;		/* scyl */
  	table->mbr[DOSPARTOFF + 4] = 0xee;		/* typ */
  	table->mbr[DOSPARTOFF + 5] = 0xff;		/* ehd */
  	table->mbr[DOSPARTOFF + 6] = 0xff;		/* esect */
 _______________________________________________
 svn-src-all at freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
 


More information about the freebsd-bugs mailing list