mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
bugfixes for ARM
This commit is contained in:
parent
15ac4023f5
commit
d88c59aab4
5 changed files with 6 additions and 5 deletions
|
@ -38,7 +38,7 @@
|
|||
|
||||
int kernel_get_cacheline_size()
|
||||
{
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && defined(__x86_64__)
|
||||
return sysconf(_SC_LEVEL1_ICACHE_LINESIZE);
|
||||
#else
|
||||
return 64; /** @todo fixme */
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <villas/utils.h>
|
||||
#include <villas/log.h>
|
||||
|
||||
void debug(long class, const char *fmt, ...)
|
||||
void debug(long long class, const char *fmt, ...)
|
||||
{
|
||||
va_list ap;
|
||||
|
||||
|
|
|
@ -53,7 +53,7 @@ int memory_init(int hugepages)
|
|||
{
|
||||
info("Initialize memory sub-system: #hugepages=%d", hugepages);
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) && defined(__x86_64__)
|
||||
int pagecnt, pagesz, ret;
|
||||
struct rlimit l;
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
const char *uri = "opal-shmem.conf";
|
||||
#else
|
||||
char c;
|
||||
int c;
|
||||
while ((c = getopt(argc, argv, "hV")) != -1) {
|
||||
switch (c) {
|
||||
case 'V':
|
||||
|
|
|
@ -255,7 +255,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
json_t *cfg_cli = json_object();
|
||||
|
||||
char c, *endptr;
|
||||
int c;
|
||||
char *endptr;
|
||||
while ((c = getopt(argc, argv, "Vhxrsd:l:L:t:f:o:")) != -1) {
|
||||
switch (c) {
|
||||
case 'V':
|
||||
|
|
Loading…
Add table
Reference in a new issue