diff options
author | phk <phk@FreeBSD.org> | 2002-12-14 17:34:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-12-14 17:34:28 +0000 |
commit | 5e638ceffdf347e98e89e2ebdca67f6f55be7f7c (patch) | |
tree | 856b5409646652910ef99fb3d3b8be65267c64f4 /sys/boot | |
parent | 3bf3f7056c05be310d0666dac1feec42b08ba499 (diff) | |
download | FreeBSD-src-5e638ceffdf347e98e89e2ebdca67f6f55be7f7c.zip FreeBSD-src-5e638ceffdf347e98e89e2ebdca67f6f55be7f7c.tar.gz |
Don't fill in the table with the BIOS idea about disk-geometry, we don't
use it. This saves a surprising number of bytes.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/i386/boot2/boot2.c | 15 | ||||
-rw-r--r-- | sys/boot/i386/gptboot/gptboot.c | 15 |
2 files changed, 0 insertions, 30 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c index d7b2a0b..dbc008c 100644 --- a/sys/boot/i386/boot2/boot2.c +++ b/sys/boot/i386/boot2/boot2.c @@ -194,19 +194,6 @@ getstr(char *str, int size) } } -static inline uint32_t -drvinfo(int drive) -{ - v86.addr = 0x13; - v86.eax = 0x800; - v86.edx = DRV_HARD + drive; - v86int(); - if (V86_CY(v86.efl)) - return 0x4f010f; - return ((v86.ecx & 0xc0) << 18) | ((v86.ecx & 0xff00) << 8) | - (v86.edx & 0xff00) | (v86.ecx & 0x3f); -} - static inline void putc(int c) { @@ -233,8 +220,6 @@ main(void) bootinfo.bi_basemem = 0; /* XXX will be filled by loader or kernel */ bootinfo.bi_extmem = memsize(MEM_EXT); bootinfo.bi_memsizes_valid++; - for (i = 0; i < N_BIOS_GEOM; i++) - bootinfo.bi_bios_geom[i] = drvinfo(i); /* Process configuration file */ diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c index d7b2a0b..dbc008c 100644 --- a/sys/boot/i386/gptboot/gptboot.c +++ b/sys/boot/i386/gptboot/gptboot.c @@ -194,19 +194,6 @@ getstr(char *str, int size) } } -static inline uint32_t -drvinfo(int drive) -{ - v86.addr = 0x13; - v86.eax = 0x800; - v86.edx = DRV_HARD + drive; - v86int(); - if (V86_CY(v86.efl)) - return 0x4f010f; - return ((v86.ecx & 0xc0) << 18) | ((v86.ecx & 0xff00) << 8) | - (v86.edx & 0xff00) | (v86.ecx & 0x3f); -} - static inline void putc(int c) { @@ -233,8 +220,6 @@ main(void) bootinfo.bi_basemem = 0; /* XXX will be filled by loader or kernel */ bootinfo.bi_extmem = memsize(MEM_EXT); bootinfo.bi_memsizes_valid++; - for (i = 0; i < N_BIOS_GEOM; i++) - bootinfo.bi_bios_geom[i] = drvinfo(i); /* Process configuration file */ |