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
36class 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 */
ARM Generic Interrupt Controller (GIC) version 2.
Represents the ARM kernel implementation.
Definition ARMKernel.h:41
ARM Generic Timer.
Definition ARMTimer.h:40
Represents the Sunxi kernel implementation.
Definition SunxiKernel.h:37
ARMGenericInterrupt m_gic
ARM Generic Interrupt Controller.
Definition SunxiKernel.h:59
ARMTimer m_armTimer
ARM generic timer.
Definition SunxiKernel.h:62
static void interrupt(CPUState state)
Interrupt handler routine.
Contains all the CPU registers.
Definition ARMCore.h:244
Per-Core information structure.
Definition CoreInfo.h:61