aboutsummaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-10-11 21:19:39 -0400
committerMike Frysinger <vapier@gentoo.org>2008-10-23 05:03:51 -0400
commitbd33e5c613cf70e3cb51a73fdd653fe83b942bb0 (patch)
tree4f9c9e1a4db2248667dad48a7d9695a096902c31 /cpu
parent960922291c9594acb575cec7e47d7bed9b58182c (diff)
downloadu-boot-bd33e5c613cf70e3cb51a73fdd653fe83b942bb0.zip
u-boot-bd33e5c613cf70e3cb51a73fdd653fe83b942bb0.tar.gz
u-boot-bd33e5c613cf70e3cb51a73fdd653fe83b942bb0.tar.bz2
Blackfin: small cpu init optimization while setting interrupt mask
Use the sti instruction to set the initial interrupt mask rather than banging on the core IMASK MMR to save both space and time. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'cpu')
-rw-r--r--cpu/blackfin/start.S7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpu/blackfin/start.S b/cpu/blackfin/start.S
index f351fab..9975a0c 100644
--- a/cpu/blackfin/start.S
+++ b/cpu/blackfin/start.S
@@ -193,11 +193,8 @@ ENTRY(_start)
p1.l = .Lenable_nested;
p1.h = .Lenable_nested;
[p0] = p1;
- p2.l = LO(IMASK);
- p2.h = HI(IMASK);
- p3.l = LO(EVT_IVG15);
- p3.h = HI(EVT_IVG15);
- [p2] = p3;
+ r7 = EVT_IVG15 (z);
+ sti r7;
raise 15;
p4.l = .LWAIT_HERE;
p4.h = .LWAIT_HERE;