summaryrefslogtreecommitdiffhomepage
path: root/dev/Kernel/HALKit/ARM64/APM
diff options
context:
space:
mode:
Diffstat (limited to 'dev/Kernel/HALKit/ARM64/APM')
-rw-r--r--dev/Kernel/HALKit/ARM64/APM/.gitkeep0
-rw-r--r--dev/Kernel/HALKit/ARM64/APM/APM+IO.cc (renamed from dev/Kernel/HALKit/ARM64/APM/APM.cc)8
2 files changed, 4 insertions, 4 deletions
diff --git a/dev/Kernel/HALKit/ARM64/APM/.gitkeep b/dev/Kernel/HALKit/ARM64/APM/.gitkeep
deleted file mode 100644
index e69de29b..00000000
--- a/dev/Kernel/HALKit/ARM64/APM/.gitkeep
+++ /dev/null
diff --git a/dev/Kernel/HALKit/ARM64/APM/APM.cc b/dev/Kernel/HALKit/ARM64/APM/APM+IO.cc
index 51ac14f3..d9b2512d 100644
--- a/dev/Kernel/HALKit/ARM64/APM/APM.cc
+++ b/dev/Kernel/HALKit/ARM64/APM/APM+IO.cc
@@ -9,7 +9,7 @@
using namespace Kernel;
-/// @brief Send a APM command into it's own IO space.
+/// @brief Send APM command to it's space.
/// @param base_dma the IO base port.
/// @param cmd the command.
/// @return status code.
@@ -19,15 +19,15 @@ EXTERN_C Int32 apm_send_io_command(UInt16 cmd, APMPowerCmd value)
{
case kAPMPowerCommandReboot: {
asm volatile(
- "ldr x0, =0x84000009\n"
- "hvc #0\n");
+ "ldr x0, =0x84000004\n"
+ "svc #0\n");
return kErrorSuccess;
}
case kAPMPowerCommandShutdown: {
asm volatile(
"ldr x0, =0x84000008\n"
- "hvc #0\n");
+ "svc #0\n");
return kErrorSuccess;
}