[Blackfin] arch: do not use hard coded addresses
authorRobin Getz <robin.getz@analog.com>
Fri, 21 Dec 2007 09:46:33 +0000 (17:46 +0800)
committerBryan Wu <bryan.wu@analog.com>
Fri, 21 Dec 2007 09:46:33 +0000 (17:46 +0800)
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Bryan Wu <bryan.wu@analog.com>
arch/blackfin/mach-common/interrupt.S

index f983ac7ea3520040e64eddba86b6587ad2eddc5b..7f752c87fe460c2c91e316fa2789a659312d91b6 100644 (file)
@@ -121,8 +121,8 @@ __common_int_entry:
 
 #if ANOMALY_05000283 || ANOMALY_05000315
        cc = r7 == r7;
-       p5.h = 0xffc0;
-       p5.l = 0x0014;
+       p5.h = HI(CHIPID);
+       p5.l = LO(CHIPID);
        if cc jump 1f;
        r7.l = W[p5];
 1:
@@ -145,8 +145,8 @@ ENTRY(_evt_ivhw)
 
 #if ANOMALY_05000283
        cc = r7 == r7;
-       p5.h = 0xffc0;
-       p5.l = 0x0014;
+       p5.h = HI(CHIPID);
+       p5.l = LO(CHIPID);
        if cc jump 1f;
        r7.l = W[p5];
 1: