1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-27 11:24:34 -05:00

Remove directory "include"

This commit is contained in:
Braiden Vasco 2017-11-09 16:00:36 +00:00
parent 6741306e58
commit 8527152156
21 changed files with 21 additions and 22 deletions

View file

@ -4,10 +4,9 @@ AR = $(CCPREFIX)ar
AS = $(CCPREFIX)as
CC = $(CCPREFIX)gcc
INCLUDE = include
KERNEL = rootfs/boot/kernelmq.multiboot2
KERNEL = rootfs/boot/kernelmq.multiboot2
CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra -I $(INCLUDE)
CFLAGS = -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
IMAGE = image.iso

View file

@ -1,6 +1,6 @@
#include "console.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
static unsigned short *const console_buffer = (unsigned short*)0xB8000;

2
info.c
View file

@ -1,4 +1,4 @@
#include <kernelmq/info.h>
#include "info.h"
static unsigned char cmdline_terminated(const char *s);

6
init.c
View file

@ -4,9 +4,9 @@
#include "protected.h"
#include "paging.h"
#include <kernelmq/info.h>
#include <kernelmq/stdlib.h>
#include <kernelmq/module.h>
#include "info.h"
#include "stdlib.h"
#include "module.h"
static struct KernelMQ_Info kinfo;

View file

@ -2,7 +2,7 @@
#include "console.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
#define LEVELS_COUNT 4

4
main.c
View file

@ -1,8 +1,8 @@
#include "multiboot.h"
#include "paging.h"
#include <kernelmq/info.h>
#include <kernelmq/stdlib.h>
#include "info.h"
#include "stdlib.h"
// Defined in linker script
extern char _kernel_offset;

View file

@ -1,6 +1,6 @@
#include "multiboot.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
#define MULTIBOOT_TAG_TYPE_END 0
#define MULTIBOOT_TAG_TYPE_CMDLINE 1

View file

@ -1,7 +1,7 @@
#ifndef KERNELMQ_INCLUDED_MULTIBOOT
#define KERNELMQ_INCLUDED_MULTIBOOT 1
#include <kernelmq/info.h>
#include "info.h"
#define MULTIBOOT_MAGIC 0x36d76289

View file

@ -3,7 +3,7 @@
#include "pagedir.h"
#include "panic.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
// CR0 bits
#define I386_CR0_PE 0x00000001 // Protected mode

View file

@ -1,7 +1,7 @@
#ifndef KERNELMQ_INCLUDED_PAGING
#define KERNELMQ_INCLUDED_PAGING 1
#include <kernelmq/info.h>
#include "info.h"
void paging_enable();

2
pfa.c
View file

@ -4,7 +4,7 @@
#include "panic.h"
#include "logger.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
#define FRAMES_COUNT (PAGE_DIR_LENGTH * PAGE_TABLE_LENGTH)

2
pfa.h
View file

@ -1,7 +1,7 @@
#ifndef KERNELMQ_INCLUDED_PFA
#define KERNELMQ_INCLUDED_PFA 1
#include <kernelmq/info.h>
#include "info.h"
void pfa_initialize(const struct KernelMQ_Info *kinfo);

View file

@ -7,7 +7,7 @@
#include "tss.h"
#include "pic.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
struct GdtPointer {
unsigned short limit;

View file

@ -1,7 +1,7 @@
#ifndef KERNELMQ_INCLUDED_PROTECTED
#define KERNELMQ_INCLUDED_PROTECTED 1
#include <kernelmq/info.h>
#include "info.h"
void protected_initialize(const struct KernelMQ_Info *kinfo);

View file

@ -1,7 +1,7 @@
#include "interrupt.h"
#include "logger.h"
#include <kernelmq/syscall.h>
#include "syscall.h"
static void syscall_do_exit(struct IsrRegisters regs);

2
tss.c
View file

@ -2,7 +2,7 @@
#include "config.h"
#include <kernelmq/stdlib.h>
#include "stdlib.h"
struct gdt_entry_bits {
unsigned int limit_low : 16;

2
tss.h
View file

@ -1,7 +1,7 @@
#ifndef KERNELMQ_INCLUDED_TSS
#define KERNELMQ_INCLUDED_TSS 1
#include <kernelmq/info.h>
#include "info.h"
void tss_write_to_gdt(const struct KernelMQ_Info *kinfo, void *gdt_entry);