summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/AMD64/PCI
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel/HALKit/AMD64/PCI')
-rw-r--r--dev/Kernel/HALKit/AMD64/PCI/Device.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/Kernel/HALKit/AMD64/PCI/Device.cc b/dev/Kernel/HALKit/AMD64/PCI/Device.cc
index 7b0f64b3..d02c7e22 100644
--- a/dev/Kernel/HALKit/AMD64/PCI/Device.cc
+++ b/dev/Kernel/HALKit/AMD64/PCI/Device.cc
@@ -106,7 +106,7 @@ namespace Kernel::PCI
void Device::EnableMmio(UInt32 bar_in)
{
- bool enable = Read(bar_in, sizeof(UChar)) | (1 << 1);
+ bool enable = Read(bar_in, sizeof(UShort)) | (1 << 1);
Write(bar_in, enable, sizeof(UShort));
}