mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-21 10:19:03 +03:00
1f3977b303
Now that we merged all the Prekernel files into the Kernel files, we can get rid of the Prekernel namespace as well.
20 lines
326 B
C++
20 lines
326 B
C++
/*
|
|
* Copyright (c) 2021, Nico Weber <thakis@chromium.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#include <Kernel/Arch/aarch64/MainIdRegister.h>
|
|
|
|
namespace Kernel {
|
|
|
|
MainIdRegister::MainIdRegister()
|
|
{
|
|
unsigned int mrs;
|
|
asm volatile("mrs %x0, MIDR_EL1"
|
|
: "=r"(mrs));
|
|
m_value = mrs;
|
|
}
|
|
|
|
}
|