1
0
Fork 0
mirror of https://github.com/hermitcore/libhermit.git synced 2025-03-09 00:00:03 +01:00

Merge pull request #27 from daniel-k/pr/minor_fixes

Remove some compiler warnings
This commit is contained in:
Stefan Lankes 2016-07-01 23:09:57 +02:00 committed by GitHub
commit e32af9c2d6
4 changed files with 6 additions and 5 deletions

View file

@ -47,9 +47,9 @@ extern "C" {
/// represents a task identifier
typedef unsigned int tid_t;
#define DECLARE_PER_CORE(type, name) extern type name __attribute__ ((section (".percore")));
#define DEFINE_PER_CORE(type, name, def_value) type name __attribute__ ((section (".percore"))) = def_value;
#define DEFINE_PER_CORE_STATIC(type, name, def_value) static type name __attribute__ ((section (".percore"))) = def_value;
#define DECLARE_PER_CORE(type, name) extern type name __attribute__ ((section (".percore")))
#define DEFINE_PER_CORE(type, name, def_value) type name __attribute__ ((section (".percore"))) = def_value
#define DEFINE_PER_CORE_STATIC(type, name, def_value) static type name __attribute__ ((section (".percore"))) = def_value
/* needed to find the task, which is currently running on this core */
struct task;

View file

@ -230,7 +230,7 @@ void check_ticks(void);
extern volatile uint32_t go_down;
/** @brief shutdown the hole system
/** @brief shutdown the whole system
*/
void shutdown_system(void);

View file

@ -212,7 +212,7 @@ int network_shutdown(void)
#if MAX_CORES > 1
int smp_main(void)
{
int32_t cpu = atomic_int32_inc(&cpu_online);
atomic_int32_inc(&cpu_online);
#ifdef DYNAMIC_TICKS
enable_dynticks();

View file

@ -37,6 +37,7 @@
#include <hermit/syscall.h>
#include <hermit/memory.h>
#include <asm/tss.h>
#include <asm/processor.h>
/*
* Note that linker symbols are not variables, they have no memory allocated for