tsutsui / netbsd-src

Automatic conversion of the NetBSD src CVS module, use with care. Please submit bugs/changes via https://gnats.netbsd.org
https://www.NetBSD.org
2 stars 0 forks source link

m88k: change syscall trap vector from 128 to 450 as OpenBSD #14

Closed tsutsui closed 8 months ago

tsutsui commented 2 years ago

https://github.com/openbsd/src/commit/6009b050cca2cbc75b27b44229d259af9e5ce3c1

Stop accepting system calls on trap vectors 128 and 129. Userland has not been doing this since almost 1.5 years and there has been the 64-bit time_t bump in between, so no old binary should remain.

https://github.com/openbsd/src/commit/377c1f0e23853ae926023ea25785689395a7539b

The kernel sources mention that the system call entry point is trap #450; the fact that #128 and #129 may also be used for this purpose was never documented, so there is no reason to have libc use #128. Switch to #450 for consistency.

https://github.com/openbsd/src/commit/be09dde9e7741d1ed83fd6056f21a8381c428db5

Doh, traps 128 and 129 need to point to sigsys, not unknown_vector.

This breaks kernel and userland ABI compatibility but NetBSD/luna88k doesn't have working binaries we should consider about compatibility :-)