FreeNOS
ARMKernel.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015 Niek Linnenbank
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef __ARM_KERNEL_H
19#define __ARM_KERNEL_H
20
21#include <FreeNOS/Kernel.h>
22#include <FreeNOS/Process.h>
23#include <arm/ARMException.h>
24#include <Types.h>
25
27class IntController;
28
40class ARMKernel : public Kernel
41{
42 public:
43
49 ARMKernel(CoreInfo *info);
50
51 private:
52
58 static void interrupt(CPUState state);
59
65 static void trap(CPUState state);
66
72 static void undefinedInstruction(CPUState state);
73
79 static void prefetchAbort(CPUState state);
80
86 static void dataAbort(CPUState state);
87
93 static void reserved(CPUState state);
94
95 protected:
96
99};
100
106#endif /* __ARM_KERNEL_H */
u8 reserved[3]
Definition IntelACPI.h:4
ARM exception handling functionality.
Represents the ARM kernel implementation.
Definition ARMKernel.h:41
static void undefinedInstruction(CPUState state)
Undefined instruction routine.
Definition ARMKernel.cpp:83
static void trap(CPUState state)
Software trap routine.
ARMException m_exception
ARM exception handling subsystem.
Definition ARMKernel.h:98
static void prefetchAbort(CPUState state)
Prefetch abort routine.
Definition ARMKernel.cpp:92
static void interrupt(CPUState state)
Interrupt handler routine.
Definition ARMKernel.cpp:74
static void dataAbort(CPUState state)
Data abort routine.
Interrupt controller interface.
FreeNOS kernel implementation.
Definition Kernel.h:93
Contains all the CPU registers.
Definition ARMCore.h:244
Per-Core information structure.
Definition CoreInfo.h:61