68000: Library fixes
authorAlan Cox <alan@linux.intel.com>
Tue, 18 Oct 2016 22:02:06 +0000 (23:02 +0100)
committerAlan Cox <alan@linux.intel.com>
Tue, 18 Oct 2016 22:02:06 +0000 (23:02 +0100)
Library/include/setjmp.h
Library/libs/Makefile.68000

index 5eb71b0..c3c2736 100644 (file)
        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
index bff4469..82e5a59 100644 (file)
@@ -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