Remove <sortix/kernel/platform.h>.

This commit is contained in:
Jonas 'Sortie' Termansen 2013-10-27 02:42:10 +02:00
parent 42d267793b
commit 2302350d78
77 changed files with 314 additions and 306 deletions

View File

@ -29,7 +29,7 @@
#if defined(__is_sortix_kernel)
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/panic.h>
extern "C" void abort(void)

View File

@ -26,8 +26,8 @@
#include <errno.h>
#include <stddef.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/addralloc.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/memorymanagement.h>

View File

@ -28,12 +28,12 @@
#include <sortix/itimerspec.h>
#include <sortix/signal.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/timer.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/timer.h>
namespace Sortix {
namespace Alarm {

View File

@ -22,18 +22,21 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/cpu.h>
#include <sortix/stat.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <sortix/stat.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include "ata.h"
// TODO: Use the PCI to detect ATA devices instead of relying on them being on

View File

@ -28,17 +28,17 @@
#include <stdlib.h>
#include <string.h>
#include <sortix/kernel/platform.h>
#include <sortix/mman.h>
#include <sortix/kernel/addralloc.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/kernel/video.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/pci.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/cpu.h>
#include <sortix/mman.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/kernel/video.h>
#include "x86-family/memorymanagement.h"
#include "lfbtextbuffer.h"

View File

@ -22,8 +22,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/calltrace.h>
#include <sortix/kernel/kernel.h>
namespace Sortix {
namespace Calltrace {

View File

@ -25,9 +25,9 @@
#include <assert.h>
#include <timespec.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/timer.h>

View File

@ -22,20 +22,20 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/thread.h>
#include <errno.h>
#include <sortix/stat.h>
#include <errno.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/thread.h>
#include "com.h"

View File

@ -22,11 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/string.h>
#include <string.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/string.h>
namespace Sortix {
// TODO: These are currently insecure, please check userspace tables before

View File

@ -25,8 +25,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/crc32.h>
#include <sortix/kernel/kernel.h>
namespace Sortix {
namespace CRC32 {

View File

@ -33,10 +33,10 @@
#include <sortix/keycodes.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/debugger.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/keyboard.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/process.h>

View File

@ -22,23 +22,28 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/vnode.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/fsfunc.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/process.h>
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <stdint.h>
#include <string.h>
#include <sortix/dirent.h>
#include <sortix/fcntl.h>
#include <sortix/seek.h>
#include <sortix/stat.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/fsfunc.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/vnode.h>
namespace Sortix {

View File

@ -31,10 +31,10 @@
#include <sortix/display.h>
#include <sortix/syscallnum.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/video.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/video.h>
#include "dispmsg.h"

View File

@ -22,18 +22,20 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/dtable.h>
#include <sortix/kernel/process.h>
#include <sortix/fcntl.h>
#include <assert.h>
#include <errno.h>
#include <limits.h>
#include <string.h>
#include <sortix/fcntl.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/dtable.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
namespace Sortix {
DescriptorTable::DescriptorTable()

View File

@ -33,7 +33,7 @@
#include <sortix/mman.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/segment.h>

View File

@ -24,7 +24,7 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
namespace Sortix
{

View File

@ -33,10 +33,10 @@
#include <sortix/mman.h>
#include <sortix/seek.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/addralloc.h>
#include <sortix/kernel/fcache.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/memorymanagement.h>

View File

@ -24,8 +24,11 @@
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <sortix/clock.h>
#include <sortix/dirent.h>
@ -33,20 +36,16 @@
#include <sortix/seek.h>
#include <sortix/stat.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/fsfunc.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/time.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "kram.h"
namespace Sortix {

View File

@ -41,16 +41,16 @@
#include <fsmarshall-msg.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/vnode.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/mtable.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/vnode.h>
namespace Sortix {

View File

@ -22,16 +22,19 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/inode.h>
#include <sortix/stat.h>
#include <sortix/seek.h>
#include <errno.h>
#include <string.h>
#include <sortix/stat.h>
#include <sortix/seek.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include "util.h"
namespace Sortix {

View File

@ -22,11 +22,18 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/fsfunc.h>
#include <sortix/kernel/string.h>
#include <sys/types.h>
#include <stddef.h>
#include <stdint.h>
#include <sortix/dirent.h>
#include <sortix/stat.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/fsfunc.h>
#include <sortix/kernel/string.h>
#include <string.h>
namespace Sortix {

View File

@ -24,10 +24,10 @@
#include <sortix/syscallnum.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/syscall.h>
#include "identity.h"

View File

@ -1,35 +0,0 @@
/*******************************************************************************
Copyright(C) Jonas 'Sortie' Termansen 2011, 2012.
This file is part of Sortix.
Sortix 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.
Sortix 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
Sortix. If not, see <http://www.gnu.org/licenses/>.
sortix/kernel/platform.h
Defines platform specific stuff.
*******************************************************************************/
// This header is deprecated but was used as a common header to get various
// generic and useful declarations. That purpose is actually fine and useful,
// but the name platform.h isn't fitting for that task since it provides
// generic functionality (though how it is provided depends on the platform).
#ifndef SORTIX_PLATFORM_H
#define SORTIX_PLATFORM_H
#include <sortix/kernel/kernel.h>
#endif

View File

@ -36,16 +36,16 @@
#include <sortix/mman.h>
#include <sortix/stat.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/addralloc.h>
#include <sortix/kernel/vnode.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/crc32.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/fsfunc.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/vnode.h>
#include "initrd.h"

View File

@ -28,12 +28,12 @@
#include <sortix/clock.h>
#include <sortix/stat.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/time.h>
namespace Sortix {

View File

@ -22,8 +22,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/kernel.h>
namespace Sortix {

View File

@ -26,16 +26,16 @@
#include <errno.h>
#include <string.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/calltrace.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/debugger.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/thread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/calltrace.h>
#include <sortix/kernel/debugger.h>
#include "x86-family/idt.h"

View File

@ -22,28 +22,32 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/dtable.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/thread.h>
#include <sortix/kernel/vnode.h>
#include <sortix/seek.h>
#include <sortix/dirent.h>
#include <sortix/fcntl.h>
#include <sortix/stat.h>
#include <sortix/socket.h>
#include <sortix/uio.h>
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <stddef.h>
#include <stdint.h>
#include <sortix/dirent.h>
#include <sortix/fcntl.h>
#include <sortix/seek.h>
#include <sortix/socket.h>
#include <sortix/stat.h>
#include <sortix/uio.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/dtable.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/thread.h>
#include <sortix/kernel/vnode.h>
#include "io.h"
#include "partition.h"

View File

@ -22,9 +22,9 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
namespace Sortix {

View File

@ -22,9 +22,11 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/keyboard.h>
#include <sortix/keycodes.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/keyboard.h>
#include "us.h"
namespace Sortix

View File

@ -22,17 +22,17 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/debugger.h>
#include <sortix/kernel/keyboard.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/thread.h>
#include <sortix/kernel/cpu.h>
#include <assert.h>
#include <string.h>
#include <sortix/keycodes.h>
#include <assert.h>
#include <string.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/debugger.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/keyboard.h>
#include <sortix/kernel/thread.h>
#include "ps2.h"

View File

@ -24,7 +24,7 @@
#include <errno.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/syscall.h>
#include "kernelinfo.h"

View File

@ -24,12 +24,12 @@
#include <sortix/signal.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/worker.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/thread.h>
#include <sortix/kernel/worker.h>
namespace Sortix {

View File

@ -22,16 +22,16 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/thread.h>
#include <string.h>
#include <sortix/vga.h>
#include <string.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/kernel/thread.h>
#include "vga.h"
#include "lfbtextbuffer.h"

View File

@ -22,8 +22,10 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <string.h>
#include <sortix/kernel/kernel.h>
#include "linebuffer.h"
namespace Sortix

View File

@ -25,8 +25,8 @@
#include <stddef.h>
#include <string.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/log.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/syscall.h>
namespace Sortix {

View File

@ -37,10 +37,10 @@
#include <sortix/termios.h>
#include <sortix/termmode.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/keyboard.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/poll.h>

View File

@ -22,13 +22,14 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/mtable.h>
#include <string.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/mtable.h>
#include <sortix/kernel/refcount.h>
namespace Sortix {
MountTable::MountTable()

View File

@ -37,16 +37,16 @@
#include <sortix/socket.h>
#include <sortix/stat.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/mtable.h>
#include <sortix/kernel/pipe.h>
#include <sortix/kernel/poll.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include "fs.h"

View File

@ -24,9 +24,9 @@
#include <string.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/calltrace.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/log.h>
#include <sortix/kernel/panic.h>

View File

@ -28,9 +28,9 @@
#include <sortix/seek.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/refcount.h>
#include "partition.h"

View File

@ -25,9 +25,9 @@
#include <assert.h>
#include <endian.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/pci.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/pci.h>
namespace Sortix {
namespace PCI {

View File

@ -27,33 +27,26 @@
#include <string.h>
#include <sortix/fcntl.h>
#include <sortix/poll.h>
#include <sortix/signal.h>
#include <sortix/stat.h>
#include <sortix/poll.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/vnode.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/dtable.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/pipe.h>
#include <sortix/kernel/poll.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/thread.h>
#include <sortix/signal.h>
#include <sortix/stat.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <sortix/kernel/vnode.h>
#include "pipe.h"

View File

@ -34,14 +34,14 @@
#include <sortix/syscallnum.h>
#include <sortix/timespec.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/poll.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/syscall.h>
#include "poll.h"

View File

@ -38,11 +38,11 @@
#include <sortix/unistd.h>
#include <sortix/wait.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/dtable.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/mtable.h>

View File

@ -22,10 +22,11 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <assert.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <assert.h>
namespace Sortix {

View File

@ -32,15 +32,15 @@
#include <sortix/clock.h>
#include <sortix/timespec.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/time.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/thread.h>
#include <sortix/kernel/time.h>
#include "x86-family/gdt.h"
#include "x86-family/float.h"

View File

@ -22,12 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <string.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/keyboard.h>
#include <sortix/kernel/scheduler.h>
#include <string.h>
#include "vga.h"
#include "uart.h"
#include "serialterminal.h"

View File

@ -22,17 +22,17 @@
*******************************************************************************/
#include <sortix/signal.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/panic.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/thread.h>
#include <assert.h>
#include <string.h>
#include <sortix/signal.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/panic.h>
#include <sortix/kernel/signal.h>
#include <sortix/kernel/thread.h>
namespace Sortix {
// A per-cpu value whether a signal is pending in the running task.

View File

@ -24,10 +24,10 @@
#include <sortix/syscallnum.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/thread.h>
namespace Sortix {

View File

@ -22,11 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <assert.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/textbuffer.h>
#include <assert.h>
namespace Sortix {

View File

@ -22,10 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/vga.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/vga.h>
#include "textterminal.h"
namespace Sortix {

View File

@ -29,8 +29,8 @@
#include <sortix/mman.h>
#include <sortix/signal.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/process.h>

View File

@ -30,14 +30,14 @@
#include <sortix/clock.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/time.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/time.h>
#ifdef PLATFORM_SERIAL
#include "serialterminal.h"

View File

@ -25,10 +25,10 @@
#include <assert.h>
#include <timespec.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/timer.h>
namespace Sortix {

View File

@ -22,8 +22,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/kernel.h>
#include <string.h>
#include "vga.h"

View File

@ -33,14 +33,14 @@
#include <sortix/time.h>
#include <sortix/tmns.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/copy.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/time.h>
#include <sortix/kernel/user-timer.h>
#include <sortix/kernel/process.h>
// TODO: Memset all user timers in process constructor.

View File

@ -22,8 +22,10 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <errno.h>
#include <sortix/kernel/kernel.h>
#include "utf8.h"
namespace Sortix

View File

@ -22,16 +22,16 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/descriptor.h>
#include <sortix/kernel/inode.h>
#include <sortix/kernel/interlock.h>
#include <sortix/kernel/syscall.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/syscall.h>
#include <errno.h>
#include <string.h>

View File

@ -22,11 +22,13 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/vga.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/vga.h>
#include "vga.h"
#include "vgatextbuffer.h"

View File

@ -22,15 +22,16 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/kernel/video.h>
#include <sortix/kernel/string.h>
#include <stdarg.h>
#include <errno.h>
#include <string.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/string.h>
#include <sortix/kernel/textbuffer.h>
#include <sortix/kernel/video.h>
namespace Sortix {
bool ReadParamString(const char* str, ...)

View File

@ -22,7 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <assert.h>
#include <errno.h>
#include <sortix/mount.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/refcount.h>
#include <sortix/kernel/ioctx.h>
#include <sortix/kernel/descriptor.h>
@ -30,9 +35,6 @@
#include <sortix/kernel/vnode.h>
#include <sortix/kernel/mtable.h>
#include <sortix/kernel/process.h>
#include <sortix/mount.h>
#include <assert.h>
#include <errno.h>
namespace Sortix {

View File

@ -22,7 +22,7 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/worker.h>

View File

@ -22,12 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/interrupt.h>
#include <string.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/memorymanagement.h>
#include "multiboot.h"
#include "x86-family/memorymanagement.h"

View File

@ -22,11 +22,14 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/process.h>
#include <sortix/fork.h>
#include <stdint.h>
#include <string.h>
#include <sortix/fork.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
namespace Sortix
{
void Process::ExecuteCPU(int argc, char** argv, int envc, char** envp,

View File

@ -22,7 +22,7 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/thread.h>
namespace Sortix

View File

@ -22,8 +22,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/log.h>
namespace Sortix

View File

@ -30,9 +30,9 @@
#include <sortix/clock.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/time.h>
namespace Sortix {

View File

@ -22,12 +22,12 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/thread.h>
#include <assert.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/thread.h>
#include "float.h"
namespace Sortix {

View File

@ -22,18 +22,18 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/panic.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/syscall.h>
#include <sortix/mman.h>
#include <assert.h>
#include <errno.h>
#include <string.h>
#include <sortix/mman.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/kthread.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/panic.h>
#include <sortix/kernel/syscall.h>
#include "multiboot.h"
#include "memorymanagement.h"
#include "msr.h"

View File

@ -24,7 +24,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include "memorymanagement.h"
namespace Sortix {

View File

@ -28,10 +28,10 @@
#include <sortix/timespec.h>
#include <sortix/kernel/platform.h>
#include <sortix/kernel/clock.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/interrupt.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
#include <sortix/kernel/scheduler.h>
#include <sortix/kernel/time.h>

View File

@ -22,7 +22,7 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
namespace Sortix
{

View File

@ -22,13 +22,16 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <string.h>
#include "multiboot.h"
#include <sortix/kernel/panic.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/memorymanagement.h>
#include <sortix/kernel/panic.h>
#include "x86-family/memorymanagement.h"
#include "multiboot.h"
namespace Sortix
{
namespace Page

View File

@ -22,11 +22,14 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/process.h>
#include <sortix/fork.h>
#include <stdint.h>
#include <string.h>
#include <sortix/fork.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/process.h>
namespace Sortix
{
void Process::ExecuteCPU(int argc, char** argv, int envc, char** envp,

View File

@ -22,7 +22,7 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/thread.h>
namespace Sortix

View File

@ -22,8 +22,8 @@
*******************************************************************************/
#include <sortix/kernel/platform.h>
#include <sortix/kernel/cpu.h>
#include <sortix/kernel/kernel.h>
#include <sortix/kernel/log.h>
namespace Sortix