EMILE/libmacos/macos/osutils.h
2005-11-08 02:02:16 +00:00

40 lines
709 B
C

/*
*
* (c) 2004,2005 Laurent Vivier <LaurentVivier@wanadoo.fr>
*
*/
#ifndef __MACOS_OSUTILS_H__
#define __MACOS_OSUTILS_H__
#include <macos/types.h>
#include <macos/traps.h>
struct QHdr {
int16_t qFlags;
void* qHead;
void* qTail;
};
typedef struct QHdr QHdr;
typedef QHdr * QHdrPtr;
struct MachineLocation
{
int32_t latitude;
int32_t longitude;
union
{
int8_t dlsDelta;
int32_t gmtDelta;
} u;
};
typedef struct MachineLocation MachineLocation;
static inline void ReadLocation(MachineLocation * loc)
{
asm("move.l %0, %%a0\n"
XPRam(_ReadLocation)
:: "g" (loc) : "%%d0", UNPRESERVED_REGS);
}
#endif /* __MACOS_OSUTILS_H__ */