Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 624 → Rev 625

/kernel/trunk/generic/include/debug.h
33,7 → 33,7
#include <arch/debug.h>
#include <arch.h>
 
#define CALLER ((__address *)__builtin_return_address(0))
#define CALLER ((__address)__builtin_return_address(0))
 
#ifndef HERE
/** Current Instruction Pointer address */
/kernel/trunk/generic/include/cpu.h
53,7 → 53,7
link_t timeout_active_head;
 
#ifdef CONFIG_SMP
int kcpulbstarted;
atomic_t kcpulbstarted;
waitq_t kcpulb_wq;
#endif /* CONFIG_SMP */
 
/kernel/trunk/generic/include/synch/spinlock.h
32,6 → 32,7
#include <arch/types.h>
#include <typedefs.h>
#include <preemption.h>
#include <arch/atomic.h>
 
#ifdef CONFIG_SMP
struct spinlock {
38,7 → 39,7
#ifdef CONFIG_DEBUG_SPINLOCK
char *name;
#endif
int val;
atomic_t val;
};
 
/*
55,12 → 56,12
#define SPINLOCK_INITIALIZE(slname) \
spinlock_t slname = { \
.name = #slname, \
.val = 0 \
.val = { 0 } \
}
#else
#define SPINLOCK_INITIALIZE(slname) \
spinlock_t slname = { \
.val = 0 \
.val = { 0 } \
}
#endif