Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 188490
b: refs/heads/master
c: 726e965
h: refs/heads/master
v: v3
  • Loading branch information
Barry Song authored and Mike Frysinger committed Mar 9, 2010
1 parent 296a3c6 commit 4e0d2c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 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: 336746ed8ee8ef503ba79bc4b6f0b5a40e8ab3ce
refs/heads/master: 726e96561e4704278bc5197238f6459e1a63aa77
18 changes: 12 additions & 6 deletions trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ int nr_dcplb_miss[NR_CPUS], nr_icplb_miss[NR_CPUS];
int nr_icplb_supv_miss[NR_CPUS], nr_dcplb_prot[NR_CPUS];
int nr_cplb_flush[NR_CPUS];

#ifdef CONFIG_EXCPT_IRQ_SYSC_L1
#define MGR_ATTR __attribute__((l1_text))
#else
#define MGR_ATTR
#endif

/*
* Given the contents of the status register, return the index of the
* CPLB that caused the fault.
Expand Down Expand Up @@ -59,7 +65,7 @@ static int icplb_rr_index[NR_CPUS], dcplb_rr_index[NR_CPUS];
/*
* Find an ICPLB entry to be evicted and return its index.
*/
static int evict_one_icplb(unsigned int cpu)
MGR_ATTR static int evict_one_icplb(unsigned int cpu)
{
int i;
for (i = first_switched_icplb; i < MAX_CPLBS; i++)
Expand All @@ -74,7 +80,7 @@ static int evict_one_icplb(unsigned int cpu)
return i;
}

static int evict_one_dcplb(unsigned int cpu)
MGR_ATTR static int evict_one_dcplb(unsigned int cpu)
{
int i;
for (i = first_switched_dcplb; i < MAX_CPLBS; i++)
Expand All @@ -89,7 +95,7 @@ static int evict_one_dcplb(unsigned int cpu)
return i;
}

static noinline int dcplb_miss(unsigned int cpu)
MGR_ATTR static noinline int dcplb_miss(unsigned int cpu)
{
unsigned long addr = bfin_read_DCPLB_FAULT_ADDR();
int status = bfin_read_DCPLB_STATUS();
Expand Down Expand Up @@ -163,7 +169,7 @@ static noinline int dcplb_miss(unsigned int cpu)
return 0;
}

static noinline int icplb_miss(unsigned int cpu)
MGR_ATTR static noinline int icplb_miss(unsigned int cpu)
{
unsigned long addr = bfin_read_ICPLB_FAULT_ADDR();
int status = bfin_read_ICPLB_STATUS();
Expand Down Expand Up @@ -269,7 +275,7 @@ static noinline int icplb_miss(unsigned int cpu)
return 0;
}

static noinline int dcplb_protection_fault(unsigned int cpu)
MGR_ATTR static noinline int dcplb_protection_fault(unsigned int cpu)
{
int status = bfin_read_DCPLB_STATUS();

Expand All @@ -289,7 +295,7 @@ static noinline int dcplb_protection_fault(unsigned int cpu)
return CPLB_PROT_VIOL;
}

int cplb_hdr(int seqstat, struct pt_regs *regs)
MGR_ATTR int cplb_hdr(int seqstat, struct pt_regs *regs)
{
int cause = seqstat & 0x3f;
unsigned int cpu = raw_smp_processor_id();
Expand Down

0 comments on commit 4e0d2c8

Please sign in to comment.