mirror of
https://github.com/vivier/EMILE.git
synced 2025-03-06 22:29:36 +00:00
Add header
This commit is contained in:
parent
0e8fa74829
commit
6b0cf6488a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user