mirror of
https://github.com/gbowne1/ClassicOS.git
synced 2026-01-20 04:15:19 -08:00
Update vga.c
Change my_strlen to use our klibc strlen in klibc/include/string.h
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include "string_utils.h"
|
#include "klibc/include/string.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));
|
||||||
@@ -134,7 +134,7 @@ void vga_printf(const char* format, ...) {
|
|||||||
va_end(args);
|
va_end(args);
|
||||||
|
|
||||||
// Now you can use the buffer with vga_write_string
|
// Now you can use the buffer with vga_write_string
|
||||||
vga_write_string(buffer, my_strlen(buffer)); // Use my_strlen instead of strlen
|
vga_write_string(buffer, strlen(buffer)); // Use my_strlen instead of strlen
|
||||||
}
|
}
|
||||||
|
|
||||||
void vga_init(void) {
|
void vga_init(void) {
|
||||||
|
|||||||
Reference in New Issue
Block a user