Add header

This commit is contained in:
Laurent Vivier 2004-02-26 22:29:31 +00:00
parent 0e8fa74829
commit 6b0cf6488a
2 changed files with 22 additions and 1 deletions

View File

@ -1,3 +1,9 @@
/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
#include "glue.h"
#include "arch.h"
@ -6,6 +12,7 @@ unsigned long mmu_type = 0;
unsigned long fpu_type = 0;
unsigned long machine_id = 0;
unsigned long arch_type = gestalt68k;
unsigned long bus_type = 0;
void arch_init()
{
@ -28,7 +35,15 @@ void arch_init()
Gestalt(gestaltSysArchitecture, &arch_type);
/* check machine type */
/* check machine type: powerPC or m68k */
Gestalt(gestaltMachineType, &machine_id);
#if 0
/* check bus type */
if (Gestalt(gestaltOpenFirmwareInfo, &response) == noErr)
if (Gestalt(gestaltNameRegistryVersion, &response) == noErr)
arch_pci = true;
#endif
}

View File

@ -1,3 +1,9 @@
/*
*
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
enum {
gestaltProcessorType = 'proc',
gestalt68000 = 1,