diff options
author | jhb <jhb@FreeBSD.org> | 2000-07-12 18:05:18 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2000-07-12 18:05:18 +0000 |
commit | b4c0d6aa68030b0d552c9dc5ca7eb8f0c83657ee (patch) | |
tree | bb22442a95d7324f2129888d91a7b8c5faed272e /lib/libdisk/chunk.c | |
parent | 97196fa3a13e134bf65ff8bebbe8203fd3660634 (diff) | |
download | FreeBSD-src-b4c0d6aa68030b0d552c9dc5ca7eb8f0c83657ee.zip FreeBSD-src-b4c0d6aa68030b0d552c9dc5ca7eb8f0c83657ee.tar.gz |
- Allow support for MBR boot loaders that are longer than one sector. As
with fdisk, ensure that they are a multiple of the sector size in length.
- Axe all the 1024 cylinder checks as they are no longer relevant with the
fixed bootstrap.
Diffstat (limited to 'lib/libdisk/chunk.c')
-rw-r--r-- | lib/libdisk/chunk.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libdisk/chunk.c b/lib/libdisk/chunk.c index d8f4a10..424382a 100644 --- a/lib/libdisk/chunk.c +++ b/lib/libdisk/chunk.c @@ -322,9 +322,6 @@ ShowChunkFlags(struct chunk *c) if (c->flags & CHUNK_BSD_COMPAT) ret[i++] = 'C'; if (c->flags & CHUNK_ACTIVE) ret[i++] = 'A'; if (c->flags & CHUNK_ALIGN) ret[i++] = '='; -#ifndef PC98 - if (c->flags & CHUNK_PAST_1024) ret[i++] = '>'; -#endif if (c->flags & CHUNK_IS_ROOT) ret[i++] = 'R'; ret[i++] = '\0'; return ret; @@ -359,22 +356,6 @@ Debug_Chunk(struct chunk *c1) Print_Chunk(c1,2); } -#ifndef PC98 -void -Bios_Limit_Chunk(struct chunk *c1, u_long limit) -{ - if (c1->part) - Bios_Limit_Chunk(c1->part,limit); - if (c1->next) - Bios_Limit_Chunk(c1->next,limit); - if (c1->end >= limit) { - c1->flags |= CHUNK_PAST_1024; - } else { - c1->flags &= ~CHUNK_PAST_1024; - } -} -#endif - int Delete_Chunk(struct disk *d, struct chunk *c) { |