FreeNOS
RaspberryKernel.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2025 Ivan Tan
3 * Copyright (C) 2019 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 __ARM_KERNEL_RASPBERRYKERNEL_H
20#define __ARM_KERNEL_RASPBERRYKERNEL_H
21
22#include <FreeNOS/arm64/ARM64Kernel.h>
25#include <arm64/ARM64Timer.h>
26
38class RaspberryKernel : public ARM64Kernel
39{
40 public:
41
48
49 private:
50
56 static void interrupt(CPUState state);
57
58 private:
59
62
67
70};
71
77#endif /* __ARM_KERNEL_RASPBERRYKERNEL_H */
Represents the ARM64 kernel implementation.
Definition ARM64Kernel.h:39
ARM64 Generic Timer.
Definition ARM64Timer.h:41
Broadcom 2836 device specific I/O configuration.
Raspberry Pi Interrupt Controller implementation.
Represents the Raspberry Pi kernel implementation.
Broadcom2836 m_bcm
Broadcom specific registers.
u8 m_timerIrq
Interrupt number for the timer.
static void interrupt(CPUState state)
Interrupt handler routine.
BroadcomInterrupt m_bcmIntr
Broadcom specific interrupt controller.
ARM64Timer m_armTimer
ARM generic timer.
RaspberryKernel(CoreInfo *info)
Constructor function.
unsigned char u8
Unsigned 8-bit number.
Definition Types.h:59
Contains all the CPU registers.
Definition ARMCore.h:244
Per-Core information structure.
Definition CoreInfo.h:61