mirror of
https://github.com/drasko/codezero.git
synced 2026-04-07 20:49:11 +02:00
Kernel updates since December 2009
This commit is contained in:
23
include/l4/generic/smp.h
Normal file
23
include/l4/generic/smp.h
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* Copyright 2010 B Labs Ltd.
|
||||
*
|
||||
* Author: Prem Mallappa <prem.mallappa@b-labs.co.uk>
|
||||
*/
|
||||
|
||||
#ifndef __GENERIC_SMP_H__
|
||||
#define __GENERIC_SMP_H__
|
||||
|
||||
#include INC_SUBARCH(cpu.h)
|
||||
|
||||
/* IPIs, we define more as we go */
|
||||
/* we have limited IPI's on ARM, exactly 15 */
|
||||
#define IPI_TLB_FLUSH 0x00000001
|
||||
#define IPI_SCHEDULE 0x00000002
|
||||
#define IPI_CACH_FLUSH 0x00000003
|
||||
|
||||
#if !defined (CONFIG_NCPU)
|
||||
#define CONFIG_NCPU 1
|
||||
#define smp_get_cpuid() 0
|
||||
#endif
|
||||
|
||||
#endif /* __GENERIC_SMP_H__ */
|
||||
Reference in New Issue
Block a user