mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-07-10 23:09:18 +00:00
Restructured and rewritten entire codebase
This commit is contained in:
46
kernel.h
46
kernel.h
@ -1,18 +1,18 @@
|
||||
/*
|
||||
This file is part of Fennix Kernel.
|
||||
This file is part of Fennix Kernel.
|
||||
|
||||
Fennix Kernel is free software: you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
Fennix Kernel is free software: you can redistribute it and/or
|
||||
modify it under the terms of the GNU General Public License as
|
||||
published by the Free Software Foundation, either version 3 of
|
||||
the License, or (at your option) any later version.
|
||||
|
||||
Fennix Kernel is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
Fennix Kernel is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __FENNIX_KERNEL_KERNEL_H__
|
||||
@ -27,7 +27,7 @@
|
||||
#include <symbols.hpp>
|
||||
#include <kconfig.hpp>
|
||||
#include <net/nc.hpp>
|
||||
#include <driver.hpp>
|
||||
#include <module.hpp>
|
||||
#include <power.hpp>
|
||||
#include <task.hpp>
|
||||
#include <time.hpp>
|
||||
@ -36,24 +36,25 @@
|
||||
#endif
|
||||
|
||||
extern struct BootInfo bInfo;
|
||||
extern struct KernelConfig Config;
|
||||
extern bool DebuggerIsAttached;
|
||||
#ifdef __cplusplus
|
||||
|
||||
extern Video::Display *Display;
|
||||
extern SymbolResolver::Symbols *KernelSymbolTable;
|
||||
extern Power::Power *PowerManager;
|
||||
extern PCI::PCI *PCIManager;
|
||||
extern KernelConfig Config;
|
||||
extern Tasking::Task *TaskManager;
|
||||
extern Time::time *TimeManager;
|
||||
extern VirtualFileSystem::Virtual *vfs;
|
||||
extern Driver::Driver *DriverManager;
|
||||
extern PCI::PCI *PCIManager;
|
||||
extern vfs::Virtual *fs;
|
||||
extern vfs::Node *DevFS;
|
||||
extern vfs::Node *MntFS;
|
||||
extern vfs::Node *ProcFS;
|
||||
extern vfs::Node *VarLogFS;
|
||||
extern Tasking::Task *TaskManager;
|
||||
|
||||
extern Disk::Manager *DiskManager;
|
||||
extern Module::Module *ModuleManager;
|
||||
extern NetworkInterfaceManager::NetworkInterface *NIManager;
|
||||
extern VirtualFileSystem::Node *DevFS;
|
||||
extern VirtualFileSystem::Node *MntFS;
|
||||
extern VirtualFileSystem::Node *ProcFS;
|
||||
extern VirtualFileSystem::Node *VarLogFS;
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
@ -63,6 +64,9 @@ EXTERNC void Entry(struct BootInfo *Info);
|
||||
EXTERNC void BeforeShutdown(bool Reboot);
|
||||
EXTERNC void TaskingPanic();
|
||||
|
||||
EXTERNC void BootLogoAnimationThread();
|
||||
EXTERNC void ExitLogoAnimationThread();
|
||||
|
||||
EXTERNC void KernelMainThread();
|
||||
EXTERNC void KernelShutdownThread(bool Reboot);
|
||||
EXTERNC void KST_Reboot();
|
||||
|
Reference in New Issue
Block a user