linux: Move everything to ./subsystem/linux/*

This commit is contained in:
EnderIce2 2024-11-20 03:49:15 +02:00
parent a96086c432
commit 19f2a78d35
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD
11 changed files with 45 additions and 11 deletions

View File

@ -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);

View File

@ -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

View 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"

View File

@ -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;

View 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"

View File

@ -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