Reorganize structure
This commit is contained in:
parent
e83d4c8ac9
commit
49ddb47ad4
@ -1,6 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
|
|
||||||
#define __call_assert_fail(...) \
|
#define __call_assert_fail(...) \
|
||||||
kerrorln(__VA_ARGS__); \
|
kerrorln(__VA_ARGS__); \
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "memory/RangeAllocator.h"
|
#include "memory/RangeAllocator.h"
|
||||||
#include "memory/VMM.h"
|
#include "memory/VMM.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
#include "rand/Init.h"
|
#include "rand/Init.h"
|
||||||
#include "rand/Mersenne.h"
|
#include "rand/Mersenne.h"
|
||||||
#include "render/Framebuffer.h"
|
#include "render/Framebuffer.h"
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "interrupts/IRQ.h"
|
#include "interrupts/IRQ.h"
|
||||||
#include "interrupts/Interrupts.h"
|
#include "interrupts/Interrupts.h"
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
#include "std/stdio.h"
|
#include "std/stdio.h"
|
||||||
#include "thread/Scheduler.h"
|
#include "thread/Scheduler.h"
|
||||||
#include "trace/StackTracer.h"
|
#include "trace/StackTracer.h"
|
||||||
|
@ -4,10 +4,10 @@
|
|||||||
#include "io/IO.h"
|
#include "io/IO.h"
|
||||||
#include "io/PIC.h"
|
#include "io/PIC.h"
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "power/reboot.h"
|
#include "misc/reboot.h"
|
||||||
#include "rand/Init.h"
|
#include "rand/Init.h"
|
||||||
#include "scheduling/PIT.h"
|
|
||||||
#include "std/stdio.h"
|
#include "std/stdio.h"
|
||||||
|
#include "thread/PIT.h"
|
||||||
#include "thread/Scheduler.h"
|
#include "thread/Scheduler.h"
|
||||||
|
|
||||||
void IRQ::interrupt_handler(Context* context)
|
void IRQ::interrupt_handler(Context* context)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "io/Serial.h"
|
#include "io/Serial.h"
|
||||||
#include "scheduling/PIT.h"
|
|
||||||
#include "std/stdio.h"
|
#include "std/stdio.h"
|
||||||
|
#include "thread/PIT.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
static int level_mask = 15;
|
static int level_mask = 15;
|
||||||
|
@ -17,15 +17,14 @@
|
|||||||
#include "memory/Memory.h"
|
#include "memory/Memory.h"
|
||||||
#include "memory/MemoryMap.h"
|
#include "memory/MemoryMap.h"
|
||||||
#include "memory/RangeAllocator.h"
|
#include "memory/RangeAllocator.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/reboot.h"
|
||||||
#include "power/reboot.h"
|
|
||||||
#include "rand/Mersenne.h"
|
#include "rand/Mersenne.h"
|
||||||
#include "render/Framebuffer.h"
|
#include "render/Framebuffer.h"
|
||||||
#include "render/TextRenderer.h"
|
#include "render/TextRenderer.h"
|
||||||
#include "scheduling/PIT.h"
|
|
||||||
#include "std/stdio.h"
|
#include "std/stdio.h"
|
||||||
#include "std/stdlib.h"
|
#include "std/stdlib.h"
|
||||||
#include "std/string.h"
|
#include "std/string.h"
|
||||||
|
#include "thread/PIT.h"
|
||||||
#include "thread/Scheduler.h"
|
#include "thread/Scheduler.h"
|
||||||
|
|
||||||
extern "C" void _start()
|
extern "C" void _start()
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
|
|
||||||
[[noreturn]] void hang()
|
[[noreturn]] void hang()
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#define MODULE "power"
|
#define MODULE "power"
|
||||||
|
|
||||||
#include "power/reboot.h"
|
#include "misc/reboot.h"
|
||||||
#include "acpi/FADT.h"
|
#include "acpi/FADT.h"
|
||||||
#include "acpi/RSDT.h"
|
#include "acpi/RSDT.h"
|
||||||
#include "assert.h"
|
#include "assert.h"
|
||||||
@ -8,7 +8,7 @@
|
|||||||
#include "interrupts/Interrupts.h"
|
#include "interrupts/Interrupts.h"
|
||||||
#include "io/IO.h"
|
#include "io/IO.h"
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
#include "std/string.h"
|
#include "std/string.h"
|
||||||
|
|
||||||
static void try_acpi_reboot()
|
static void try_acpi_reboot()
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
#define MODULE "power"
|
#define MODULE "power"
|
||||||
|
|
||||||
#include "power/shutdown.h"
|
#include "misc/shutdown.h"
|
||||||
#include "interrupts/Interrupts.h"
|
#include "interrupts/Interrupts.h"
|
||||||
#include "io/IO.h"
|
#include "io/IO.h"
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
|
|
||||||
[[noreturn]] void shutdown()
|
[[noreturn]] void shutdown()
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
#include "panic/hang.h"
|
#include "std/stdlib.h"
|
||||||
#include "thread/Scheduler.h"
|
#include "thread/Scheduler.h"
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
static void strrev(char* arr, int start, int end)
|
static void strrev(char* arr, int start, int end)
|
||||||
{
|
{
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#define MODULE "pit"
|
#define MODULE "pit"
|
||||||
|
|
||||||
#include "scheduling/PIT.h"
|
#include "thread/PIT.h"
|
||||||
#include "io/IO.h"
|
#include "io/IO.h"
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
|
|
@ -5,9 +5,9 @@
|
|||||||
#include "interrupts/Interrupts.h"
|
#include "interrupts/Interrupts.h"
|
||||||
#include "log/Log.h"
|
#include "log/Log.h"
|
||||||
#include "memory/KernelMemoryManager.h"
|
#include "memory/KernelMemoryManager.h"
|
||||||
#include "panic/hang.h"
|
#include "misc/hang.h"
|
||||||
#include "scheduling/PIT.h"
|
|
||||||
#include "std/string.h"
|
#include "std/string.h"
|
||||||
|
#include "thread/PIT.h"
|
||||||
#include "thread/Task.h"
|
#include "thread/Task.h"
|
||||||
|
|
||||||
static Task tasks[32];
|
static Task tasks[32];
|
||||||
|
Loading…
Reference in New Issue
Block a user