2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
7 #include <aros/kernel.h>
8 #include <aros/symbolsets.h>
9 #include <utility/tagitem.h>
10 #include <proto/arossupport.h>
11 #include <proto/exec.h>
12 #include <proto/kernel.h>
14 #include "hostlib_intern.h"
16 static int HostLib_Init(struct HostLibBase
*HostLibBase
)
21 KernelBase
= OpenResource("kernel.resource");
22 D(bug("[hostlib] KernelBase = 0x%08lX\n", KernelBase
));
26 tag
= LibFindTagItem(KRN_HostInterface
, KrnGetBootInfo());
29 HostLibBase
->HostIFace
= (struct HostInterface
*)tag
->ti_Data
;
30 D(bug("[hostlib] HostIFace = 0x%08lX\n", HostLibBase
->HostIFace
));
32 #ifndef USE_FORBID_LOCK
33 InitSemaphore(&HostLibBase
->HostSem
);
41 ADD2INITLIB(HostLib_Init
, 0)