mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
6d2c298b66
As there is no need for a Prekernel on aarch64, the Prekernel code was moved into Kernel itself. The functionality remains the same. SERENITY_KERNEL_AND_INITRD in run.sh specifies a kernel and an inital ramdisk to be used by the emulator. This is needed because aarch64 does not need a Prekernel and the other ones do.
20 lines
329 B
C++
20 lines
329 B
C++
/*
|
|
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Arch/aarch64/MainIdRegister.h>
|
|
|
|
namespace Prekernel {
|
|
|
|
MainIdRegister::MainIdRegister()
|
|
{
|
|
unsigned int mrs;
|
|
asm volatile("mrs %x0, MIDR_EL1"
|
|
: "=r"(mrs));
|
|
m_value = mrs;
|
|
}
|
|
|
|
}
|