Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 228437
b: refs/heads/master
c: 49fcc7b
h: refs/heads/master
i:
  228435: a7af88a
v: v3
  • Loading branch information
Graf Yang authored and Mike Frysinger committed Jan 10, 2011
1 parent 64bb076 commit 42cba4e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 75734e660665b9bb5da8fc06beb491b716f9af77
refs/heads/master: 49fcc7b16f23167f0ee945228bd811a1a2728c77
16 changes: 9 additions & 7 deletions trunk/arch/blackfin/mach-bf561/include/mach/mem_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
#define COREA_L1_SCRATCH_START 0xFFB00000
#define COREB_L1_SCRATCH_START 0xFF700000

#ifdef __ASSEMBLY__
#ifdef CONFIG_SMP

/*
* The following macros both return the address of the PDA for the
Expand All @@ -121,8 +121,7 @@
* is allowed to use the specified Dreg for determining the PDA
* address to be returned into Preg.
*/
#ifdef CONFIG_SMP
#define GET_PDA_SAFE(preg) \
# define GET_PDA_SAFE(preg) \
preg.l = lo(DSPID); \
preg.h = hi(DSPID); \
preg = [preg]; \
Expand Down Expand Up @@ -158,7 +157,7 @@
preg = [preg]; \
4:

#define GET_PDA(preg, dreg) \
# define GET_PDA(preg, dreg) \
preg.l = lo(DSPID); \
preg.h = hi(DSPID); \
dreg = [preg]; \
Expand All @@ -169,13 +168,17 @@
preg = [preg]; \
1: \

#define GET_CPUID(preg, dreg) \
# define GET_CPUID(preg, dreg) \
preg.l = lo(DSPID); \
preg.h = hi(DSPID); \
dreg = [preg]; \
dreg = ROT dreg BY -1; \
dreg = CC;

# ifndef __ASSEMBLY__

# include <asm/processor.h>

static inline unsigned long get_l1_scratch_start_cpu(int cpu)
{
return cpu ? COREB_L1_SCRATCH_START : COREA_L1_SCRATCH_START;
Expand Down Expand Up @@ -210,8 +213,7 @@ static inline unsigned long get_l1_data_b_start(void)
return get_l1_data_b_start_cpu(blackfin_core_id());
}

# endif /* __ASSEMBLY__ */
#endif /* CONFIG_SMP */

#endif /* __ASSEMBLY__ */

#endif

0 comments on commit 42cba4e

Please sign in to comment.