From c78ba46b856e2bd1eed93d6717846cd8b7ca8cad Mon Sep 17 00:00:00 2001 From: Rodrigo Alfonso Date: Tue, 27 Aug 2024 09:00:39 -0300 Subject: [PATCH] Adding missing always_inline to _MultiBoot (from gba-hpp), updating docs --- .gitignore | 1 + lib/LinkUniversal.hpp | 2 +- lib/LinkWireless.hpp | 2 +- lib/_link_common.hpp | 5 +++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 567aff5..4f97c25 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ examples/multiboot *.sa2 *.sa3 *.sa4 +*.zip diff --git a/lib/LinkUniversal.hpp b/lib/LinkUniversal.hpp index 267bdd2..c19326f 100644 --- a/lib/LinkUniversal.hpp +++ b/lib/LinkUniversal.hpp @@ -693,7 +693,7 @@ inline void LINK_UNIVERSAL_ISR_SERIAL() { } /** - * @brief TIMER interrupt handler used for sending. + * @brief TIMER interrupt handler. */ inline void LINK_UNIVERSAL_ISR_TIMER() { linkUniversal->_onTimer(); diff --git a/lib/LinkWireless.hpp b/lib/LinkWireless.hpp index 23feb1f..5712cb9 100644 --- a/lib/LinkWireless.hpp +++ b/lib/LinkWireless.hpp @@ -1938,7 +1938,7 @@ inline void LINK_WIRELESS_ISR_SERIAL() { } /** - * @brief TIMER interrupt handler used for sending. + * @brief TIMER interrupt handler. */ inline void LINK_WIRELESS_ISR_TIMER() { linkWireless->_onTimer(); diff --git a/lib/_link_common.hpp b/lib/_link_common.hpp index 77a5681..c689ea3 100644 --- a/lib/_link_common.hpp +++ b/lib/_link_common.hpp @@ -127,8 +127,9 @@ static inline __attribute__((always_inline)) void _IntrWait( : "+r"(r0), "+r"(r1)::"r3"); } -static inline auto _MultiBoot(const _MultiBootParam* param, - u32 mbmode) noexcept { +static inline __attribute__((always_inline)) auto _MultiBoot( + const _MultiBootParam* param, + u32 mbmode) noexcept { register union { const _MultiBootParam* ptr; int res;