From 55ac35e06de8fe9bb1590b720ca21b1b29162b9c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Tue, 18 Oct 2016 23:02:06 +0100 Subject: [PATCH] 68000: Library fixes --- Library/include/setjmp.h | 6 ++++++ Library/libs/Makefile.68000 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Library/include/setjmp.h b/Library/include/setjmp.h index 5eb71b03..c3c2736f 100644 --- a/Library/include/setjmp.h +++ b/Library/include/setjmp.h @@ -29,6 +29,12 @@ extern int setjmp(jmp_buf __env); __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val); +#elif defined(__mc68000__) + + typedef uint32_t jmp_buf[12]; + extern int setjmp(jmp_buf __env); + __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val); + #else #error jmp_buf definition not set for this architecture #endif diff --git a/Library/libs/Makefile.68000 b/Library/libs/Makefile.68000 index bff44693..82e5a595 100644 --- a/Library/libs/Makefile.68000 +++ b/Library/libs/Makefile.68000 @@ -3,7 +3,7 @@ ASM = m68k-linux-gnu-as AR = m68k-linux-gnu-ar PLATFORM = 68000 export PLATFORM -CC_OPT = -m68000 -fno-strict-aliasing -fomit-frame-pointer -fno-builtin -Wall -m68000 -c -Os -I../include -I../include/68000 -I../include/68000/fixed +CC_OPT = -fno-strict-aliasing -fomit-frame-pointer -fno-builtin -Wall -m68000 -c -Os -I../include -I../include/68000 -I../include/68000/fixed ASM_OPT = -o # copied in from kernel tree KRN_HEADERS = userstructs.h drivewire.h -- 2.34.1