mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
cpu/avr8_common: supports CPUs with missing CALL and JMP instructions
This commit is contained in:
parent
996ff9ba25
commit
b94cd39339
@ -1,6 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen
|
||||
* 2021 Gerson Fernando Budke
|
||||
* 2023 Hugues Larrive
|
||||
*
|
||||
* This file is subject to the terms and conditions of the GNU Lesser
|
||||
* General Public License v2.1. See the file LICENSE in the top level
|
||||
@ -18,6 +19,7 @@
|
||||
* @author Josua Arndt <jarndt@ias.rwth-aachen.de>
|
||||
* @author Steffen Robertz <steffen.robertz@rwth-aachen.de>
|
||||
* @author Gerson Fernando Budke <nandojve@gmail.com>
|
||||
* @author Hugues Larrive <hugues.larrive@pm.me>
|
||||
* @}
|
||||
*/
|
||||
|
||||
@ -57,12 +59,20 @@ void init8_ovr(void) __attribute__((section(".init8")));
|
||||
|
||||
__attribute__((used, naked)) void init7_ovr(void)
|
||||
{
|
||||
#if (FLASHEND <= 0x1FFF)
|
||||
__asm__ ("rjmp reset_handler");
|
||||
#else
|
||||
__asm__ ("call reset_handler");
|
||||
#endif
|
||||
}
|
||||
|
||||
__attribute__((used, naked)) void init8_ovr(void)
|
||||
{
|
||||
#if (FLASHEND <= 0x1FFF)
|
||||
__asm__ ("rjmp exit");
|
||||
#else
|
||||
__asm__ ("jmp exit");
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user