aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib')
-rw-r--r--com32/lib/pci/readbios.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/com32/lib/pci/readbios.c b/com32/lib/pci/readbios.c
index 34f593c0..f8ff3bff 100644
--- a/com32/lib/pci/readbios.c
+++ b/com32/lib/pci/readbios.c
@@ -4,12 +4,12 @@
uint32_t __pci_read_bios(uint32_t call, pciaddr_t a)
{
- com32sys_t rs;
- memset(&rs, 0, sizeof rs);
- rs.eax.w[0] = call;
- rs.ebx.w[0] = a >> 8; /* bus:device:function */
- rs.edi.b[0] = a; /* address:reg */
- __intcall(0x1a, &rs, &rs);
+ com32sys_t rs;
+ memset(&rs, 0, sizeof rs);
+ rs.eax.w[0] = call;
+ rs.ebx.w[0] = a >> 8; /* bus:device:function */
+ rs.edi.b[0] = a; /* address:reg */
+ __intcall(0x1a, &rs, &rs);
- return (rs.eflags.l & EFLAGS_CF) ? ~(uint32_t)0 : rs.ecx.l;
+ return (rs.eflags.l & EFLAGS_CF) ? ~(uint32_t) 0 : rs.ecx.l;
}