From 5b6b84202f5b9ebcf0ee3b0215ec2c406b0ace0f Mon Sep 17 00:00:00 2001 From: TomAwezome Date: Sun, 16 Oct 2022 19:33:14 -0400 Subject: [PATCH] Update KernelB.HH debug fixme comment. --- src/Kernel/KernelB.HH | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Kernel/KernelB.HH b/src/Kernel/KernelB.HH index 0bcf98cb..b56d5ef4 100755 --- a/src/Kernel/KernelB.HH +++ b/src/Kernel/KernelB.HH @@ -13,7 +13,11 @@ public _intern IC_BTC Bool Btc( U8 *bit_field, I64 bit); //Bit test and co //public _intern IC_BTR Bool Btr( U8 *bit_field, I64 bit); //Bit test and reset to zero. //public _intern IC_BTS Bool Bts( U8 *bit_field, I64 bit); //Bit test and set to one. -// TODO FIXME DEBUG: fix ICBitOps bugs when using on bare metal into PCI device memory-mapped areas +// TODO FIXME DEBUG: Fix ICBitOps bugs when using on bare metal into PCI device memory-mapped areas. +// Temporarily manually defining functions for Bt, Btr, and Bts below. +// (certain Bt(), Btr(), and Bts() on AHCI memory areas using variable (reg, not imm) bit param +// caused strange crashes on a Ryzen with Gigabyte brand motherboard, all PCI devices AMD brand. +// Bit test compiler implementation needs to be researched to fix those bugs.) Bool Bt(U8 *bit_field, I64 bit) {