mirror of
https://github.com/vivier/EMILE.git
synced 2025-08-15 07:27:41 +00:00
Add header
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
@@ -1,3 +1,9 @@
|
||||
/*
|
||||
*
|
||||
* (c) 2004 Laurent Vivier <LaurentVivier@wanadoo.fr>
|
||||
*
|
||||
*/
|
||||
|
||||
enum {
|
||||
gestaltProcessorType = 'proc',
|
||||
gestalt68000 = 1,
|
||||
|
Reference in New Issue
Block a user