Fixed some obvious regressions in AVR port.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14163 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-04-10 13:29:14 +00:00
parent af46126fa6
commit 923c98a2a1
1 changed files with 10 additions and 5 deletions

View File

@ -82,7 +82,12 @@ extern bool __avr_in_isr;
/** /**
* @brief Name of the implemented architecture. * @brief Name of the implemented architecture.
*/ */
#define PORT_ARCHITECTURE_NAME "MegaAVR" #define PORT_ARCHITECTURE_NAME "AVR"
/**
* @brief Name of the architecture variant.
*/
#define PORT_CORE_VARIANT_NAME "MegaAVR"
/** /**
* @brief Compiler name and version. * @brief Compiler name and version.
@ -318,10 +323,10 @@ struct port_context {
*/ */
#define PORT_IRQ_EPILOGUE() { \ #define PORT_IRQ_EPILOGUE() { \
__avr_in_isr = false; \ __avr_in_isr = false; \
_dbg_check_lock(); \ __dbg_check_lock(); \
if (chSchIsPreemptionRequired()) \ if (chSchIsPreemptionRequired()) \
chSchDoReschedule(); \ chSchDoPreemption(); \
_dbg_check_unlock(); \ __dbg_check_unlock(); \
} }
/** /**
@ -358,7 +363,7 @@ struct port_context {
* @brief Port-related initialization code. * @brief Port-related initialization code.
* @note This function is empty in this port. * @note This function is empty in this port.
*/ */
#define port_init() { \ #define port_init(oip) { \
__avr_in_isr = true; \ __avr_in_isr = true; \
} }