grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / devs / AHI / Device / elftest.c
blob185785fa1f2d427cec4069c3dabbe39ef3c65217
2 #include <stdio.h>
3 #include <proto/exec.h>
5 #include "elfloader.h"
7 int TimerBase;
8 int MixGeneric;
9 int MixPowerUp;
10 void* PPCObject;
12 void main( void )
14 PPCObject = ELFLoadObject( "devs:ahi.elf" );
16 printf( "PPCObject: 0x%08x\n", PPCObject );
18 ELFUnLoadObject( PPCObject );
21 APTR
22 AHIAllocVec( ULONG byteSize, ULONG requirements )
24 return AllocVec( byteSize, requirements );
27 void
28 AHIFreeVec( APTR memoryBlock )
30 FreeVec( memoryBlock );