Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
virtual_game_machine
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
adrian.spycher
virtual_game_machine
Commits
60882b11
Commit
60882b11
authored
6 months ago
by
adrian.spycher
Browse files
Options
Downloads
Patches
Plain Diff
feat: manage new param (disk.raw)
parent
7cfc0db4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
guest/guest_main.c
+9
-1
9 additions, 1 deletion
guest/guest_main.c
with
9 additions
and
1 deletion
guest/guest_main.c
+
9
−
1
View file @
60882b11
#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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment