oops .. forgot to offset from objects bounds
[AROS.git] / arch / all-native / bootconsole / init_taglist.c
blobb86b0b65d68b5c231d5dae58a09b9cb55f8a1f5a
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Parse AROS boot taglist and init console.
6 */
8 #include <aros/kernel.h>
9 #include <hardware/vbe.h>
10 #include <utility/tagitem.h>
11 #include <proto/arossupport.h>
13 #include <bootconsole.h>
15 #include "console.h"
17 void con_InitTagList(const struct TagItem *tags)
19 struct TagItem *tag;
20 struct vbe_mode *vbemode = NULL;
21 /* By default we have 2.0 data (framebuffer pointer filled in) */
22 unsigned short vbever = 0x0200;
24 while ((tag = LibNextTagItem((struct TagItem **)&tags)))
26 switch (tag->ti_Tag)
28 case KRN_CmdLine:
29 con_InitSerial((char *)tag->ti_Data);
30 break;
32 case KRN_VBEModeInfo:
33 vbemode = (struct vbe_mode *)tag->ti_Data;
34 break;
36 case KRN_VBEControllerInfo:
37 vbever = ((struct vbe_controller *)tag->ti_Data)->version;
38 break;
42 if (vbemode)
43 con_InitVESA(vbever, vbemode);
44 else
45 con_InitVGA();