mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
Kernel: Reorganize Arch/x86 directory to Arch/x86_64 after i686 removal
No functional change.
This commit is contained in:
parent
5ff318cf3a
commit
91db482ad3
129 changed files with 482 additions and 1116 deletions
26
Kernel/Arch/x86_64/Shutdown.cpp
Normal file
26
Kernel/Arch/x86_64/Shutdown.cpp
Normal file
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Liav A. <liavalb@hotmail.co.il>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <Kernel/Arch/x86_64/IO.h>
|
||||
#include <Kernel/Arch/x86_64/Shutdown.h>
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
void qemu_shutdown()
|
||||
{
|
||||
// Note: This will invoke QEMU Shutdown, but for other platforms (or emulators),
|
||||
// this has no effect on the system.
|
||||
// We also try the Bochs/Old QEMU shutdown method, if the first didn't work.
|
||||
IO::out16(0x604, 0x2000);
|
||||
IO::out16(0xb004, 0x2000);
|
||||
}
|
||||
|
||||
void virtualbox_shutdown()
|
||||
{
|
||||
IO::out16(0x4004, 0x3400);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue