summaryrefslogtreecommitdiffhomepage
path: root/Private/NewBoot/BootKit/BootKit.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-03 14:52:52 +0100
committerAmlal El Mahrouss <amlalelmahrouss@icloud.com>2024-02-03 14:52:52 +0100
commitfcccf780db4cdc23858c108c6cde1d08360ee88f (patch)
tree6e9d871860fe4a6f415b95f7d77d2ac5bf9275a2 /Private/NewBoot/BootKit/BootKit.hxx
parent1f0cdb9f4ad64623ae8434a81fcbe8d37a5c8164 (diff)
Kernel: Got stuck at the way I do things, trying another approach see
hcore ticket HCR-11 in Jira. Signed-off-by: Amlal El Mahrouss <amlalelmahrouss@icloud.com>
Diffstat (limited to 'Private/NewBoot/BootKit/BootKit.hxx')
-rw-r--r--Private/NewBoot/BootKit/BootKit.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx
index 0cbddfab..766749bd 100644
--- a/Private/NewBoot/BootKit/BootKit.hxx
+++ b/Private/NewBoot/BootKit/BootKit.hxx
@@ -84,7 +84,8 @@ class BImageReader final {
private:
Int32 mErrorCode{kOperationOkay};
CharacterType mPath[kPathLen];
- VoidPtr mHandle{nullptr};
+ BTextWriter mWriter;
+ BATADevice mDevice;
};
/***********************************************************************************/
@@ -121,7 +122,7 @@ inline UInt8 In8(UInt16 port) {
inline UInt16 In16(UInt16 port) {
UInt16 value = 0UL;
- asm volatile("inw %1, %%ax" : "=a"(value) : "Nd"(port) : "memory");
+ asm volatile("in %%dx, %%ax" : "=a"(value) : "d"(port));
return value;
}