mirror of
https://github.com/ivoszbg/uniLoader.git
synced 2026-01-19 15:40:08 +00:00
The framebuffer scaling code was not tested on armv7 due to no current platforms making use of simplefb. Turns out the compiler wants a set of aeabi helpers for divisions, not present due to the bare metal nature of the bootloader. Satisfy this with empty stubs.
34 lines
734 B
C
34 lines
734 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
/*
|
|
* Runtime compiler stubs
|
|
* Copyright (c) 2025, Ivaylo Ivanov <ivo.ivanov.ivanov1@gmail.com>
|
|
*/
|
|
|
|
/* make sure these are not inlined and are visible to the linker */
|
|
__attribute__((used, noinline))
|
|
int raise(int sig) {
|
|
(void)sig;
|
|
while(1);
|
|
return 0;
|
|
}
|
|
|
|
__attribute__((used, noinline))
|
|
void __aeabi_unwind_cpp_pr0(void) {
|
|
/* C++ exception unwinding stub - not needed */
|
|
}
|
|
|
|
__attribute__((used, noinline))
|
|
void __aeabi_unwind_cpp_pr1(void) {
|
|
/* C++ exception unwinding stub - not needed */
|
|
}
|
|
|
|
__attribute__((used, noinline))
|
|
int __aeabi_idiv0(int return_value) {
|
|
return 0;
|
|
}
|
|
|
|
__attribute__((used, noinline))
|
|
long long __aeabi_ldiv0(long long return_value) {
|
|
return 0;
|
|
}
|