Move shared headers out to include/
This commit is contained in:
2
ce/ce.c
2
ce/ce.c
@@ -1,6 +1,6 @@
|
|||||||
|
#include <fs_desc_buffer.h>
|
||||||
#include <liballoc.h>
|
#include <liballoc.h>
|
||||||
#include <list.h>
|
#include <list.h>
|
||||||
#include <m/fs_desc_buffer.h>
|
|
||||||
#include <minmax.h>
|
#include <minmax.h>
|
||||||
#include <printf.h>
|
#include <printf.h>
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
|||||||
@@ -13,11 +13,11 @@
|
|||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <limine/limine.h>
|
#include <limine/limine.h>
|
||||||
#include <limine/requests.h>
|
#include <limine/requests.h>
|
||||||
#include <m/ramdisk_device.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
#include <mm/pmm.h>
|
#include <mm/pmm.h>
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
|
#include <ramdisk_device.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/mm.h>
|
#include <sys/mm.h>
|
||||||
#include <sys/smp.h>
|
#include <sys/smp.h>
|
||||||
|
|||||||
@@ -7,13 +7,13 @@
|
|||||||
#include <irq/irq.h>
|
#include <irq/irq.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <m/syscall_defs.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/smp.h>
|
#include <sys/smp.h>
|
||||||
#include <sys/spin.h>
|
#include <sys/spin.h>
|
||||||
#include <syscall/syscall.h>
|
#include <syscall/syscall.h>
|
||||||
|
#include <syscall_defs.h>
|
||||||
|
|
||||||
/* 8259 PIC defs. */
|
/* 8259 PIC defs. */
|
||||||
#define PIC1 0x20
|
#define PIC1 0x20
|
||||||
|
|||||||
@@ -5,14 +5,14 @@
|
|||||||
#include <amd64/msr.h>
|
#include <amd64/msr.h>
|
||||||
#include <libk/list.h>
|
#include <libk/list.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <m/status.h>
|
|
||||||
#include <m/syscall_defs.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/smp.h>
|
#include <sys/smp.h>
|
||||||
#include <syscall/syscall.h>
|
#include <syscall/syscall.h>
|
||||||
|
#include <syscall_defs.h>
|
||||||
|
|
||||||
extern void syscall_entry (void);
|
extern void syscall_entry (void);
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,18 @@
|
|||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/ramdrv.h>
|
#include <device/ramdrv.h>
|
||||||
#include <device/terminal.h>
|
#include <device/terminal.h>
|
||||||
|
#include <kb_device.h>
|
||||||
#include <libk/fieldlengthof.h>
|
#include <libk/fieldlengthof.h>
|
||||||
#include <libk/rbtree.h>
|
#include <libk/rbtree.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <limine/requests.h>
|
#include <limine/requests.h>
|
||||||
#include <m/kb_device.h>
|
|
||||||
#include <m/ramdisk_device.h>
|
|
||||||
#include <m/terminal_device.h>
|
|
||||||
#include <m/xdrv_device.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
|
#include <ramdisk_device.h>
|
||||||
#include <sync/spin_lock.h>
|
#include <sync/spin_lock.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
|
#include <terminal_device.h>
|
||||||
|
#include <xdrv_device.h>
|
||||||
|
|
||||||
#if defined(__x86_64__)
|
#if defined(__x86_64__)
|
||||||
#include <device/ps2_kb.h>
|
#include <device/ps2_kb.h>
|
||||||
|
|||||||
@@ -4,14 +4,14 @@
|
|||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
#include <device/ps2_kb.h>
|
#include <device/ps2_kb.h>
|
||||||
#include <irq/irq.h>
|
#include <irq/irq.h>
|
||||||
|
#include <kb_device.h>
|
||||||
#include <libk/ringbuffer.h>
|
#include <libk/ringbuffer.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <m/kb_device.h>
|
|
||||||
#include <m/status.h>
|
|
||||||
#include <proc/capability.h>
|
#include <proc/capability.h>
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
#include <proc/suspension_q.h>
|
#include <proc/suspension_q.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sync/spin_lock.h>
|
#include <sync/spin_lock.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/smp.h>
|
#include <sys/smp.h>
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
#include <device/ramdrv.h>
|
#include <device/ramdrv.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <m/status.h>
|
|
||||||
#include <m/xdrv_device.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
|
#include <status.h>
|
||||||
|
#include <xdrv_device.h>
|
||||||
|
|
||||||
bool ramdrv_init (struct device* device, void* arg) {
|
bool ramdrv_init (struct device* device, void* arg) {
|
||||||
struct ramdrv_init* init = arg;
|
struct ramdrv_init* init = arg;
|
||||||
|
|||||||
@@ -4,10 +4,10 @@
|
|||||||
#include <device/terminal.h>
|
#include <device/terminal.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <limine/requests.h>
|
#include <limine/requests.h>
|
||||||
#include <m/status.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
#include <proc/capability.h>
|
#include <proc/capability.h>
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
|
|
||||||
struct flanterm_context* ft_ctx;
|
struct flanterm_context* ft_ctx;
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
#include <fs/path.h>
|
#include <fs/path.h>
|
||||||
#include <fs/tarfs.h>
|
#include <fs/tarfs.h>
|
||||||
#include <fs/vfs.h>
|
#include <fs/vfs.h>
|
||||||
|
#include <fs_desc_buffer.h>
|
||||||
#include <libk/align.h>
|
#include <libk/align.h>
|
||||||
#include <libk/minmax.h>
|
#include <libk/minmax.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <limine/requests.h>
|
#include <limine/requests.h>
|
||||||
#include <m/fs_desc_buffer.h>
|
|
||||||
#include <m/path.h>
|
|
||||||
#include <m/status.h>
|
|
||||||
#include <m/xdrv_device.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
|
#include <path.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
|
#include <xdrv_device.h>
|
||||||
|
|
||||||
static struct tar_file* tar_get_file (struct tarfs* tarfs, const char* filename) {
|
static struct tar_file* tar_get_file (struct tarfs* tarfs, const char* filename) {
|
||||||
for (size_t i = 0; i < TARFS_FILES_MAX; i++) {
|
for (size_t i = 0; i < TARFS_FILES_MAX; i++) {
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
#define _KERNEL_FS_TARFS_H
|
#define _KERNEL_FS_TARFS_H
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
#include <fs_desc_buffer.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <m/fs_desc_buffer.h>
|
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,10 @@
|
|||||||
#include <libk/lengthof.h>
|
#include <libk/lengthof.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <m/status.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/procgroup.h>
|
#include <proc/procgroup.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sync/spin_lock.h>
|
#include <sync/spin_lock.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
|
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
#define _KERNEL_FS_VFS_H
|
#define _KERNEL_FS_VFS_H
|
||||||
|
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
#include <fs_desc_buffer.h>
|
||||||
#include <libk/hash.h>
|
#include <libk/hash.h>
|
||||||
#include <libk/list.h>
|
#include <libk/list.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <m/fs_desc_buffer.h>
|
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/procgroup.h>
|
#include <proc/procgroup.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#include <aux/compiler.h>
|
#include <aux/compiler.h>
|
||||||
#include <aux/elf.h>
|
#include <aux/elf.h>
|
||||||
#include <fs/vfs.h>
|
#include <fs/vfs.h>
|
||||||
|
#include <fs_desc_buffer.h>
|
||||||
#include <irq/irq.h>
|
#include <irq/irq.h>
|
||||||
#include <libk/align.h>
|
#include <libk/align.h>
|
||||||
#include <libk/list.h>
|
#include <libk/list.h>
|
||||||
@@ -8,8 +9,6 @@
|
|||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <libk/string.h>
|
#include <libk/string.h>
|
||||||
#include <limine/requests.h>
|
#include <limine/requests.h>
|
||||||
#include <m/fs_desc_buffer.h>
|
|
||||||
#include <m/status.h>
|
|
||||||
#include <mm/liballoc.h>
|
#include <mm/liballoc.h>
|
||||||
#include <mm/pmm.h>
|
#include <mm/pmm.h>
|
||||||
#include <proc/capability.h>
|
#include <proc/capability.h>
|
||||||
@@ -17,6 +16,7 @@
|
|||||||
#include <proc/procgroup.h>
|
#include <proc/procgroup.h>
|
||||||
#include <proc/reschedule.h>
|
#include <proc/reschedule.h>
|
||||||
#include <proc/resource.h>
|
#include <proc/resource.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sync/spin_lock.h>
|
#include <sync/spin_lock.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/mm.h>
|
#include <sys/mm.h>
|
||||||
|
|||||||
@@ -7,19 +7,19 @@
|
|||||||
#include <libk/fieldsizeof.h>
|
#include <libk/fieldsizeof.h>
|
||||||
#include <libk/std.h>
|
#include <libk/std.h>
|
||||||
#include <limine/requests.h>
|
#include <limine/requests.h>
|
||||||
#include <m/status.h>
|
|
||||||
#include <m/syscall_defs.h>
|
|
||||||
#include <mm/pmm.h>
|
#include <mm/pmm.h>
|
||||||
#include <proc/mail.h>
|
#include <proc/mail.h>
|
||||||
#include <proc/mutex.h>
|
#include <proc/mutex.h>
|
||||||
#include <proc/proc.h>
|
#include <proc/proc.h>
|
||||||
#include <proc/procgroup.h>
|
#include <proc/procgroup.h>
|
||||||
#include <proc/resource.h>
|
#include <proc/resource.h>
|
||||||
|
#include <status.h>
|
||||||
#include <sync/spin_lock.h>
|
#include <sync/spin_lock.h>
|
||||||
#include <sys/debug.h>
|
#include <sys/debug.h>
|
||||||
#include <sys/mm.h>
|
#include <sys/mm.h>
|
||||||
#include <sys/proc.h>
|
#include <sys/proc.h>
|
||||||
#include <syscall/syscall.h>
|
#include <syscall/syscall.h>
|
||||||
|
#include <syscall_defs.h>
|
||||||
|
|
||||||
#define DEFINE_SYSCALL(name) \
|
#define DEFINE_SYSCALL(name) \
|
||||||
uintptr_t name (struct proc* UNUSED proc, void* UNUSED regs, struct reschedule_ctx* UNUSED rctx, \
|
uintptr_t name (struct proc* UNUSED proc, void* UNUSED regs, struct reschedule_ctx* UNUSED rctx, \
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <kb.h>
|
#include <kb.h>
|
||||||
#include <m/kb_device.h>
|
#include <kb_device.h>
|
||||||
#include <m/status.h>
|
#include <status.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <system.h>
|
#include <system.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _LIBKB_KB_H
|
#ifndef _LIBKB_KB_H
|
||||||
#define _LIBKB_KB_H
|
#define _LIBKB_KB_H
|
||||||
|
|
||||||
#include <m/kb_device.h>
|
#include <kb_device.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/* \brief Read key from keyboard
|
/* \brief Read key from keyboard
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include <liballoc.h>
|
#include <liballoc.h>
|
||||||
#include <m/status.h>
|
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
#include <status.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <system.h>
|
#include <system.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _LIBSYSTEM_STR_STATUS_H
|
#ifndef _LIBSYSTEM_STR_STATUS_H
|
||||||
#define _LIBSYSTEM_STR_STATUS_H
|
#define _LIBSYSTEM_STR_STATUS_H
|
||||||
|
|
||||||
#include <m/status.h>
|
#include <status.h>
|
||||||
|
|
||||||
static const char* str_status[] = {
|
static const char* str_status[] = {
|
||||||
[ST_OK] = "ok",
|
[ST_OK] = "ok",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _LIBMSL_M_SYSCALL_H
|
#ifndef _LIBMSL_M_SYSCALL_H
|
||||||
#define _LIBMSL_M_SYSCALL_H
|
#define _LIBMSL_M_SYSCALL_H
|
||||||
|
|
||||||
#include <m/syscall_defs.h>
|
#include <syscall_defs.h>
|
||||||
|
|
||||||
#if defined(__x86_64__)
|
#if defined(__x86_64__)
|
||||||
#include <amd64/syscall.h>
|
#include <amd64/syscall.h>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ifndef _LIBMSL_M_SYSTEM_H
|
#ifndef _LIBMSL_M_SYSTEM_H
|
||||||
#define _LIBMSL_M_SYSTEM_H
|
#define _LIBMSL_M_SYSTEM_H
|
||||||
|
|
||||||
#include <m/fs_desc_buffer.h>
|
#include <fs_desc_buffer.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
#ifndef _LIBTERMINAL_TERMINAL_TERMINAL_H
|
#ifndef _LIBTERMINAL_TERMINAL_TERMINAL_H
|
||||||
#define _LIBTERMINAL_TERMINAL_TERMINAL_H
|
#define _LIBTERMINAL_TERMINAL_TERMINAL_H
|
||||||
|
|
||||||
#include <m/terminal_device.h>
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <terminal_device.h>
|
||||||
|
|
||||||
/* Print a string onto a graphical terminal. Prints len chars */
|
/* Print a string onto a graphical terminal. Prints len chars */
|
||||||
void terminal_print (const char* string, size_t len);
|
void terminal_print (const char* string, size_t len);
|
||||||
|
|||||||
Reference in New Issue
Block a user