blob: 6a0fe94b84a62a5aaa7ee22ec810812c3b8f170d [file] [log] [blame]
Graf Yang6b3087c2009-01-07 23:14:39 +08001/*
Robin Getz96f10502009-09-24 14:11:24 +00002 * Copyright 2007-2009 Analog Devices Inc.
3 * Philippe Gerum <rpm@xenomai.org>
Graf Yang6b3087c2009-01-07 23:14:39 +08004 *
Robin Getz96f10502009-09-24 14:11:24 +00005 * Licensed under the GPL-2 or later.
Graf Yang6b3087c2009-01-07 23:14:39 +08006 */
7
8#ifndef __ASM_BLACKFIN_SMP_H
9#define __ASM_BLACKFIN_SMP_H
10
11#include <linux/kernel.h>
12#include <linux/threads.h>
13#include <linux/cpumask.h>
14#include <linux/cache.h>
15#include <asm/blackfin.h>
16#include <mach/smp.h>
17
18#define raw_smp_processor_id() blackfin_core_id()
19
Graf Yangdbc895f2009-01-07 23:14:39 +080020extern char coreb_trampoline_start, coreb_trampoline_end;
21
Graf Yang6b3087c2009-01-07 23:14:39 +080022struct corelock_slot {
23 int lock;
24};
25
26void smp_icache_flush_range_others(unsigned long start,
27 unsigned long end);
28
29#endif /* !__ASM_BLACKFIN_SMP_H */