1
0
Fork 0
mirror of https://github.com/tailix/kernel.git synced 2024-11-20 11:16:10 -05:00

Add include dir

This commit is contained in:
Braiden Vasco 2017-11-04 06:21:22 +00:00
parent 43fae1b582
commit b289b67088
7 changed files with 11 additions and 8 deletions

View file

@ -10,7 +10,7 @@ all: all-kernel all-iso all-libk
clean: clean-kernel clean-iso clean-libk
all-kernel: all-libk
make all -C arch LIBK=$(shell pwd)/libk/libk.a
make all -C arch I=$(shell pwd)/include LIBK=$(shell pwd)/libk/libk.a
clean-kernel:
make clean -C arch

View file

@ -27,7 +27,7 @@ kernel: $(OBJS)
grub-file --is-x86-multiboot2 $@
%.c.o: %.c
$(CC) -c $< -o $@ -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra
$(CC) -c $< -o $@ -std=gnu99 -ffreestanding -nostdinc -fno-builtin -fno-stack-protector -Wall -Wextra -I "$(I)"
%.s.o: %.s
$(AS) $< -o $@

View file

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

View file

@ -1,7 +1,8 @@
#include "kprintf.h"
#include "console.h"
#include "util.h"
#include <kernelmq/stdlib.h>
void kprintf(const char *format, ...)
{

View file

@ -2,7 +2,8 @@
#include "logger.h"
#include "kmalloc.h"
#include "util.h"
#include <kernelmq/stdlib.h>
#define PAGES_PER_TABLE 1024
#define TABLES_PER_DIR 1024

View file

@ -5,7 +5,8 @@
#include "asm.h"
#include "exception.h"
#include "hwint.h"
#include "util.h"
#include <kernelmq/stdlib.h>
struct GdtPointer {
unsigned short limit;

View file

@ -1,5 +1,5 @@
#ifndef KERNELMQ_INCLUDED_UTIL
#define KERNELMQ_INCLUDED_UTIL 1
#ifndef KERNELMQ_INCLUDED_STDLIB
#define KERNELMQ_INCLUDED_STDLIB 1
void memset(void *buffer, unsigned char value, unsigned int size);
unsigned int strlen(const char *s);