diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-08 10:15:42 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2002-10-08 10:15:42 +0000 |
| commit | ed025d698386d382292698a5de0e04ec7417ab7a (patch) | |
| tree | e3712e8547d5a96c222ca5f11a7991c022e70734 /sys/boot | |
| parent | d06c7584b69cf86bb8d455e58364262d30e3a044 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/i386/boot2/boot2.c | 2 | ||||
| -rw-r--r-- | sys/boot/i386/gptboot/gptboot.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/boot/i386/boot2/boot2.c b/sys/boot/i386/boot2/boot2.c index d5de06846aa6f..f4faae959a0b1 100644 --- a/sys/boot/i386/boot2/boot2.c +++ b/sys/boot/i386/boot2/boot2.c @@ -224,7 +224,7 @@ main(void) int autoboot, i; ino_t ino; - dmadat = (void *)(roundup2(__base + _end, 0x10000) - __base); + dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base); v86.ctl = V86_FLAGS; dsk.drive = *(uint8_t *)PTOV(ARGS); dsk.type = dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD; diff --git a/sys/boot/i386/gptboot/gptboot.c b/sys/boot/i386/gptboot/gptboot.c index d5de06846aa6f..f4faae959a0b1 100644 --- a/sys/boot/i386/gptboot/gptboot.c +++ b/sys/boot/i386/gptboot/gptboot.c @@ -224,7 +224,7 @@ main(void) int autoboot, i; ino_t ino; - dmadat = (void *)(roundup2(__base + _end, 0x10000) - __base); + dmadat = (void *)(roundup2(__base + (int32_t)&_end, 0x10000) - __base); v86.ctl = V86_FLAGS; dsk.drive = *(uint8_t *)PTOV(ARGS); dsk.type = dsk.drive & DRV_HARD ? TYPE_AD : TYPE_FD; |
