Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
linux: Move everything to ./subsystem/linux/*
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderIce2 committed Nov 20, 2024
1 parent a96086c commit 19f2a78
Show file tree
Hide file tree
Showing 11 changed files with 45 additions and 11 deletions.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,6 +55,7 @@

#define linux_SIGRTMIN 32
#define linux_SIGRTMAX linux_NSIG

struct k_sigaction
{
void (*handler)(int);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions subsystem/linux/rootfs.cpp
Original file line number Diff line number Diff line change
@@ -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"
13 changes: 7 additions & 6 deletions syscalls/linux.cpp → subsystem/linux/syscall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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;
Expand Down
18 changes: 18 additions & 0 deletions subsystem/windows/rootfs.cpp
Original file line number Diff line number Diff line change
@@ -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"
Empty file removed syscalls/linux/.gitkeep
Empty file.
Empty file removed syscalls/native/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion tasking/signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 19f2a78

Please sign in to comment.