diff options
| author | Patrick Williams <iawillia@us.ibm.com> | 2011-03-05 10:01:45 -0600 |
|---|---|---|
| committer | Patrick Williams <iawillia@us.ibm.com> | 2011-03-05 10:01:45 -0600 |
| commit | 706243ac48cf646d503a3f1ec9e6a28c916694bd (patch) | |
| tree | 5d583486a145a9646eccb9d3c4bce4dad45a2a84 /src/include/sys | |
| parent | 5c20d316d21e231daee6455f0a78d5940d59cf23 (diff) | |
| download | talos-hostboot-706243ac48cf646d503a3f1ec9e6a28c916694bd.tar.gz talos-hostboot-706243ac48cf646d503a3f1ec9e6a28c916694bd.zip | |
Merge of PowerHAL project up to commit:
dd45c30bd53d8e6c123165b83842d08117558a3c
Diffstat (limited to 'src/include/sys')
| -rw-r--r-- | src/include/sys/msg.h | 7 | ||||
| -rw-r--r-- | src/include/sys/vfs.h | 7 |
2 files changed, 10 insertions, 4 deletions
diff --git a/src/include/sys/msg.h b/src/include/sys/msg.h index d7c42f4e3..eec71ea4e 100644 --- a/src/include/sys/msg.h +++ b/src/include/sys/msg.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdlib.h> +#include <builtins.h> #ifdef __cplusplus extern "C" @@ -26,9 +27,9 @@ int msg_q_register(msg_q_t q, const char* name); msg_q_t msg_q_resolve(const char* name); // Message interfaces. -__attribute__((always_inline)) +ALWAYS_INLINE inline msg_t* msg_allocate() { return (msg_t*)malloc(sizeof(msg_t)); } -__attribute__((always_inline)) +ALWAYS_INLINE inline void msg_free(msg_t* m) { free(m); } int msg_send(msg_q_t q, msg_t* msg); @@ -36,7 +37,7 @@ int msg_sendrecv(msg_q_t q, msg_t* msg); int msg_respond(msg_q_t q, msg_t* msg); msg_t* msg_wait(msg_q_t q); -__attribute__((always_inline)) +ALWAYS_INLINE inline uint32_t msg_is_async(msg_t* msg) { return 0 == msg->__reserved__async; } diff --git a/src/include/sys/vfs.h b/src/include/sys/vfs.h index d55a44710..3b2575139 100644 --- a/src/include/sys/vfs.h +++ b/src/include/sys/vfs.h @@ -10,6 +10,12 @@ #define VFS_STRINGIFY(X) #X #define VFS_TOSTRING(X) VFS_STRINGIFY(X) +#define VFS_MODULE_DEFINE_START(f) \ + extern "C" void VFS_SYMBOL_START(void* args) \ + { \ + f(args); \ + } + #ifdef __cplusplus extern "C" { @@ -37,7 +43,6 @@ struct VfsSystemModule extern VfsSystemModule VFS_MODULES[VFS_MODULE_MAX]; extern uint64_t VFS_LAST_ADDRESS; - #ifdef __cplusplus } #endif |

