add arm64 support
- add arm64 dependent codes with GICv3 and SVE support - fix bugs based on architecture separation requests
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
/* debug.h COPYRIGHT FUJITSU LIMITED 2015-2016 */
|
||||
/**
|
||||
* \file debug.h
|
||||
* License details are found in the file LICENSE.
|
||||
@@ -17,6 +18,21 @@
|
||||
#include <ihk/memconst.h>
|
||||
#include <ihk/kmsg.h>
|
||||
|
||||
#ifdef POSTK_DEBUG_ARCH_DEP_9 /* want to add a static assertion */
|
||||
|
||||
/* Force a compilation error if condition is false */
|
||||
#define STATIC_ASSERT(cond) _STATIC_ASSERT(cond, __LINE__)
|
||||
#define _STATIC_ASSERT(cond, line) __STATIC_ASSERT(cond, line)
|
||||
#define __STATIC_ASSERT(cond, line) \
|
||||
static void __static_assert_ ## line (void) { \
|
||||
STATIC_ASSERT_LOCAL(cond); \
|
||||
}
|
||||
|
||||
/* Force a compilation error if condition is false */
|
||||
#define STATIC_ASSERT_LOCAL(cond) ((void)sizeof(struct { int:-!!!(cond); }))
|
||||
|
||||
#endif /* POSTK_DEBUG_ARCH_DEP_9 */
|
||||
|
||||
struct ihk_kmsg_buf {
|
||||
int tail;
|
||||
int len;
|
||||
|
||||
Reference in New Issue
Block a user