pdp11: setjmp structure
authorAlan Cox <alan@linux.intel.com>
Sun, 18 Feb 2018 14:03:35 +0000 (14:03 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 18 Feb 2018 14:03:35 +0000 (14:03 +0000)
Library/include/setjmp.h

index c3c2736..79e694f 100644 (file)
        extern int setjmp(jmp_buf __env);
        __attribute__((__noreturn__)) void longjmp (jmp_buf env, int val);
 
+#elif defined(__pdp11__)
+
+       typedef uint16_t jmp_buf[5];
+       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