Commit 6bbedfea authored by Charles Jacobsen's avatar Charles Jacobsen
Browse files

lcd: rpc example builds and runs, after removing locks.

parent ee75e7b5
......@@ -158,6 +158,7 @@
#define LIBFIPC_H
#include <libfipc_types.h>
#include <libfipc_platform.h>
/* MAIN INTERFACE -------------------------------------------------- */
......
......@@ -10,6 +10,8 @@
#include <libfipc_platform_types.h>
#include <libfipc_platform_internal.h>
#include <libfipc_platform.h>
/* DEBUGGING ---------------------------------------- */
......@@ -28,28 +30,4 @@
} while (0)
/* MUTEXES -------------------------------------------------- */
static inline int fipc_mutex_init(fipc_mutex_t *mutex)
{
return __fipc_mutex_init(mutex);
}
static inline int fipc_mutex_lock(fipc_mutex_t *mutex)
{
return __fipc_mutex_lock(mutex);
}
static inline int fipc_mutex_unlock(fipc_mutex_t *mutex)
{
return __fipc_mutex_unlock(mutex);
}
/* BUILD CHECKS ------------------------------------------------------------ */
#define FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x) \
(__FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x))
#define FIPC_BUILD_BUG_ON(x) \
(__FIPC_BUILD_BUG_ON(x))
#endif /* LIBFIPC_INTERNAL_H */
......@@ -58,7 +58,7 @@ struct fipc_message {
* it to be double cacheline sized.
*/
#define FIPC_RING_BUF_PADDING \
(FIPC_CACHE_LINE_SIZE - (3 * sizeof(unsigned long))
(FIPC_CACHE_LINE_SIZE - (3 * sizeof(unsigned long)))
struct fipc_ring_buf {
/**
* Where *I* am in the IPC buffer. (The other guy knows where I am
......
nobase_include_HEADERS = \
libfipc_platform_types.h
libfipc_platform_types.h libfipc_platform.h
noinst_HEADERS = \
libfipc_platform_internal.h
/*
* libfipc_platform.h
*
* Kernel-specific defs part of the public API
*
* Copyright: University of Utah
*/
#ifndef LIBFIPC_PLATFORM_H
#define LIBFIPC_PLATFORM_H
#include <linux/bug.h>
/* BUILD CHECKS ------------------------------------------------------------ */
#define FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x) \
(__FIPC_BUILD_BUG_ON_NOT_POWER_OF_2(x))
#define FIPC_BUILD_BUG_ON(x) \
(__FIPC_BUILD_BUG_ON(x))
#endif /* LIBFIPC_PLATFORM_H */
......@@ -8,6 +8,7 @@
#ifndef LIBFIPC_PLATFORM_TYPES_H
#define LIBFIPC_PLATFORM_TYPES_H
/* Nothing for now */
#include <linux/errno.h>
#include <linux/string.h>
#endif /* LIBFIPC_PLATFORM_TYPES_H */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment