Make geom_mbr.c optional on PC98, use GEOM_MBR option to include it.

Disable check for supposedly magic "IPL1" string for PC98 labels, its
thaumaturgical power is in doubt.
This commit is contained in:
phk 2002-10-26 20:17:59 +00:00
parent 46eab90645
commit fe41e143c1
2 changed files with 6 additions and 1 deletions

View File

@ -135,7 +135,6 @@ dev/syscons/scterm.c optional sc
dev/syscons/scterm-dumb.c optional sc
dev/syscons/scvidctl.c optional sc
dev/syscons/sysmouse.c optional sc
geom/geom_mbr.c standard
geom/geom_bsd.c standard
geom/geom_pc98.c standard
gnu/i386/fpemul/div_small.s optional gpl_math_emulate \

View File

@ -137,9 +137,15 @@ g_pc98_taste(struct g_class *mp, struct g_provider *pp, int flags)
if (buf[0x1fe] != 0x55 || buf[0x1ff] != 0xaa)
break;
#if 0
/*
* XXX: Some sources indicate this is a magic sequence, but appearantly
* XXX: it is not universal. Documentation would be wonderfule to have.
*/
if (buf[4] != 'I' || buf[5] != 'P' ||
buf[6] != 'L' || buf[7] != '1')
break;
#endif
for (i = 0; i < 16; i++) {
v = g_dec_le2(buf + 512 + 10 + i * 32);