mirror of
https://github.com/yourtion/30dayMakeOS.git
synced 2026-02-06 11:33:20 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d4706d26c |
@@ -34,17 +34,10 @@ struct BOOTINFO {
|
||||
|
||||
void HariMain(void)
|
||||
{
|
||||
char *vram;/* 声明变量vram、用于BYTE [...]地址 */
|
||||
int xsize, ysize;
|
||||
struct BOOTINFO *binfo;
|
||||
struct BOOTINFO *binfo = (struct BOOTINFO *) 0x0ff0;
|
||||
|
||||
init_palette();
|
||||
binfo = (struct BOOTINFO *) 0x0ff0;
|
||||
xsize = (*binfo).scrnx;
|
||||
ysize = (*binfo).scrny;
|
||||
vram = (*binfo).vram;
|
||||
|
||||
init_screen(vram, xsize, ysize);
|
||||
init_screen(binfo->vram, binfo->scrnx, binfo->scrny);
|
||||
|
||||
for (;;) {
|
||||
io_hlt();
|
||||
|
||||
Reference in New Issue
Block a user