mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-20 04:15:19 -08:00
Fix includes for string.h/string_utils.h
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#include <string.h>
|
||||||
#include "display.h"
|
#include "display.h"
|
||||||
#include "io.h"
|
#include "io.h"
|
||||||
#include "vga.h"
|
#include "vga.h"
|
||||||
@@ -62,7 +63,7 @@ void clear_display(void) {
|
|||||||
// Helper function to write a string
|
// Helper function to write a string
|
||||||
void display_write_string(const char* str) {
|
void display_write_string(const char* str) {
|
||||||
// Use the VGA driver's string writing function
|
// Use the VGA driver's string writing function
|
||||||
vga_write_string(str, my_strlen(str));
|
vga_write_string(str, strlen(str));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Helper function to print a formatted string
|
// Helper function to print a formatted string
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
#include "vga.h"
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "klibc/include/string.h"
|
#include "string_utils.h"
|
||||||
|
#include "vga.h"
|
||||||
|
|
||||||
void outb(uint16_t port, uint8_t value) {
|
void outb(uint16_t port, uint8_t value) {
|
||||||
__asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port));
|
__asm__ volatile("outb %0, %1" : : "a"(value), "Nd"(port));
|
||||||
|
|||||||
Reference in New Issue
Block a user