summaryrefslogtreecommitdiffhomepage
path: root/dev/zba/src
diff options
context:
space:
mode:
Diffstat (limited to 'dev/zba/src')
-rw-r--r--dev/zba/src/BootSupport.cxx4
-rw-r--r--dev/zba/src/HEL/AMD64/BootMain.cxx8
-rw-r--r--dev/zba/src/HEL/ARM64/BootMain.cxx2
-rw-r--r--dev/zba/src/HEL/ARM64/BootPlatform.cxx7
-rw-r--r--dev/zba/src/Thread.cxx4
5 files changed, 12 insertions, 13 deletions
diff --git a/dev/zba/src/BootSupport.cxx b/dev/zba/src/BootSupport.cxx
index f0fb3def..bda7ee38 100644
--- a/dev/zba/src/BootSupport.cxx
+++ b/dev/zba/src/BootSupport.cxx
@@ -75,6 +75,8 @@ EXTERN_C int strcmp(const char* whatToCheck, const char* whatToCheckRight)
}
/// @brief something specific to the Microsoft's ABI, When the stack grows too big.
-EXTERN_C void ___chkstk_ms(void) {}
+EXTERN_C void ___chkstk_ms(void)
+{
+}
#endif
diff --git a/dev/zba/src/HEL/AMD64/BootMain.cxx b/dev/zba/src/HEL/AMD64/BootMain.cxx
index 5335ca7a..113f2d40 100644
--- a/dev/zba/src/HEL/AMD64/BootMain.cxx
+++ b/dev/zba/src/HEL/AMD64/BootMain.cxx
@@ -32,7 +32,7 @@
/** Graphics related. */
-STATIC EfiGraphicsOutputProtocol* kGop = nullptr;
+STATIC EfiGraphicsOutputProtocol* kGop = nullptr;
STATIC UInt16 kGopStride = 0U;
STATIC EfiGUID kGopGuid;
@@ -78,8 +78,8 @@ EXTERN EfiBootServices* BS;
/// @param ImageHandle Handle of this image.
/// @param SystemTable The system table of it.
/// @return nothing, never returns.
-EFI_EXTERN_C EFI_API Int32 Main(EfiHandlePtr ImageHandle,
- EfiSystemTable* SystemTable)
+EFI_EXTERN_C EFI_API Int32 Main(EfiHandlePtr ImageHandle,
+ EfiSystemTable* SystemTable)
{
InitEFI(SystemTable); ///! Init the EFI library.
@@ -149,7 +149,7 @@ EFI_EXTERN_C EFI_API Int32 Main(EfiHandlePtr ImageHandle,
mp->GetNumberOfProcessors(mp, &cnt_disabled, &cnt_enabled);
#ifdef __ZKA_USE_FB__
- CGDrawString("NEWOSLDR (C) ZKA TECHNOLOGIES.", 10, 10, RGB(0xFF, 0xFF, 0xFF));
+ CGDrawString("NEWOSLDR (C) ZKA WEB SERVICES.", 10, 10, RGB(0xFF, 0xFF, 0xFF));
CGDrawString((cnt_enabled > 1) ? "MULTIPLE PROCESSORS DETECTED." : "SINGLE PROCESSOR DETECTED.", 20, 10, RGB(0xFF, 0xFF, 0xFF));
#endif // __ZKA_USE_FB__
diff --git a/dev/zba/src/HEL/ARM64/BootMain.cxx b/dev/zba/src/HEL/ARM64/BootMain.cxx
index 299b5adb..2dc940cd 100644
--- a/dev/zba/src/HEL/ARM64/BootMain.cxx
+++ b/dev/zba/src/HEL/ARM64/BootMain.cxx
@@ -19,7 +19,7 @@
EXTERN EfiBootServices* BS;
-STATIC EfiGraphicsOutputProtocol* kGop = nullptr;
+STATIC EfiGraphicsOutputProtocol* kGop = nullptr;
STATIC UInt16 kGopStride = 0U;
STATIC EfiGUID kGopGuid;
diff --git a/dev/zba/src/HEL/ARM64/BootPlatform.cxx b/dev/zba/src/HEL/ARM64/BootPlatform.cxx
index 2fb58647..b8c96a10 100644
--- a/dev/zba/src/HEL/ARM64/BootPlatform.cxx
+++ b/dev/zba/src/HEL/ARM64/BootPlatform.cxx
@@ -14,27 +14,24 @@ using namespace Boot;
EXTERN_C void rt_hlt()
{
- while (Yes);
+ while (Yes)
+ ;
}
EXTERN_C void rt_cli()
{
-
}
EXTERN_C void rt_sti()
{
-
}
EXTERN_C void rt_cld()
{
-
}
EXTERN_C void rt_std()
{
-
}
#endif // __STANDALONE__
diff --git a/dev/zba/src/Thread.cxx b/dev/zba/src/Thread.cxx
index a8b3e87c..46b9030b 100644
--- a/dev/zba/src/Thread.cxx
+++ b/dev/zba/src/Thread.cxx
@@ -39,11 +39,11 @@ namespace Boot
if (blob_bytes[0] == kMagMz0 &&
blob_bytes[1] == kMagMz1)
{
- LDR_EXEC_HEADER_PTR header_ptr = ldr_find_exec_header(blob_bytes);
+ LDR_EXEC_HEADER_PTR header_ptr = ldr_find_exec_header(blob_bytes);
LDR_OPTIONAL_HEADER_PTR opt_header_ptr = ldr_find_opt_exec_header(blob_bytes);
if (!header_ptr || !opt_header_ptr)
- return;
+ return;
#ifdef __ZKA_AMD64__
if (header_ptr->mMachine != kPeMachineAMD64 ||