From fcccf780db4cdc23858c108c6cde1d08360ee88f Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 3 Feb 2024 14:52:52 +0100 Subject: 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 --- Private/NewBoot/BootKit/BootKit.hxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Private/NewBoot/BootKit') 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; } -- cgit v1.2.3