Skip to content

Commit

Permalink
Kstdint removed
Browse files Browse the repository at this point in the history
А нахуя просили то
  • Loading branch information
0Nera committed Jan 14, 2025
1 parent 7a3c8b2 commit b0562b2
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 29 deletions.
2 changes: 1 addition & 1 deletion kernel/arch/amd64/idt.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "kstdint.h"
#include <stdint.h>

// From https://wiki.osdev.org/Interrupt_Descriptor_Table#Structure_on_x86-64
struct idt_64 {
Expand Down
2 changes: 1 addition & 1 deletion kernel/arch/amd64/paging.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "kstdint.h"
#include <stdint.h>

uint64_t paging_main[3][512] __attribute__((aligned(4096))) = { 0 };

Expand Down
2 changes: 1 addition & 1 deletion kernel/arch/amd64/serial.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "kasm.h"
#include "kstdint.h"
#include <stdint.h>

void serial_write_byte(uint8_t byte) {
// Wait until the transmit holding register is empty
Expand Down
2 changes: 1 addition & 1 deletion kernel/cpio.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "kstdint.h"
#include <stdint.h>

// We need memory manager and kernel lib first
#if 0
Expand Down
2 changes: 1 addition & 1 deletion kernel/include/kasm.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __K_ASM
#define __K_ASM

#include "kstdint.h"
#include <stdint.h>

#if defined(__x86_64__)
static inline void outb(uint16_t port, uint8_t val) {
Expand Down
2 changes: 1 addition & 1 deletion kernel/include/khal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define __K_HAL

#include "kasm.h"
#include "kstdint.h"
#include <stdint.h>

#if defined(__x86_64__)

Expand Down
20 changes: 0 additions & 20 deletions kernel/include/kstdint.h

This file was deleted.

2 changes: 1 addition & 1 deletion kernel/kernel.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "khal.h"
#include "kstdint.h"
#include <stdint.h>
#include "kstring.h"
#include "sys/panic.h"

Expand Down
2 changes: 1 addition & 1 deletion kernel/klibc/printf.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "khal.h"
#include "kstdint.h"
#include <stdint.h>
#include <stdarg.h>

static char *itoa(uint64_t value, char *buf, uint8_t base) {
Expand Down
2 changes: 1 addition & 1 deletion kernel/multiboot2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "khal.h"
#include "kstdint.h"
#include <stdint.h>
#include "kstdlib.h"
#include <3rd/multiboot2.h>

Expand Down

0 comments on commit b0562b2

Please sign in to comment.