History

OpenBSD: arm fix

Disable warning softfloat. OpenBSD works fine. save/restore s0-s15 during memcpy call for structs update configure script. Works now on raspberry pi/All BSD Add eabi_mem.. functions in armeabi.c for OpenBSD Fix fp register in tccrun.c for OpenBSD

herman ten brugge committed 5 years ago

Commit 6b614c41 parent debe8d04 files · +46 −4Browse files

Showing the changes to lib (1 of 4 files). Show all

Unified · Split

lib/armeabi.c+36−0
@@ -499,3 +499,39 @@ void __aeabi_uidivmod(unsigned num, unsigned den) · 498 unmodified lines
499499 {
500500 uidiv_t_return(aeabi_uidivmod(num, den));
501501 }
502+
503+/* Some targets do not have all eabi calls (OpenBSD) */
504+typedef __SIZE_TYPE__ size_t;
505+extern void *memcpy(void *dest, const void *src, size_t n);
506+extern void *memmove(void *dest, const void *src, size_t n);
507+extern void *memset(void *s, int c, size_t n);
508+
509+void *
510+__aeabi_memcpy (void *dest, const void *src, size_t n)
511+{
512+ return memcpy (dest, src, n);
513+}
514+
515+void *
516+__aeabi_memmove (void *dest, const void *src, size_t n)
517+{
518+ return memmove (dest, src, n);
519+}
520+
521+void *
522+__aeabi_memmove4 (void *dest, const void *src, size_t n)
523+{
524+ return memmove (dest, src, n);
525+}
526+
527+void *
528+__aeabi_memmove8 (void *dest, const void *src, size_t n)
529+{
530+ return memmove (dest, src, n);
531+}
532+
533+void *
534+__aeabi_memset (void *s, size_t n, int c)
535+{
536+ return memset (s, c, n);
537+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t