FreeNOS
SunxiKernel.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 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_SUNXIKERNEL_H
19 #define __ARM_KERNEL_SUNXIKERNEL_H
20 
21 #include <FreeNOS/arm/ARMKernel.h>
23 #include <arm/ARMTimer.h>
24 
36 class SunxiKernel : public ARMKernel
37 {
38  public:
39 
45  SunxiKernel(CoreInfo *info);
46 
47  private:
48 
54  static void interrupt(CPUState state);
55 
56  private:
57 
60 
63 };
64 
70 #endif /* __ARM_KERNEL_SUNXIKERNEL_H */
SunxiKernel::m_armTimer
ARMTimer m_armTimer
ARM generic timer.
Definition: SunxiKernel.h:62
SunxiKernel::m_gic
ARMGenericInterrupt m_gic
ARM Generic Interrupt Controller.
Definition: SunxiKernel.h:59
ARMTimer
ARM Generic Timer.
Definition: ARMTimer.h:39
SunxiKernel::SunxiKernel
SunxiKernel(CoreInfo *info)
Constructor function.
Definition: SunxiKernel.cpp:28
ARMGenericInterrupt
ARM Generic Interrupt Controller (GIC) version 2.
Definition: ARMGenericInterrupt.h:38
ARMTimer.h
SunxiKernel::interrupt
static void interrupt(CPUState state)
Interrupt handler routine.
Definition: SunxiKernel.cpp:59
ARMGenericInterrupt.h
CPUState
Contains all the CPU registers.
Definition: ARMCore.h:243
CoreInfo
Per-Core information structure.
Definition: CoreInfo.h:60
SunxiKernel
Represents the Sunxi kernel implementation.
Definition: SunxiKernel.h:36
ARMKernel
Represents the ARM kernel implementation.
Definition: ARMKernel.h:40