Final polishing to debugging system.
This commit is contained in:
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file exception.c
|
||||
/// @brief Functions which manage the Interrupt Service Routines (ISRs).
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[EXEPT ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "system/panic.h"
|
||||
#include "descriptor_tables/isr.h"
|
||||
#include "descriptor_tables/idt.h"
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file gdt.c
|
||||
/// @brief Functions which manage the Global Descriptor Table (GDT).
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[GDT ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "io/debug.h"
|
||||
#include "descriptor_tables/gdt.h"
|
||||
#include "descriptor_tables/tss.h"
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file idt.c
|
||||
/// @brief Functions which manage the Interrupt Descriptor Table (IDT).
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[IDT ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "descriptor_tables/idt.h"
|
||||
#include "descriptor_tables/gdt.h"
|
||||
#include "descriptor_tables/isr.h"
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file interrupt.c
|
||||
/// @brief Functions which manage the Interrupt Service Routines (ISRs).
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[IRQ ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "descriptor_tables/isr.h"
|
||||
|
||||
#include "process/scheduler.h"
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file tss.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[TSS ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "descriptor_tables/tss.h"
|
||||
|
||||
#include "string.h"
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file fpu.c
|
||||
/// @brief Floating Point Unit (FPU).
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[FPU ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "devices/fpu.h"
|
||||
#include "descriptor_tables/isr.h"
|
||||
#include "io/debug.h"
|
||||
|
||||
@@ -1,10 +1,16 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file pci.c
|
||||
/// @brief Routines for PCI initialization.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
///! @cond Doxygen_Suppress
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[PCI ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "devices/pci.h"
|
||||
#include "io/debug.h"
|
||||
#include "string.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file ata.c
|
||||
/// @brief Advanced Technology Attachment (ATA) and Advanced Technology Attachment Packet Interface (ATAPI) drivers.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -6,8 +5,6 @@
|
||||
/// @addtogroup ata
|
||||
/// @{
|
||||
|
||||
#include "drivers/ata.h"
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
@@ -15,6 +12,8 @@
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "drivers/ata.h"
|
||||
|
||||
#include "descriptor_tables/isr.h"
|
||||
#include "hardware/pic8259.h"
|
||||
#include "klib/spinlock.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file fdc.c
|
||||
/// @brief Floppy driver controller handling.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -6,6 +5,13 @@
|
||||
/// @addtogroup fdc
|
||||
/// @{
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[FDC ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "drivers/fdc.h"
|
||||
#include "io/video.h"
|
||||
#include "io/port_io.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file keyboard.c
|
||||
/// @brief Keyboard handling.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -6,6 +5,13 @@
|
||||
/// @addtogroup keyboard
|
||||
/// @{
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[KEYBRD]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "drivers/keyboard/keyboard.h"
|
||||
|
||||
#include "io/port_io.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file keymap.c
|
||||
/// @brief Keymap for keyboard.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file mouse.c
|
||||
/// @brief Driver for *PS2* Mouses.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -6,6 +5,13 @@
|
||||
/// @addtogroup mouse
|
||||
/// @{
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[MOUSE ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "drivers/mouse.h"
|
||||
#include "descriptor_tables/isr.h"
|
||||
#include "hardware/pic8259.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file rtc.c
|
||||
/// @brief Real Time Clock (RTC) driver.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -6,6 +5,13 @@
|
||||
/// @addtogroup rtc
|
||||
/// @{
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[RTC ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "drivers/rtc.h"
|
||||
|
||||
#include "hardware/pic8259.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file elf.c
|
||||
/// @brief Function for multiboot support.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,8 +1,5 @@
|
||||
/// @file ext2.c
|
||||
/// @author Enrico Fraccaroli (enry.frak@gmail.com)
|
||||
/// @brief EXT2 driver.
|
||||
/// @version 0.1
|
||||
/// @date 2021-12-13
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
@@ -13,7 +10,7 @@
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[EXT2 ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_DEBUG
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "process/scheduler.h"
|
||||
#include "process/process.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file initrd.c
|
||||
/// @brief Headers of functions for initrd filesystem.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file ioctl.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file namei.c
|
||||
/// @brief Implementation of functions fcntl() and open().
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file open.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file procfs.c
|
||||
/// @brief Proc file system implementation.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file read_write.c
|
||||
/// @brief Read and write functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file readdir.c
|
||||
/// @brief Function for accessing directory entries.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file stat.c
|
||||
/// @brief Stat functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
+1
-2
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file vfs.c
|
||||
/// @brief Headers for Virtual File System (VFS).
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -11,7 +10,7 @@
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[VFS ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_DEBUG
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "process/scheduler.h"
|
||||
#include "klib/spinlock.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file cpuid.c
|
||||
/// @brief CPUID-based function to detect CPU type.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,67 +1,56 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file pic8259.c
|
||||
/// @brief pic8259 definitions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[PIC ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "hardware/pic8259.h"
|
||||
#include "io/port_io.h"
|
||||
#include "stddef.h"
|
||||
|
||||
/// End-of-interrupt command code.
|
||||
#define EOI 0x20
|
||||
|
||||
/// IO base address for master PIC.
|
||||
#define MASTER_PORT_COMMAND 0x20
|
||||
|
||||
/// I/O address for data to master.
|
||||
#define MASTER_PORT_DATA (MASTER_PORT_COMMAND + 1)
|
||||
|
||||
/// IO base address for slave PIC.
|
||||
#define SLAVE_PORT_COMMAND 0xA0
|
||||
|
||||
/// I/O address for data to slave.
|
||||
#define SLAVE_PORT_DATA (SLAVE_PORT_COMMAND + 1)
|
||||
|
||||
/// ICW4 (not) needed.
|
||||
#define ICW1_ICW4 0x01
|
||||
|
||||
/// Single (cascade) mode.
|
||||
#define ICW1_SINGLE 0x02
|
||||
|
||||
/// Call address interval 4 (8).
|
||||
#define ICW1_INTERVAL4 0x04
|
||||
|
||||
/// Level triggered (edge) mode.
|
||||
#define ICW1_LEVEL 0x08
|
||||
|
||||
/// Initialization - required.
|
||||
#define ICW1_INIT 0x10
|
||||
|
||||
/// 8086/88 (MCS-80/85) mode
|
||||
#define ICW4_8086 0x01
|
||||
|
||||
/// Auto (normal) EOI.
|
||||
#define ICW4_AUTO 0x02
|
||||
|
||||
/// Buffered mode/slave.
|
||||
#define ICW4_BUF_SLAVE 0x08
|
||||
|
||||
/// Buffered mode/master.
|
||||
#define ICW4_BUF_MASTER 0x0C
|
||||
|
||||
/// Special fully nested (not).
|
||||
#define ICW4_SFNM 0x10
|
||||
|
||||
/// OCW3 irq ready next CMD read.
|
||||
#define PIC_READ_IRR 0x0A
|
||||
|
||||
/// OCW3 irq service next CMD read.
|
||||
#define PIC_READ_ISR 0x0B
|
||||
|
||||
/// The current mask of the master.
|
||||
static byte_t master_cur_mask;
|
||||
|
||||
/// The current mask of the slave.
|
||||
static byte_t slave_cur_mask;
|
||||
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file timer.c
|
||||
/// @brief Timer implementation.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[TIMER ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "hardware/timer.h"
|
||||
|
||||
#include "klib/irqflags.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file debug.c
|
||||
/// @brief Debugging primitives.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file mm_io.c
|
||||
/// @brief Memory Mapped IO functions implementation.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file port_io.c
|
||||
/// @brief Byte I/O on ports prototypes.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//
|
||||
// Created by andrea on 02/05/20.
|
||||
//
|
||||
/// @file proc_running.c
|
||||
/// @brief Implementaiton of procr filesystem.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
#include "fs/procfs.h"
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file proc_system.c
|
||||
/// @brief Contains callbacks for procfs system files.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
//
|
||||
// Created by andrea on 02/05/20.
|
||||
//
|
||||
/// @file proc_video.c
|
||||
/// @brief Contains callbacks for procv system files.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
#include "bits/termios-struct.h"
|
||||
#include "drivers/keyboard/keyboard.h"
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/// @file stdio.c
|
||||
/// @brief Standard I/0 functions.
|
||||
/// @date Apr 2019
|
||||
/// @file stdio.c
|
||||
/// @brief Standard IO functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
#include "system/syscall.h"
|
||||
#include "sys/errno.h"
|
||||
|
||||
@@ -1,3 +1,15 @@
|
||||
/// @file vga.c
|
||||
/// @brief Implementation of Video Graphics Array (VGA) drivers.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[VGA ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "io/vga/vga.h"
|
||||
|
||||
#include "io/vga/vga_palette.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file video.c
|
||||
/// @brief Video functions and costants.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file msg.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file sem.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file shm.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
+7
-2
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file kernel.c
|
||||
/// @brief Kernel main function.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[KERNEL]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "io/proc_modules.h"
|
||||
#include "mem/vmem_map.h"
|
||||
#include "fs/procfs.h"
|
||||
@@ -125,7 +131,6 @@ int kmain(boot_info_t *boot_informations)
|
||||
return 1;
|
||||
}
|
||||
print_ok();
|
||||
pr_debug("End of modules: 0x%09p\n", get_address_after_modules());
|
||||
|
||||
//==========================================================================
|
||||
pr_notice("Initialize physical memory manager...\n");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file sys.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file assert.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file ctype.c
|
||||
/// @brief Functions related to character handling.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file fcvt.c
|
||||
/// @brief Define the functions required to turn double values into a string.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file hashmap.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file libgen.c
|
||||
/// @brief String routines.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file list.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file math.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file mutex.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file ndtree.c
|
||||
/// @brief Red/Black tree.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file rbtree.c
|
||||
/// @brief Red/Black tree.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file spinlock.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file strerror.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file string.c
|
||||
/// @brief String routines.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file time.c
|
||||
/// @brief Clock functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file vscanf.c
|
||||
/// @brief Reading formatting routines.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file vsprintf.c
|
||||
/// @brief Print formatting routines.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file buddysystem.c
|
||||
/// @brief Buddy System.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file kheap.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file paging.c
|
||||
/// @brief Implementation of a memory paging management.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file mouse.h
|
||||
/// @brief Driver for *PS2* Mouses.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file vmem_map.c
|
||||
/// @brief Virtual memory mapping routines.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file zone_allocator.c
|
||||
/// @brief Implementation of the Zone Allocator
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file multiboot.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file process.c
|
||||
/// @brief Process data structures and functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
@@ -9,7 +8,7 @@
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[PROC ]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_DEBUG
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "process/process.h"
|
||||
#include "process/scheduler.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file scheduler.c
|
||||
/// @brief Scheduler structures and functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file scheduler_algorithm.c
|
||||
/// @brief Round Robin algorithm.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[SCHALG]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "hardware/timer.h"
|
||||
#include "process/prio.h"
|
||||
#include "io/debug.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file wait.c
|
||||
/// @brief wait functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file module.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[MODULE]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "mem/slab.h"
|
||||
#include "sys/module.h"
|
||||
#include "string.h"
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file utsname.c
|
||||
/// @brief Functions used to provide information about the machine & OS.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file errno.c
|
||||
/// @brief
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file panic.c
|
||||
/// @brief Functions used to manage kernel panic.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file printk.c
|
||||
/// @brief Functions for managing the kernel messages.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file signal.c
|
||||
/// @brief Signals definition.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
|
||||
@@ -1,9 +1,15 @@
|
||||
/// MentOS, The Mentoring Operating system project
|
||||
/// @file syscall.c
|
||||
/// @brief System Call management functions.
|
||||
/// @copyright (c) 2014-2021 This file is distributed under the MIT License.
|
||||
/// See LICENSE.md for details.
|
||||
|
||||
// Include the kernel log levels.
|
||||
#include "sys/kernel_levels.h"
|
||||
// Change the header.
|
||||
#define __DEBUG_HEADER__ "[SYSCLL]"
|
||||
// Set the log level.
|
||||
#define __DEBUG_LEVEL__ LOGLEVEL_NOTICE
|
||||
|
||||
#include "devices/fpu.h"
|
||||
#include "mem/kheap.h"
|
||||
#include "system/syscall.h"
|
||||
|
||||
Reference in New Issue
Block a user