Skip to content
Snippets Groups Projects
Commit 60882b11 authored by adrian.spycher's avatar adrian.spycher
Browse files

feat: manage new param (disk.raw)

parent 7cfc0db4
Branches
No related tags found
No related merge requests found
#include <stdint.h>
#include "idt.h"
#include "shared/ide_regs.h"
#include "x86.h"
#include "gfx/gfx.h"
#include "ide/ide.h"
#include "timer/timer.h"
#include "console/console.h"
......@@ -13,10 +15,12 @@
#define timer_wait timer_pv_wait
#define console_send console_pv_send
#define gfx_init gfx_pv_init
#define ide_write ide_pv_write_sector
#else
#define timer_wait timer_phys_wait
#define console_send console_pv_send
#define gfx_init gfx_phys_init
#define ide_write ide_phys_write_sector
#endif
void guest_main() {
......@@ -32,7 +36,11 @@ void guest_main() {
timer_wait(1e6);
// - gfx init -
gfx_pv_init(1920, 1080);
gfx_init(1920, 1080);
// - disk -
char data[SECTOR_SIZE] = "here are my data !\n";
ide_write(0, data);
timer_wait(1e7);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment