summaryrefslogtreecommitdiffhomepage
path: root/Source
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-08 18:13:03 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2024-01-08 20:40:04 +0100
commitfc78d2f68ab5c9d9d84734fcc1af906c02a984b8 (patch)
tree8253a8439f6d107ebcd51b82783311d17f51a088 /Source
parentb06f525d69e6adab8da0a5129bcd39fc592c6922 (diff)
boot\mpt: add init_ata_mpt, and some specific things about the MPT.
other: add ppc directory for newBoot support. rev A: make it prettier. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Source')
-rw-r--r--Source/CodeManager.cxx4
-rw-r--r--Source/FileManager.cxx7
2 files changed, 5 insertions, 6 deletions
diff --git a/Source/CodeManager.cxx b/Source/CodeManager.cxx
index 47c7bd1b..4f65de07 100644
--- a/Source/CodeManager.cxx
+++ b/Source/CodeManager.cxx
@@ -23,9 +23,9 @@ namespace hCore
UInt32 rt_get_pef_platform(void)
{
#ifdef __powerpc
- return kPefArchPower;
+ return kPefArchPOWER;
#elif defined(__arc__)
- return kPefArchARC;
+ return kPefArch64x0;
#elif defined(__x86_64__)
return kPefArchAMD64;
#else
diff --git a/Source/FileManager.cxx b/Source/FileManager.cxx
index c7e51811..55b16cbe 100644
--- a/Source/FileManager.cxx
+++ b/Source/FileManager.cxx
@@ -25,10 +25,10 @@ namespace hCore
{
if (kMounted)
{
- auto mount = kMounted;
- kMounted = nullptr;
+ auto mount = kMounted;
+ kMounted = nullptr;
- return mount;
+ return mount;
}
return nullptr;
@@ -39,7 +39,6 @@ namespace hCore
if (pMount)
{
kMounted = pMount;
-
return true;
}