Test hexdump in start.c

This commit is contained in:
Imbus 2025-10-01 02:52:20 +02:00
parent 795cf84a07
commit cc24fb66eb

View file

@ -1,4 +1,5 @@
#include "badrand.h" #include <badrand.h>
#include <hexdump.h>
#include <assert.h> #include <assert.h>
#include <banner.h> #include <banner.h>
#include <buddy.h> #include <buddy.h>
@ -79,6 +80,11 @@ void start() {
buddy_free(mem); buddy_free(mem);
} }
{
char buffer[128];
badrand_buf(buffer, 128);
hexdump(buffer, 128);
}
kprintf("To exit qemu, press CTRL+a followed by x\n"); kprintf("To exit qemu, press CTRL+a followed by x\n");
spin_unlock(&sl); spin_unlock(&sl);