Live with it: I had hoped to find a neat way to deal with all the magic

numbers, but so far havn't come up with anything:  Add an #ifdef PC98.
This commit is contained in:
Poul-Henning Kamp 2002-10-22 11:55:27 +00:00
parent a50c83e35c
commit 374ec39bb6

View File

@ -81,6 +81,13 @@ void
All_FreeBSD(struct disk *d, int force_all)
{
struct chunk *c;
int type;
#ifdef PC98
type = 0x494;
#else
type = 0xa5;
#endif
again:
for (c = d->chunks->part; c; c = c->next)
@ -91,10 +98,10 @@ All_FreeBSD(struct disk *d, int force_all)
c = d->chunks;
if (force_all) {
Sanitize_Bios_Geom(d);
Create_Chunk(d, c->offset, c->size, freebsd, 0x494,
Create_Chunk(d, c->offset, c->size, freebsd, type,
CHUNK_FORCE_ALL, "FreeBSD");
} else {
Create_Chunk(d, c->offset, c->size, freebsd, 0x494, 0,
Create_Chunk(d, c->offset, c->size, freebsd, type, 0,
"FreeBSD");
}
}