Switch: to freestanding stdint and stdbool headers
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#ifndef INCLUDE_IO_H
|
||||
#define INCLUDE_IO_H
|
||||
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void outb(unsigned short port, unsigned char data);
|
||||
unsigned char inb(unsigned short port);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "kheap.h"
|
||||
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
extern uint32_t end;
|
||||
uint32_t placement_address = (uint32_t)&end;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#ifndef KHEAP_H
|
||||
#define KHEAP_H
|
||||
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
uint32_t kmalloc_a(uint32_t sz);
|
||||
uint32_t kmalloc_p(uint32_t sz, uint32_t *phys);
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "system.h"
|
||||
#include "paging.h"
|
||||
#include "../drivers/ata.h"
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
#include "../drivers/framebuffer.h"
|
||||
|
||||
typedef struct {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
#include "paging.h"
|
||||
#include "../libc/stdio.h"
|
||||
#include "system.h"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#define PAGING_H
|
||||
|
||||
#include "system.h"
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
typedef struct
|
||||
{
|
||||
uint32_t present : 1;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
#include "../libc/stdio.h"
|
||||
#include "../libc/string.h"
|
||||
#include "../programs/programs.h"
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
#define BUFFER_SIZE 256
|
||||
#define MAX_COMMANDS 16
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#include "system.h"
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void *memset(void *dest, char val, size_t count)
|
||||
{
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
#ifndef SYSTEM_H
|
||||
#define SYSTEM_H
|
||||
|
||||
#include "../libc/stdint.h"
|
||||
#include <stdint.h>
|
||||
|
||||
typedef int size_t;
|
||||
#define NULL ((void*)0)
|
||||
|
||||
void *memset(void *dest, char val, size_t count);
|
||||
void *memmove(void* dest, const void* src, size_t n);
|
||||
|
||||
Reference in New Issue
Block a user