Link against common native-ppc Krn code, reduces code duplication.
[AROS.git] / rom / dosboot / bootconfig.c
blob0cbe2b9ef4d4e76a0db636e8a33240733cc9bbd6
1 #include <aros/bootloader.h>
2 #include <proto/bootloader.h>
3 #include <proto/exec.h>
5 #include "dosboot_intern.h"
7 /* This file contains architecture-dependent defaults */
9 void InitBootConfig(struct BootConfig *bootcfg)
11 void* BootLoaderBase;
12 struct VesaInfo *vi;
14 bootcfg->gfxlib = "vgah.hidd";
15 bootcfg->gfxhidd = "hidd.gfx.vga";
17 /* VGA and VESA drivers need to be unloaded when another GFX driver is found */
18 bootcfg->bootmode = TRUE;
20 if (!(BootLoaderBase = OpenResource("bootloader.resource")))
21 return;
23 if ((vi = (struct VesaInfo *)GetBootInfo(BL_Video)) != NULL)
25 if (vi->ModeNumber != 3)
27 /* VESA driver is self-initing now */
28 bootcfg->gfxhidd = NULL;