Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2019-04-03 18:59:36 +0300
committerCorinna Vinschen <corinna@vinschen.de>2019-04-03 19:02:47 +0300
commitc4c614046308a55e4b478c3609f05101c1b8e6b6 (patch)
tree2ee22e347e917b8c799398be1138764a66a0a00c /libgloss/nios2
parent557227dda3ed6ce1c4cf104cc7671d56a141da38 (diff)
Add a dummy interrupt handler to nios2 crt0.s.
The location of the handler at offset 0x20 from the start of memory, immediately after the 32-byte reset vector, matches the expectations of real hardware (e.g., a 3c120 board).
Diffstat (limited to 'libgloss/nios2')
-rw-r--r--libgloss/nios2/crt0.S14
1 files changed, 13 insertions, 1 deletions
diff --git a/libgloss/nios2/crt0.S b/libgloss/nios2/crt0.S
index 77eacb30a..c4dd4c610 100644
--- a/libgloss/nios2/crt0.S
+++ b/libgloss/nios2/crt0.S
@@ -1,6 +1,6 @@
/* crt0.S -- startup code for Nios II QEMU generic-nommu board emulation.
- Copyright (c) 2018 Mentor Graphics
+ Copyright (c) 2018-2019 Mentor Graphics
The authors hereby grant permission to use, copy, modify, distribute,
and license this software and its documentation for any purpose, provided
@@ -81,6 +81,18 @@ __reset:
.size __reset, . - __reset
+/* Provide a stub interrupt handler that waits in a busy loop.
+ The alignment puts it at offset 0x20 from the base of RAM. */
+
+ .align 5
+
+ .globl __interrupt_handler
+ .type __interrupt_handler, @function
+__interrupt_handler:
+0:
+ br 0b
+
+ .size __interrupt_handler, . - __interrupt_handler
/* __start is the ELF entry point. */