separating: there will be libk and libc

This commit is contained in:
2025-01-07 15:23:14 +01:00
parent b3687d20ee
commit a8582ba343
32 changed files with 29 additions and 31 deletions

15
kernel/io.h Normal file
View File

@@ -0,0 +1,15 @@
// Raw CPU port I/O kernel module header
// Author: xamidev
// Licensed under the Unlicense. See the repo below.
// https://github.com/xamidev/blankos
#ifndef IO_H
#define IO_H
#include <stdint.h>
void outb(unsigned short port, unsigned char data);
unsigned char inb(unsigned short port);
void x86_div64_32(uint64_t dividend, uint32_t divisor, uint64_t* quotientOut, uint32_t* remainderOut);
#endif