Skip to content
Snippets Groups Projects
Commit e8a8bab5 authored by Tom Rini's avatar Tom Rini
Browse files

sparc: Correct arch/sparc/cpu/leon3/start.S from SPDX conversion


The SPDX tag conversion ate part of this file, put things back to the
way they should be.

Signed-off-by: default avatarTom Rini <trini@ti.com>
parent a5750b80
No related branches found
No related tags found
No related merge requests found
#include <config.h> /* This is where the SPARC/LEON3 starts
* Copyright (C) 2007,
TRAP ta 0; nop; nop; nop; * Daniel Hellstrom, daniel@gaisler.com
*
/* Software trap. Treat as BAD_TRAP for the time being... */ * See file CREDITS for list of people who contributed to this
#define SOFT_TRAP TRAP(_hwerr) * project.
*
#define PSR_INIT 0x1FC0 /* Disable traps, set s and ps */ * SPDX-License-Identifier: GPL-2.0+
#define WIM_INIT 2 */
/* All traps low-level code here must end with this macro. */
#define RESTORE_ALL b ret_trap_entry; clr %l6;
#define WRITE_PAUSE nop;nop;nop
WINDOWSIZE = (16 * 4)
ARGPUSHSIZE = (6 * 4)
ARGPUSH = (WINDOWSIZE + 4)
MINFRAME = (WINDOWSIZE + ARGPUSHSIZE + 4)
/* Number of register windows */
#ifndef CONFIG_SYS_SPARC_NWINDOWS
#error Must define number of SPARC register windows, default is 8
#endif
#define STACK_ALIGN 8
#define SA(X) (((X)+(STACK_ALIGN-1)) & ~(STACK_ALIGN-1))
.section ".start", "ax" #include <asm-offsets.h>
.globl _starttate */ #include <config.h>
#include <asm/asmmacro.h>
#include <asm/winmacro.h>
#include <asm/psr.h>
#include <asm/stack.h>
#include <asm/leon.h>
#include <version.h>
/* Entry for traps which jump to a programmer-specified trap handler. */
#define TRAPR(H) \
wr %g0, 0xfe0, %psr; \
mov %g0, %tbr; \
ba (H); \
mov %g0, %wim;
#define TRAP(H) \
mov %psr, %l0; \
ba (H); \
nop; nop;
#define TRAPI(ilevel) \
mov ilevel, %l7; \
mov %psr, %l0; \
b _irq_entry; \
mov %wim, %l3
/* Unexcpected trap will halt the processor by forcing it to error state */
#undef BAD_TRAP #undef BAD_TRAP
#define BAD_TRAP ta 0; nop; nop; nop; #define BAD_TRAP ta 0; nop; nop; nop;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment