FreeNOS
ARM64Kernel.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Ivan Tan
3 * Copyright (C) 2015 Niek Linnenbank
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef __ARM64_KERNEL_H
20#define __ARM64_KERNEL_H
21
22#include <FreeNOS/Kernel.h>
23#include <FreeNOS/Process.h>
25#include <Types.h>
26
38class ARM64Kernel : public Kernel
39{
40 public:
41
47 ARM64Kernel(CoreInfo *info);
48
49 private:
55 static void trap(volatile CPUState &state);
56
62 static void SyncExceptionEL1(volatile CPUState state);
63
69 static void SyncExceptionEL0(volatile CPUState state);
70
76 static void FatalHandler(volatile CPUState state);
77 protected:
78
81};
82
88#endif /* __ARM64_KERNEL_H */
ARM64 exception handling functionality.
Represents the ARM64 kernel implementation.
Definition ARM64Kernel.h:39
static void trap(volatile CPUState &state)
Software trap routine.
static void SyncExceptionEL0(volatile CPUState state)
Synchronous exceptions from EL0.
static void FatalHandler(volatile CPUState state)
Fatal errors.
static void SyncExceptionEL1(volatile CPUState state)
Synchronous exceptions from EL1.
ARM64Exception m_exception
ARM64 exception handling subsystem.
Definition ARM64Kernel.h:80
FreeNOS kernel implementation.
Definition Kernel.h:93
Contains all the CPU registers.
Definition ARMCore.h:244
Per-Core information structure.
Definition CoreInfo.h:61