mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-30 08:31:03 +00:00
7682a99826
Various files are needlessly rebuilt every time due to the version and build time changing. As version.h is not actually needed, remove the include. Signed-off-by: Rob Herring <robh@kernel.org> Cc: Albert Aribaud <albert.u.boot@aribaud.net> Cc: Stefano Babic <sbabic@denx.de> Cc: Minkyu Kang <mk7.kang@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Tom Warren <twarren@nvidia.com> Cc: Michal Simek <monstr@monstr.eu> Cc: Macpaul Lin <macpaul@andestech.com> Cc: Wolfgang Denk <wd@denx.de> Cc: York Sun <yorksun@freescale.com> Cc: Stefan Roese <sr@denx.de> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Simon Glass <sjg@chromium.org> Cc: Philippe Reynes <tremyfr@yahoo.fr> Cc: Eric Jarrige <eric.jarrige@armadeus.org> Cc: "David Müller" <d.mueller@elsoft.ch> Cc: Phil Edworthy <phil.edworthy@renesas.com> Cc: Robert Baldyga <r.baldyga@samsung.com> Cc: Torsten Koschorrek <koschorrek@synertronixx.de> Cc: Anatolij Gustschin <agust@denx.de> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Łukasz Majewski <l.majewski@samsung.com>
112 lines
1.8 KiB
ArmAsm
112 lines
1.8 KiB
ArmAsm
/*
|
|
* (C) Copyright 2013
|
|
* David Feng <fenghua@phytium.com.cn>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#include <asm-offsets.h>
|
|
#include <config.h>
|
|
#include <asm/ptrace.h>
|
|
#include <asm/macro.h>
|
|
#include <linux/linkage.h>
|
|
|
|
/*
|
|
* Enter Exception.
|
|
* This will save the processor state that is ELR/X0~X30
|
|
* to the stack frame.
|
|
*/
|
|
.macro exception_entry
|
|
stp x29, x30, [sp, #-16]!
|
|
stp x27, x28, [sp, #-16]!
|
|
stp x25, x26, [sp, #-16]!
|
|
stp x23, x24, [sp, #-16]!
|
|
stp x21, x22, [sp, #-16]!
|
|
stp x19, x20, [sp, #-16]!
|
|
stp x17, x18, [sp, #-16]!
|
|
stp x15, x16, [sp, #-16]!
|
|
stp x13, x14, [sp, #-16]!
|
|
stp x11, x12, [sp, #-16]!
|
|
stp x9, x10, [sp, #-16]!
|
|
stp x7, x8, [sp, #-16]!
|
|
stp x5, x6, [sp, #-16]!
|
|
stp x3, x4, [sp, #-16]!
|
|
stp x1, x2, [sp, #-16]!
|
|
|
|
/* Could be running at EL3/EL2/EL1 */
|
|
switch_el x11, 3f, 2f, 1f
|
|
3: mrs x1, esr_el3
|
|
mrs x2, elr_el3
|
|
b 0f
|
|
2: mrs x1, esr_el2
|
|
mrs x2, elr_el2
|
|
b 0f
|
|
1: mrs x1, esr_el1
|
|
mrs x2, elr_el1
|
|
0:
|
|
stp x2, x0, [sp, #-16]!
|
|
mov x0, sp
|
|
.endm
|
|
|
|
/*
|
|
* Exception vectors.
|
|
*/
|
|
.align 11
|
|
.globl vectors
|
|
vectors:
|
|
.align 7
|
|
b _do_bad_sync /* Current EL Synchronous Thread */
|
|
|
|
.align 7
|
|
b _do_bad_irq /* Current EL IRQ Thread */
|
|
|
|
.align 7
|
|
b _do_bad_fiq /* Current EL FIQ Thread */
|
|
|
|
.align 7
|
|
b _do_bad_error /* Current EL Error Thread */
|
|
|
|
.align 7
|
|
b _do_sync /* Current EL Synchronous Handler */
|
|
|
|
.align 7
|
|
b _do_irq /* Current EL IRQ Handler */
|
|
|
|
.align 7
|
|
b _do_fiq /* Current EL FIQ Handler */
|
|
|
|
.align 7
|
|
b _do_error /* Current EL Error Handler */
|
|
|
|
|
|
_do_bad_sync:
|
|
exception_entry
|
|
bl do_bad_sync
|
|
|
|
_do_bad_irq:
|
|
exception_entry
|
|
bl do_bad_irq
|
|
|
|
_do_bad_fiq:
|
|
exception_entry
|
|
bl do_bad_fiq
|
|
|
|
_do_bad_error:
|
|
exception_entry
|
|
bl do_bad_error
|
|
|
|
_do_sync:
|
|
exception_entry
|
|
bl do_sync
|
|
|
|
_do_irq:
|
|
exception_entry
|
|
bl do_irq
|
|
|
|
_do_fiq:
|
|
exception_entry
|
|
bl do_fiq
|
|
|
|
_do_error:
|
|
exception_entry
|
|
bl do_error
|