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 
27 class IntController;
28 
40 class 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 */
ARMException.h
IntController
Interrupt controller interface.
Definition: IntController.h:35
ARMException
ARM exception handling functionality.
Definition: ARMException.h:44
Types.h
ARMKernel::prefetchAbort
static void prefetchAbort(CPUState state)
Prefetch abort routine.
Definition: ARMKernel.cpp:92
ARMKernel::interrupt
static void interrupt(CPUState state)
Interrupt handler routine.
Definition: ARMKernel.cpp:74
Kernel
FreeNOS kernel implementation.
Definition: Kernel.h:92
CPUState
Contains all the CPU registers.
Definition: ARMCore.h:243
CoreInfo
Per-Core information structure.
Definition: CoreInfo.h:60
ARMKernel::m_exception
ARMException m_exception
ARM exception handling subsystem.
Definition: ARMKernel.h:98
ARMKernel::dataAbort
static void dataAbort(CPUState state)
Data abort routine.
Definition: ARMKernel.cpp:101
ARMKernel
Represents the ARM kernel implementation.
Definition: ARMKernel.h:40
ARMKernel::reserved
static void reserved(CPUState state)
Reserved routine.
Definition: ARMKernel.cpp:111
ARMKernel::ARMKernel
ARMKernel(CoreInfo *info)
Constructor function.
Definition: ARMKernel.cpp:28
ARMKernel::undefinedInstruction
static void undefinedInstruction(CPUState state)
Undefined instruction routine.
Definition: ARMKernel.cpp:83
ARMKernel::trap
static void trap(CPUState state)
Software trap routine.
Definition: ARMKernel.cpp:120