Belarusian
[AROS.git] / test / kernelattrs.c
blob18c46f29ca03f79cea8122ad993b04e49a9fbc05
1 #include <aros/kernel.h>
2 #include <proto/exec.h>
3 #include <proto/kernel.h>
5 #include <stdio.h>
7 int main(void)
9 #ifdef KrnGetSystemAttr
10 APTR KernelBase = OpenResource("kernel.resource");
12 if (!KernelBase)
14 printf("Failed to open kernel.resource!\n");
15 return 1;
18 printf("Architecture : %s\n", (char *)KrnGetSystemAttr(KATTR_Architecture));
19 printf("VBlank enabled : %ld\n", KrnGetSystemAttr(KATTR_VBlankEnable));
20 printf("Timer IRQ : %ld\n", KrnGetSystemAttr(KATTR_TimerIRQ));
21 #else
22 printf("The test can't be built for this kernel.resource implementation\n");
23 #endif
25 return 0;