]> git.sur5r.net Git - u-boot/blobdiff - arch/avr32/cpu/start.S
stm32: Correct positioning of declaration
[u-boot] / arch / avr32 / cpu / start.S
index 99c9e06cb83682c56c7d3f9b59001bac6c33ce22..14a0269a548880566673c8886d75fd99bbaf0bb1 100644 (file)
@@ -1,24 +1,9 @@
 /*
  * Copyright (C) 2005-2008 Atmel Corporation
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
+#include <asm-offsets.h>
 #include <config.h>
 #include <asm/ptrace.h>
 #include <asm/sysreg.h>
@@ -82,12 +67,19 @@ _evba:
        .org    0x44
        rjmp    unknown_exception       /* DTLB Modified */
 
-       .org    0x50
-       rjmp    unknown_exception       /* ITLB Miss */
-       .org    0x60
-       rjmp    unknown_exception       /* DTLB Miss (read) */
-       .org    0x70
-       rjmp    unknown_exception       /* DTLB Miss (write) */
+       .org    0x50                    /* ITLB Miss */
+       pushm   r8-r12,lr
+       rjmp    1f
+       .org    0x60                    /* DTLB Miss (read) */
+       pushm   r8-r12,lr
+       rjmp    1f
+       .org    0x70                    /* DTLB Miss (write) */
+       pushm   r8-r12,lr
+1:     mov     r12, sp
+       rcall   mmu_handle_tlb_miss
+       popm    r8-r12,lr
+       brne    unknown_exception
+       rete
 
        .size   _evba, . - _evba
 
@@ -236,7 +228,7 @@ relocate_code:
        /* zero out .bss */
        mov     r0, 0
        mov     r1, 0
-       lda.w   r9, _end
+       lda.w   r9, __bss_end
        sub     r9, r8
 1:     st.d    r10++, r0
        sub     r9, 8