diff options
| author | Andriy Gapon <avg@FreeBSD.org> | 2012-09-11 06:15:55 +0000 |
|---|---|---|
| committer | Andriy Gapon <avg@FreeBSD.org> | 2012-09-11 06:15:55 +0000 |
| commit | 9d1889cd04de1450e8c35276c5d52dd3762f2bf6 (patch) | |
| tree | 57d69af0ad9454b5b74d96fc8ba463d73a859dbf /sys/boot | |
| parent | 947bb4a4a5c7b75d2d74548b9362a0cfa00c4582 (diff) | |
Notes
Diffstat (limited to 'sys/boot')
| -rw-r--r-- | sys/boot/i386/loader/main.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/boot/i386/loader/main.c b/sys/boot/i386/loader/main.c index 143241b766b7..c3927cb22941 100644 --- a/sys/boot/i386/loader/main.c +++ b/sys/boot/i386/loader/main.c @@ -322,13 +322,13 @@ command_heap(int argc, char *argv[]) } /* ISA bus access functions for PnP, derived from <machine/cpufunc.h> */ -static int +static int isa_inb(int port) { u_char data; - - if (__builtin_constant_p(port) && - (((port) & 0xffff) < 0x100) && + + if (__builtin_constant_p(port) && + (((port) & 0xffff) < 0x100) && ((port) < 0x10000)) { __asm __volatile("inb %1,%0" : "=a" (data) : "id" ((u_short)(port))); } else { @@ -341,9 +341,9 @@ static void isa_outb(int port, int value) { u_char al = value; - - if (__builtin_constant_p(port) && - (((port) & 0xffff) < 0x100) && + + if (__builtin_constant_p(port) && + (((port) & 0xffff) < 0x100) && ((port) < 0x10000)) { __asm __volatile("outb %0,%1" : : "a" (al), "id" ((u_short)(port))); } else { |
