Re: [PATCH, repost] Add a dummy interrupt handler to nios2 crt0.s.
Corinna Vinschen <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
On Apr 3 09:59, Sandra Loosemore wrote: > 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). > --- > libgloss/nios2/crt0.S | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/libgloss/nios2/crt0.S b/libgloss/nios2/crt0.S > index 77eacb3..c4dd4c6 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. */ > > -- > 2.8.1 Pushed. Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyk2WgACgkQ9TYGna5E T6CoTxAAj3hgnq0j+0li+dqI10XeDOUUtYnxwIAgiW2kVUw7F+E1PozSkwcFIBTY NZLOiqNiCF44c0zBx+XH3yjvy5Qv/aJ81VnMwGnZfNYJvmwSCBLsWT1c/3bnUri4 r5AKnS3W9AssEJ6B7JbvM4Pz7+7JSe5Zrc89eyUKfSwh2mYoWf3WxOhEc77M62Pm tUtJodEtEps7V6vHpfVIjV8eR3dUKLUZW4TvZFTtUx0EcGHC8FdKSPBKQLjesww3 tBflPfXn0Gx8kqL+dPdtRL6L4z0E9TkFSohViJ7G90OMaUkZ1OwtKXmdkn26n5oM /X/7mMHYYf96gw64XuehrElJmXRlFflPWSsWyJDFy3GKKe/at6FiJ2hESKENuKz3 ZwxOAtVL648V9IfjbPVh1Q8/ICEMWpS0XS3DrzeCKhjVEupYzDsqLoHsE4KtOyHG eGfEIw4YYulXy+IjJxeyT017mlnizeYJ5PnC7veoN0wSPp3PzeUyBpfrQLsWDhIL owSU9x90eqLhwUu9PP3IpyvQ4cqIIz2pp4OLQRs73CD3D+h/r8dVL8X6yM+PeKfi jo1LzrD/h3uZQjCCEkHR63W8BtaxX41mvHExeUhnGzrTaw/Zn+IcYhw9EQia1rsT W+cyFWSB8gxfa0b13ypYheMp+tGhnKMO8c6S0exukVYHBZtaKKw= =6140 -----END PGP SIGNATURE-----