grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / c / CPUInfo / x86_IDT.c
blob89e46f0b6aefc429e094b09e73e54e7982fd0795
1 /*
2 Copyright © 2000, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Probe installed IDT CPUs and display relevant information
6 Lang: english
7 */
9 /* BIG TO DO - SEPERATE THE INDIVIDUAL PROCESSOR FAMILY "PROBES" INTO RUNTIME SHARED LIBS OR SIMILAR */
11 /****************************************************************************************************
12 Currently Supports:
14 i386 compatable families...
17 *****************************************************************************************************/
19 #include "../x86.h"
21 /********************************************
22 IDT Specific information..
23 ********************************************/
25 void parse_i386_IDT( int maxi, struct i386_compat_intern * CPUi386 )
28 struct CPU_INTERN_DATA *global;
29 ULONG speed, maxei,unused;
30 int family = 0;
31 char *BUFF_STR;
33 if ((global = AllocMem(sizeof(struct CPU_INTERN_DATA),MEMF_PUBLIC|MEMF_CLEAR)))
35 speed = i386_approx_mhz();
37 else
39 printf( "ERROR: Couldn't allocate memory to parse CPU information .." );
40 return;
42 FreeMem(global,sizeof(struct CPU_INTERN_DATA));