#define DEFAULT_STACK_SIZE 0x1000
-static inline void
-set_bit(unsigned int bit, void *array)
-{
- unsigned char *a = array;
-
- a[bit / 8] |= (1 << (bit % 8));
-}
-
-static inline unsigned int
-get_int_seg(int i)
-{
- return *(unsigned short *)(i * 4 + 2);
-}
-
-
-static inline unsigned int
-get_int_off(int i)
-{
- return *(unsigned short *)(i * 4);
-}
-
int LRMI_common_init(void)
{
void *m;
/* Elemental unaligned loads */
-static __inline__ u64
-ldq_u(u64 * p)
-{
- const struct __una_u64 *ptr = (const struct __una_u64 *) p;
-
- return ptr->x;
-}
-
static __inline__ u32
ldl_u(u32 * p)
{
/* Elemental unaligned stores */
static __inline__ void
-stq_u(u64 val, u64 * p)
-{
- struct __una_u64 *ptr = (struct __una_u64 *) p;
-
- ptr->x = val;
-}
-
-static __inline__ void
stl_u(u32 val, u32 * p)
{
struct __una_u32 *ptr = (struct __una_u32 *) p;
}
#else /* !__GNUC__ */
-static __inline__ u64
-ldq_u(u64 * p)
-{
- u64 ret;
-
- memmove(&ret, p, sizeof(*p));
- return ret;
-}
-
static __inline__ u32
ldl_u(u32 * p)
{
}
static __inline__ void
-stq_u(u64 val, u64 * p)
-{
- u64 tmp = val;
-
- memmove(p, &tmp, sizeof(*p));
-}
-
-static __inline__ void
stl_u(u32 val, u32 * p)
{
u32 tmp = val;