mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-25 14:04:36 +00:00
linux: Move everything to ./subsystem/linux/*
This commit is contained in:
parent
a96086c432
commit
19f2a78d35
@ -18,8 +18,6 @@
|
||||
#ifndef __FENNIX_KERNEL_LINUX_SIGNALS_H__
|
||||
#define __FENNIX_KERNEL_LINUX_SIGNALS_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#define linux_NSIG 64
|
||||
|
||||
#define linux_SIGHUP 1
|
||||
@ -57,6 +55,7 @@
|
||||
|
||||
#define linux_SIGRTMIN 32
|
||||
#define linux_SIGRTMAX linux_NSIG
|
||||
|
||||
struct k_sigaction
|
||||
{
|
||||
void (*handler)(int);
|
@ -18,8 +18,6 @@
|
||||
#ifndef __FENNIX_KERNEL_LINUX_SYSCALLS_x64_H__
|
||||
#define __FENNIX_KERNEL_LINUX_SYSCALLS_x64_H__
|
||||
|
||||
#include <types.h>
|
||||
|
||||
#define __NR_amd64_read 0
|
||||
#define __NR_amd64_write 1
|
||||
#define __NR_amd64_open 2
|
18
subsystem/linux/rootfs.cpp
Normal file
18
subsystem/linux/rootfs.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
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 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/>.
|
||||
*/
|
||||
|
||||
#include "../../kernel.h"
|
@ -15,11 +15,6 @@
|
||||
along with Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <syscall/linux/syscalls_amd64.hpp>
|
||||
#include <syscall/linux/syscalls_i386.hpp>
|
||||
#include <syscall/linux/signals.hpp>
|
||||
#include <syscall/linux/defs.hpp>
|
||||
#include <syscall/linux/errno.h>
|
||||
#include <syscalls.hpp>
|
||||
|
||||
#include <static_vector>
|
||||
@ -38,7 +33,13 @@
|
||||
#define INI_IMPLEMENTATION
|
||||
#include <ini.h>
|
||||
|
||||
#include "../kernel.h"
|
||||
#include "include/syscalls_amd64.hpp"
|
||||
#include "include/syscalls_i386.hpp"
|
||||
#include "include/signals.hpp"
|
||||
#include "include/defs.hpp"
|
||||
#include "include/errno.h"
|
||||
|
||||
#include "../../kernel.h"
|
||||
|
||||
using Tasking::PCB;
|
||||
using Tasking::TCB;
|
18
subsystem/windows/rootfs.cpp
Normal file
18
subsystem/windows/rootfs.cpp
Normal file
@ -0,0 +1,18 @@
|
||||
/*
|
||||
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 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/>.
|
||||
*/
|
||||
|
||||
#include "../../kernel.h"
|
@ -193,7 +193,7 @@ SignalDispositions GetDefaultSignalDisposition(Signals sig)
|
||||
return SIG_TERM;
|
||||
}
|
||||
|
||||
/* syscalls/linux.cpp */
|
||||
/* subsystem/linux/syscall.cpp */
|
||||
extern int ConvertSignalToLinux(Signals sig);
|
||||
|
||||
namespace Tasking
|
||||
|
Loading…
x
Reference in New Issue
Block a user