Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 457 → Rev 458

/SPARTAN/trunk/generic/include/synch/spinlock.h
33,7 → 33,7
#include <typedefs.h>
#include <preemption.h>
 
#ifdef __SMP__
#ifdef CONFIG_SMP
struct spinlock {
int val;
};
/SPARTAN/trunk/generic/include/smp/smp.h
29,10 → 29,10
#ifndef __SMP_H__
#define __SMP_H__
 
#ifdef __SMP__
#ifdef CONFIG_SMP
extern void smp_init(void);
#else
#define smp_init() ;
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
#endif /* __SMP_H__ */
/SPARTAN/trunk/generic/include/smp/ipi.h
29,11 → 29,11
#ifndef __IPI_H__
#define __IPI_H__
 
#ifdef __SMP__
#ifdef CONFIG_SMP
extern void ipi_broadcast(int ipi);
extern void ipi_broadcast_arch(int ipi);
#else
#define ipi_broadcast(x) ;
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
#endif
/SPARTAN/trunk/generic/include/mm/tlb.h
33,7 → 33,7
 
extern void tlb_init(void);
 
#ifdef __SMP__
#ifdef CONFIG_SMP
extern void tlb_shootdown_start(void);
extern void tlb_shootdown_finalize(void);
extern void tlb_shootdown_ipi_recv(void);
41,7 → 41,7
# define tlb_shootdown_start() ;
# define tlb_shootdown_finalize() ;
# define tlb_shootdown_ipi_recv() ;
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
/* Export TLB interface that each architecture must implement. */
extern void tlb_init_arch(void);
/SPARTAN/trunk/generic/include/cpu.h
52,10 → 52,10
spinlock_t timeoutlock;
link_t timeout_active_head;
 
#ifdef __SMP__
#ifdef CONFIG_SMP
int kcpulbstarted;
waitq_t kcpulb_wq;
#endif /* __SMP__ */
#endif /* CONFIG_SMP */
 
int id;
int active;