#ifndef _BMK_CORE_TYPES_H_
#define _BMK_CORE_TYPES_H_
-#ifdef _LP64
-typedef long bmk_time_t;
-#else
-typedef long long bmk_time_t;
-#endif
+typedef __INT64_TYPE__ int64_t;
+typedef __UINT64_TYPE__ uint64_t;
+typedef __INT32_TYPE__ int32_t;
+typedef __UINT32_TYPE__ uint32_t;
+typedef __INT16_TYPE__ int16_t;
+typedef __UINT16_TYPE__ uint16_t;
+typedef __INT8_TYPE__ int8_t;
+typedef __UINT8_TYPE__ uint8_t;
+typedef __INTPTR_TYPE__ intptr_t;
+typedef __UINTPTR_TYPE__ uintptr_t;
+
+typedef __INT64_TYPE__ bmk_time_t;
#endif /* _BMK_CORE_TYPES_H_ */
typedef unsigned long size_t;
#ifdef __GNUC__
+#ifndef __dead
#define __dead __attribute__((__noreturn__))
+#endif
+#ifndef __printflike
#define __printflike(a,b) __attribute__((__format__ (__printf__,a,b)))
+#endif
#else /* __GNUC__ */
#define __dead
#define __printflike(a,b)
int rumprun_platform_rumpuser_init(void);
#define LIBRUMPUSER
+#include <bmk-rumpuser/core_types.h>
+
#include <rump/rumpuser.h>
extern struct rumpuser_hyperup rumpuser__hyp;
+++ /dev/null
-/* Some selection of types */
-
-typedef unsigned long long uint64_t;
-typedef long long int64_t;
-typedef unsigned int uint32_t;
-typedef int int32_t;
-typedef unsigned short uint16_t;
-typedef short int16_t;
-typedef unsigned char uint8_t;
-typedef signed char int8_t;
-
-/* developed using waterfall model */
-typedef int32_t pid_t;
-typedef unsigned long size_t;
-typedef long ssize_t;
-typedef long intptr_t;
-typedef unsigned long uintptr_t;
-typedef unsigned long register_t;
-
-typedef volatile unsigned char __cpu_simple_lock_t;
+++ /dev/null
-/* Some selection of types */
-
-typedef unsigned long long uint64_t;
-typedef long long int64_t;
-typedef unsigned int uint32_t;
-typedef int int32_t;
-typedef unsigned short uint16_t;
-typedef short int16_t;
-typedef unsigned char uint8_t;
-typedef signed char int8_t;
-
-/* developed using waterfall model */
-typedef short pid_t;
-typedef unsigned long size_t;
-typedef long ssize_t;
-typedef long intptr_t;
-typedef unsigned long uintptr_t;
-typedef unsigned long register_t;
+++ /dev/null
-/* Some selection of types */
-
-typedef unsigned long uint64_t;
-typedef long int64_t;
-typedef unsigned int uint32_t;
-typedef int int32_t;
-typedef unsigned short uint16_t;
-typedef short int16_t;
-typedef unsigned char uint8_t;
-typedef signed char int8_t;
-
-/* developed using waterfall model */
-typedef short pid_t;
-typedef unsigned long size_t;
-typedef long ssize_t;
-typedef long intptr_t;
-typedef unsigned long uintptr_t;
-typedef unsigned long register_t;
#define _BMK_TYPES_H_
#include <bmk-core/types.h>
-#include <hw/machine/types.h>
/*
* MI types
#include <bmk-pcpu/pcpu.h>
+#include <bmk-rumpuser/core_types.h>
+
#include "pci_user.h"
int
#include <bmk-pcpu/pcpu.h>
+#include <bmk-rumpuser/core_types.h>
+
#include "pci_user.h"
#define PCI_CONF_ADDR 0xcf8
#include <bmk-core/sched.h>
#include <bmk-core/string.h>
+#include <bmk-rumpuser/core_types.h>
#include <bmk-rumpuser/rumpuser.h>
static struct rumpuser_mtx *bio_mtx;
struct blkfront_dev *aio_dev;
uint8_t *aio_buf;
size_t aio_nbytes;
- off_t aio_offset;
+ int64_t aio_offset;
size_t total_bytes;
uint8_t is_write;
void *data;
#ifndef _MINIOS_TYPES_H_
#define _MINIOS_TYPES_H_
-#include <sys/types.h>
+#include <bmk-core/types.h>
+typedef unsigned int u_int;
+typedef unsigned long u_long;
+typedef unsigned long size_t;
+
+/* XXX: fix the kernelside Xen driver #include abuse */
+#ifndef offsetof
#define offsetof(_t_,_e_) __builtin_offsetof(_t_,_e_)
+#endif
#ifdef __i386__
typedef struct { unsigned long pte_low, pte_high; } pte_t;