@zigc/lib 0.17.0-dev.607 → 0.17.0-dev.644

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (726) hide show
  1. package/compiler/Maker/PkgConfig.zig +15 -7
  2. package/compiler/Maker/Step/Compile.zig +7 -9
  3. package/compiler/Maker/Step/Fmt.zig +1 -1
  4. package/compiler/Maker/Step/Run.zig +59 -41
  5. package/compiler/Maker/Step/TranslateC.zig +6 -5
  6. package/compiler/Maker/Step.zig +47 -16
  7. package/compiler/Maker.zig +54 -44
  8. package/libc/include/aarch64-netbsd-none/aarch64/armreg.h +259 -22
  9. package/libc/include/aarch64-netbsd-none/aarch64/byte_swap.h +3 -2
  10. package/libc/include/aarch64-netbsd-none/aarch64/cpu.h +26 -1
  11. package/libc/include/aarch64-netbsd-none/aarch64/lwp_private.h +3 -0
  12. package/libc/include/aarch64-netbsd-none/aarch64/pmap.h +7 -33
  13. package/libc/include/aarch64-netbsd-none/aarch64/sljit_machdep.h +1 -1
  14. package/libc/include/aarch64-netbsd-none/aarch64/vmparam.h +4 -4
  15. package/libc/include/aarch64-netbsd-none/machine/armreg.h +259 -22
  16. package/libc/include/aarch64-netbsd-none/machine/byte_swap.h +3 -2
  17. package/libc/include/aarch64-netbsd-none/machine/cpu.h +26 -1
  18. package/libc/include/aarch64-netbsd-none/machine/lwp_private.h +3 -0
  19. package/libc/include/aarch64-netbsd-none/machine/pmap.h +7 -33
  20. package/libc/include/aarch64-netbsd-none/machine/sljit_machdep.h +1 -1
  21. package/libc/include/aarch64-netbsd-none/machine/vmparam.h +4 -4
  22. package/libc/include/arm-netbsd-eabi/float.h +2 -1
  23. package/libc/include/arm-netbsd-eabi/machine/asm.h +48 -19
  24. package/libc/include/arm-netbsd-eabi/machine/byte_swap.h +121 -0
  25. package/libc/include/arm-netbsd-eabi/machine/cpu.h +1 -3
  26. package/libc/include/arm-netbsd-eabi/machine/float.h +2 -1
  27. package/libc/include/arm-netbsd-eabi/machine/lwp_private.h +81 -0
  28. package/libc/include/arm-netbsd-eabi/machine/mcontext.h +5 -51
  29. package/libc/include/arm-netbsd-eabi/machine/mutex.h +1 -1
  30. package/libc/include/arm-netbsd-eabi/machine/proc.h +2 -2
  31. package/libc/include/arm-netbsd-eabi/machine/profile.h +28 -96
  32. package/libc/include/arm-netbsd-eabi/machine/setjmp.h +7 -6
  33. package/libc/include/arm-netbsd-eabi/machine/sysarch.h +85 -0
  34. package/libc/include/generic-netbsd/altq/altq.h +2 -2
  35. package/libc/include/generic-netbsd/altq/altq_afmap.h +2 -1
  36. package/libc/include/generic-netbsd/altq/altq_classq.h +8 -6
  37. package/libc/include/generic-netbsd/altq/altq_jobs.h +37 -37
  38. package/libc/include/generic-netbsd/altq/altq_rmclass.h +8 -8
  39. package/libc/include/generic-netbsd/altq/altq_var.h +2 -2
  40. package/libc/include/generic-netbsd/arm/arm32/pmap.h +8 -32
  41. package/libc/include/generic-netbsd/arm/arm32/vmparam.h +5 -5
  42. package/libc/include/generic-netbsd/arm/asm.h +48 -19
  43. package/libc/include/generic-netbsd/arm/byte_swap.h +2 -2
  44. package/libc/include/generic-netbsd/arm/cpu.h +1 -3
  45. package/libc/include/generic-netbsd/arm/cputypes.h +12 -1
  46. package/libc/include/generic-netbsd/arm/float.h +2 -1
  47. package/libc/include/generic-netbsd/arm/lwp_private.h +81 -0
  48. package/libc/include/generic-netbsd/arm/mcontext.h +5 -51
  49. package/libc/include/generic-netbsd/arm/mutex.h +1 -1
  50. package/libc/include/generic-netbsd/arm/proc.h +2 -2
  51. package/libc/include/generic-netbsd/arm/profile.h +28 -96
  52. package/libc/include/generic-netbsd/arm/setjmp.h +7 -6
  53. package/libc/include/generic-netbsd/arpa/nameser.h +3 -3
  54. package/libc/include/generic-netbsd/arpa/nameser_compat.h +3 -3
  55. package/libc/include/generic-netbsd/assert.h +12 -22
  56. package/libc/include/generic-netbsd/bitstring.h +5 -5
  57. package/libc/include/generic-netbsd/cdbw.h +2 -2
  58. package/libc/include/generic-netbsd/crypto/cryptodev.h +99 -92
  59. package/libc/include/generic-netbsd/dev/i2c/emcfaninfo.h +234 -0
  60. package/libc/include/generic-netbsd/dev/i2c/emcfanreg.h +127 -0
  61. package/libc/include/generic-netbsd/dev/i2o/i2o.h +3 -366
  62. package/libc/include/generic-netbsd/dev/ic/hd44780var.h +3 -1
  63. package/libc/include/generic-netbsd/dev/ic/scmdreg.h +2 -2
  64. package/libc/include/generic-netbsd/dev/ic/stireg.h +777 -0
  65. package/libc/include/generic-netbsd/dev/ic/summitreg.h +214 -0
  66. package/libc/include/generic-netbsd/dev/iscsi/iscsi.h +1 -1
  67. package/libc/include/generic-netbsd/dev/pci/amrreg.h +2 -2
  68. package/libc/include/generic-netbsd/dev/pci/mlyreg.h +2 -2
  69. package/libc/include/generic-netbsd/dev/pci/pcidevs.h +177 -22
  70. package/libc/include/generic-netbsd/dev/pci/pcidevs_data.h +14971 -14588
  71. package/libc/include/generic-netbsd/dev/pci/pcireg.h +14 -14
  72. package/libc/include/generic-netbsd/dev/pckbc/pckbdreg.h +2 -1
  73. package/libc/include/generic-netbsd/dev/pcmcia/if_rayreg.h +2 -2
  74. package/libc/include/generic-netbsd/dev/raidframe/raidframeio.h +1 -1
  75. package/libc/include/generic-netbsd/dev/scsipi/scsi_disk.h +42 -7
  76. package/libc/include/generic-netbsd/dev/scsipi/scsi_spc.h +2 -2
  77. package/libc/include/generic-netbsd/dev/scsipi/scsipi_all.h +83 -2
  78. package/libc/include/generic-netbsd/dev/scsipi/scsipiconf.h +3 -1
  79. package/libc/include/generic-netbsd/dev/tc/sfbreg.h +3 -3
  80. package/libc/include/generic-netbsd/dev/tc/sticio.h +2 -2
  81. package/libc/include/generic-netbsd/dev/usb/umcpmio_hid_reports.h +499 -0
  82. package/libc/include/generic-netbsd/dev/usb/umcpmio_io.h +45 -0
  83. package/libc/include/generic-netbsd/dev/usb/usb.h +44 -6
  84. package/libc/include/generic-netbsd/dev/vndvar.h +2 -2
  85. package/libc/include/generic-netbsd/dev/wscons/wsconsio.h +19 -1
  86. package/libc/include/generic-netbsd/dev/wscons/wsksymdef.h +2 -2
  87. package/libc/include/generic-netbsd/dirent.h +1 -1
  88. package/libc/include/generic-netbsd/dlfcn.h +4 -2
  89. package/libc/include/generic-netbsd/elf.h +32 -20
  90. package/libc/include/generic-netbsd/elfdefinitions.h +1 -1
  91. package/libc/include/generic-netbsd/evbarm/intr.h +1 -1
  92. package/libc/include/generic-netbsd/evbmips/lwp_private.h +3 -0
  93. package/libc/include/generic-netbsd/execinfo.h +4 -2
  94. package/libc/include/generic-netbsd/fcntl.h +26 -2
  95. package/libc/include/generic-netbsd/float.h +58 -2
  96. package/libc/include/generic-netbsd/fmtmsg.h +2 -2
  97. package/libc/include/generic-netbsd/fs/hfs/libhfs.h +1 -1
  98. package/libc/include/generic-netbsd/fs/nilfs/nilfs_fs.h +2 -2
  99. package/libc/include/generic-netbsd/gelf.h +2 -2
  100. package/libc/include/generic-netbsd/i386/asm.h +12 -4
  101. package/libc/include/generic-netbsd/i386/byte_swap.h +2 -2
  102. package/libc/include/generic-netbsd/i386/cpu.h +15 -4
  103. package/libc/include/generic-netbsd/i386/elf_machdep.h +2 -1
  104. package/libc/include/generic-netbsd/i386/lwp_private.h +3 -0
  105. package/libc/include/generic-netbsd/i386/mcontext.h +6 -24
  106. package/libc/include/generic-netbsd/i386/param.h +9 -1
  107. package/libc/include/generic-netbsd/i386/pcb.h +6 -2
  108. package/libc/include/generic-netbsd/i386/ptrace.h +2 -2
  109. package/libc/include/generic-netbsd/i386/types.h +2 -1
  110. package/libc/include/generic-netbsd/i386/wchar_limits.h +1 -1
  111. package/libc/include/generic-netbsd/isofs/cd9660/cd9660_extern.h +6 -1
  112. package/libc/include/generic-netbsd/isofs/cd9660/cd9660_mount.h +7 -1
  113. package/libc/include/generic-netbsd/langinfo.h +2 -1
  114. package/libc/include/generic-netbsd/lauxlib.h +1 -1
  115. package/libc/include/generic-netbsd/libelf.h +6 -15
  116. package/libc/include/generic-netbsd/limits.h +1 -1
  117. package/libc/include/generic-netbsd/lua.h +1 -1
  118. package/libc/include/generic-netbsd/luaconf.h +1 -1
  119. package/libc/include/generic-netbsd/lualib.h +1 -1
  120. package/libc/include/generic-netbsd/lwp.h +1 -1
  121. package/libc/include/generic-netbsd/machine/ansi.h +2 -2
  122. package/libc/include/generic-netbsd/machine/aout_machdep.h +39 -2
  123. package/libc/include/generic-netbsd/machine/arm32/pmap.h +8 -32
  124. package/libc/include/generic-netbsd/machine/arm32/vmparam.h +5 -5
  125. package/libc/include/generic-netbsd/machine/asm.h +271 -2
  126. package/libc/include/generic-netbsd/machine/bswap.h +9 -1
  127. package/libc/include/generic-netbsd/machine/byte_swap.h +42 -64
  128. package/libc/include/generic-netbsd/machine/cdefs.h +7 -2
  129. package/libc/include/generic-netbsd/machine/cpu.h +207 -30
  130. package/libc/include/generic-netbsd/machine/cputypes.h +12 -1
  131. package/libc/include/generic-netbsd/machine/disklabel.h +41 -42
  132. package/libc/include/generic-netbsd/machine/elf_machdep.h +143 -2
  133. package/libc/include/generic-netbsd/machine/endian.h +1 -1
  134. package/libc/include/generic-netbsd/machine/fenv.h +35 -2
  135. package/libc/include/generic-netbsd/machine/float.h +58 -2
  136. package/libc/include/generic-netbsd/machine/frame.h +129 -2
  137. package/libc/include/generic-netbsd/machine/ieee.h +3 -2
  138. package/libc/include/generic-netbsd/machine/ieeefp.h +43 -2
  139. package/libc/include/generic-netbsd/machine/int_const.h +32 -2
  140. package/libc/include/generic-netbsd/machine/int_fmtio.h +380 -2
  141. package/libc/include/generic-netbsd/machine/int_limits.h +2 -2
  142. package/libc/include/generic-netbsd/machine/int_mwgwtypes.h +2 -2
  143. package/libc/include/generic-netbsd/machine/int_types.h +2 -2
  144. package/libc/include/generic-netbsd/machine/kcore.h +39 -2
  145. package/libc/include/generic-netbsd/machine/limits.h +2 -2
  146. package/libc/include/generic-netbsd/machine/lock.h +2 -2
  147. package/libc/include/generic-netbsd/machine/lwp_private.h +83 -0
  148. package/libc/include/generic-netbsd/machine/math.h +3 -2
  149. package/libc/include/generic-netbsd/machine/mcontext.h +149 -2
  150. package/libc/include/generic-netbsd/machine/mutex.h +127 -2
  151. package/libc/include/generic-netbsd/machine/param.h +90 -23
  152. package/libc/include/generic-netbsd/machine/pcb.h +54 -2
  153. package/libc/include/generic-netbsd/machine/pmap.h +262 -2
  154. package/libc/include/generic-netbsd/machine/proc.h +75 -2
  155. package/libc/include/generic-netbsd/machine/profile.h +116 -2
  156. package/libc/include/generic-netbsd/machine/psl.h +2 -2
  157. package/libc/include/generic-netbsd/machine/pte.h +346 -2
  158. package/libc/include/generic-netbsd/machine/ptrace.h +62 -2
  159. package/libc/include/generic-netbsd/machine/reg.h +124 -2
  160. package/libc/include/generic-netbsd/machine/reloc.h +2 -2
  161. package/libc/include/generic-netbsd/machine/setjmp.h +69 -2
  162. package/libc/include/generic-netbsd/machine/signal.h +39 -2
  163. package/libc/include/generic-netbsd/machine/sljit_machdep.h +1 -1
  164. package/libc/include/generic-netbsd/machine/sysarch.h +2 -84
  165. package/libc/include/generic-netbsd/machine/sysreg.h +354 -0
  166. package/libc/include/generic-netbsd/machine/trap.h +2 -2
  167. package/libc/include/generic-netbsd/machine/types.h +118 -6
  168. package/libc/include/generic-netbsd/machine/vmparam.h +235 -2
  169. package/libc/include/generic-netbsd/machine/wchar_limits.h +2 -2
  170. package/libc/include/generic-netbsd/math.h +19 -6
  171. package/libc/include/generic-netbsd/md2.h +6 -3
  172. package/libc/include/generic-netbsd/mips/asm.h +69 -17
  173. package/libc/include/generic-netbsd/mips/bswap.h +3 -1
  174. package/libc/include/generic-netbsd/mips/cpu.h +7 -7
  175. package/libc/include/generic-netbsd/mips/elf_machdep.h +2 -1
  176. package/libc/include/generic-netbsd/mips/fenv.h +2 -1
  177. package/libc/include/generic-netbsd/mips/float.h +3 -2
  178. package/libc/include/generic-netbsd/mips/frame.h +3 -2
  179. package/libc/include/generic-netbsd/mips/limits.h +4 -13
  180. package/libc/include/generic-netbsd/mips/lwp_private.h +87 -0
  181. package/libc/include/generic-netbsd/mips/mcontext.h +2 -53
  182. package/libc/include/generic-netbsd/mips/mips3_pte.h +2 -2
  183. package/libc/include/generic-netbsd/mips/mips_param.h +16 -2
  184. package/libc/include/generic-netbsd/mips/mutex.h +1 -1
  185. package/libc/include/generic-netbsd/mips/types.h +1 -1
  186. package/libc/include/generic-netbsd/mips/vmparam.h +1 -1
  187. package/libc/include/generic-netbsd/miscfs/kernfs/kernfs.h +2 -2
  188. package/libc/include/generic-netbsd/miscfs/procfs/procfs.h +33 -2
  189. package/libc/include/generic-netbsd/miscfs/specfs/specdev.h +1 -2
  190. package/libc/include/generic-netbsd/monetary.h +2 -1
  191. package/libc/include/generic-netbsd/net/agr/if_agrioctl.h +2 -2
  192. package/libc/include/generic-netbsd/net/bpf.h +11 -4
  193. package/libc/include/generic-netbsd/net/bpfdesc.h +1 -1
  194. package/libc/include/generic-netbsd/net/dlt.h +222 -48
  195. package/libc/include/generic-netbsd/net/if.h +20 -5
  196. package/libc/include/generic-netbsd/net/if_bridgevar.h +2 -3
  197. package/libc/include/generic-netbsd/net/if_ether.h +4 -3
  198. package/libc/include/generic-netbsd/net/if_lagg.h +2 -2
  199. package/libc/include/generic-netbsd/net/if_media.h +2 -2
  200. package/libc/include/generic-netbsd/net/if_ppp.h +1 -3
  201. package/libc/include/generic-netbsd/net/if_stats.h +19 -5
  202. package/libc/include/generic-netbsd/net/net_stats.h +13 -6
  203. package/libc/include/generic-netbsd/net/npf.h +33 -5
  204. package/libc/include/generic-netbsd/net/pfkeyv2.h +1 -1
  205. package/libc/include/generic-netbsd/net/route.h +4 -4
  206. package/libc/include/generic-netbsd/net80211/ieee80211_node.h +3 -2
  207. package/libc/include/generic-netbsd/net80211/ieee80211_var.h +2 -2
  208. package/libc/include/generic-netbsd/netbt/hci.h +3 -3
  209. package/libc/include/generic-netbsd/netdb.h +2 -2
  210. package/libc/include/generic-netbsd/netinet/icmp6.h +6 -2
  211. package/libc/include/generic-netbsd/netinet/in.h +17 -17
  212. package/libc/include/generic-netbsd/netinet/in_var.h +5 -9
  213. package/libc/include/generic-netbsd/netinet/ip_mroute.h +24 -28
  214. package/libc/include/generic-netbsd/netinet/ip_var.h +2 -2
  215. package/libc/include/generic-netbsd/netinet/sctp.h +4 -4
  216. package/libc/include/generic-netbsd/netinet/tcp_var.h +2 -2
  217. package/libc/include/generic-netbsd/netinet/tcp_vtw.h +2 -2
  218. package/libc/include/generic-netbsd/netinet6/in6_var.h +7 -33
  219. package/libc/include/generic-netbsd/netinet6/ip6_var.h +2 -2
  220. package/libc/include/generic-netbsd/nfs/krpc.h +9 -4
  221. package/libc/include/generic-netbsd/nfs/nfs.h +5 -3
  222. package/libc/include/generic-netbsd/nfs/nfsdiskless.h +37 -20
  223. package/libc/include/generic-netbsd/nfs/nfsm_subs.h +4 -7
  224. package/libc/include/generic-netbsd/nfs/nfsmount.h +3 -4
  225. package/libc/include/generic-netbsd/nfs/nfsnode.h +9 -6
  226. package/libc/include/generic-netbsd/nfs/nfsproto.h +5 -2
  227. package/libc/include/generic-netbsd/nfs/nfsrtt.h +8 -4
  228. package/libc/include/generic-netbsd/nfs/nfsrvcache.h +9 -3
  229. package/libc/include/generic-netbsd/nfs/rpcv2.h +5 -3
  230. package/libc/include/generic-netbsd/nfs/xdr_subs.h +6 -5
  231. package/libc/include/generic-netbsd/nl_types.h +3 -1
  232. package/libc/include/generic-netbsd/ntfs/ntfs_inode.h +2 -2
  233. package/libc/include/generic-netbsd/poll.h +8 -2
  234. package/libc/include/generic-netbsd/prop/prop_object.h +48 -3
  235. package/libc/include/generic-netbsd/protocols/talkd.h +2 -2
  236. package/libc/include/generic-netbsd/pthread.h +51 -12
  237. package/libc/include/generic-netbsd/regex.h +2 -1
  238. package/libc/include/generic-netbsd/riscv/ansi.h +3 -0
  239. package/libc/include/generic-netbsd/riscv/aout_machdep.h +40 -0
  240. package/libc/include/generic-netbsd/riscv/asm.h +272 -0
  241. package/libc/include/generic-netbsd/riscv/bswap.h +11 -0
  242. package/libc/include/generic-netbsd/riscv/byte_swap.h +99 -0
  243. package/libc/include/generic-netbsd/riscv/cdefs.h +8 -0
  244. package/libc/include/generic-netbsd/riscv/cpu.h +242 -0
  245. package/libc/include/generic-netbsd/riscv/disklabel.h +68 -0
  246. package/libc/include/generic-netbsd/riscv/elf_machdep.h +144 -0
  247. package/libc/include/generic-netbsd/riscv/endian.h +3 -0
  248. package/libc/include/generic-netbsd/riscv/endian_machdep.h +3 -0
  249. package/libc/include/generic-netbsd/riscv/fenv.h +36 -0
  250. package/libc/include/generic-netbsd/riscv/float.h +59 -0
  251. package/libc/include/generic-netbsd/riscv/ieee.h +4 -0
  252. package/libc/include/generic-netbsd/riscv/ieeefp.h +44 -0
  253. package/libc/include/generic-netbsd/riscv/int_const.h +33 -0
  254. package/libc/include/generic-netbsd/riscv/int_fmtio.h +381 -0
  255. package/libc/include/generic-netbsd/riscv/int_limits.h +3 -0
  256. package/libc/include/generic-netbsd/riscv/int_mwgwtypes.h +3 -0
  257. package/libc/include/generic-netbsd/riscv/int_types.h +3 -0
  258. package/libc/include/generic-netbsd/riscv/kcore.h +40 -0
  259. package/libc/include/generic-netbsd/riscv/limits.h +3 -0
  260. package/libc/include/generic-netbsd/riscv/lock.h +3 -0
  261. package/libc/include/generic-netbsd/riscv/lwp_private.h +83 -0
  262. package/libc/include/generic-netbsd/riscv/math.h +4 -0
  263. package/libc/include/generic-netbsd/riscv/mcontext.h +150 -0
  264. package/libc/include/generic-netbsd/riscv/mutex.h +128 -0
  265. package/libc/include/generic-netbsd/riscv/param.h +110 -0
  266. package/libc/include/generic-netbsd/riscv/pcb.h +55 -0
  267. package/libc/include/generic-netbsd/riscv/pmap.h +263 -0
  268. package/libc/include/generic-netbsd/riscv/proc.h +76 -0
  269. package/libc/include/generic-netbsd/riscv/profile.h +117 -0
  270. package/libc/include/generic-netbsd/riscv/pte.h +347 -0
  271. package/libc/include/generic-netbsd/riscv/ptrace.h +63 -0
  272. package/libc/include/generic-netbsd/riscv/reg.h +125 -0
  273. package/libc/include/generic-netbsd/riscv/rwlock.h +1 -0
  274. package/libc/include/generic-netbsd/riscv/setjmp.h +70 -0
  275. package/libc/include/generic-netbsd/riscv/signal.h +40 -0
  276. package/libc/include/generic-netbsd/riscv/sysarch.h +3 -0
  277. package/libc/include/generic-netbsd/riscv/sysreg.h +354 -0
  278. package/libc/include/generic-netbsd/riscv/types.h +123 -0
  279. package/libc/include/generic-netbsd/riscv/vmparam.h +236 -0
  280. package/libc/include/generic-netbsd/riscv/wchar_limits.h +13 -0
  281. package/libc/include/generic-netbsd/rmd160.h +3 -3
  282. package/libc/include/generic-netbsd/rpc/xdr.h +3 -3
  283. package/libc/include/generic-netbsd/rpcsvc/yp_prot.h +3 -2
  284. package/libc/include/generic-netbsd/rump/rump_namei.h +2 -2
  285. package/libc/include/generic-netbsd/rump/rump_syscalls.h +4 -4
  286. package/libc/include/generic-netbsd/rump/rumpuser.h +6 -1
  287. package/libc/include/generic-netbsd/rump/rumpvnode_if.h +2 -2
  288. package/libc/include/generic-netbsd/sha1.h +3 -3
  289. package/libc/include/generic-netbsd/sha2.h +8 -1
  290. package/libc/include/generic-netbsd/signal.h +4 -4
  291. package/libc/include/generic-netbsd/sparc/asm.h +10 -1
  292. package/libc/include/generic-netbsd/sparc/bswap.h +9 -1
  293. package/libc/include/generic-netbsd/sparc/cgtworeg.h +2 -2
  294. package/libc/include/generic-netbsd/sparc/cpu.h +1 -1
  295. package/libc/include/generic-netbsd/sparc/float.h +3 -1
  296. package/libc/include/generic-netbsd/sparc/limits.h +4 -6
  297. package/libc/include/generic-netbsd/sparc/lwp_private.h +51 -0
  298. package/libc/include/generic-netbsd/sparc/mcontext.h +4 -22
  299. package/libc/include/generic-netbsd/sparc/mutex.h +1 -1
  300. package/libc/include/generic-netbsd/sparc/param.h +4 -2
  301. package/libc/include/generic-netbsd/sparc/pmap.h +2 -2
  302. package/libc/include/generic-netbsd/sparc/psl.h +6 -3
  303. package/libc/include/generic-netbsd/sparc/types.h +2 -2
  304. package/libc/include/generic-netbsd/sparc64/bswap.h +9 -1
  305. package/libc/include/generic-netbsd/sparc64/cpu.h +2 -2
  306. package/libc/include/generic-netbsd/sparc64/ctlreg.h +8 -7
  307. package/libc/include/generic-netbsd/sparc64/intr.h +1 -1
  308. package/libc/include/generic-netbsd/sparc64/lwp_private.h +3 -0
  309. package/libc/include/generic-netbsd/sparc64/mcontext.h +4 -4
  310. package/libc/include/generic-netbsd/sparc64/mutex.h +1 -1
  311. package/libc/include/generic-netbsd/sparc64/param.h +8 -2
  312. package/libc/include/generic-netbsd/sparc64/psl.h +7 -2
  313. package/libc/include/generic-netbsd/sparc64/pte.h +2 -2
  314. package/libc/include/generic-netbsd/sparc64/vmparam.h +1 -1
  315. package/libc/include/generic-netbsd/ssp/ssp.h +16 -6
  316. package/libc/include/generic-netbsd/stdalign.h +3 -3
  317. package/libc/include/generic-netbsd/stdarg.h +2 -2
  318. package/libc/include/generic-netbsd/stddef.h +90 -12
  319. package/libc/include/generic-netbsd/stdlib.h +11 -2
  320. package/libc/include/generic-netbsd/stdnoreturn.h +2 -2
  321. package/libc/include/generic-netbsd/string.h +66 -39
  322. package/libc/include/generic-netbsd/strings.h +17 -3
  323. package/libc/include/generic-netbsd/sys/atomic.h +10 -5
  324. package/libc/include/generic-netbsd/sys/bitops.h +2 -2
  325. package/libc/include/generic-netbsd/sys/bootblock.h +13 -2
  326. package/libc/include/generic-netbsd/sys/bswap.h +46 -20
  327. package/libc/include/generic-netbsd/sys/buf.h +3 -3
  328. package/libc/include/generic-netbsd/sys/cdefs.h +44 -6
  329. package/libc/include/generic-netbsd/sys/cdefs_aout.h +8 -1
  330. package/libc/include/generic-netbsd/sys/cdefs_elf.h +9 -2
  331. package/libc/include/generic-netbsd/sys/chio.h +2 -2
  332. package/libc/include/generic-netbsd/sys/clock.h +5 -1
  333. package/libc/include/generic-netbsd/sys/common_limits.h +3 -1
  334. package/libc/include/generic-netbsd/sys/condvar.h +1 -1
  335. package/libc/include/generic-netbsd/sys/conf.h +4 -3
  336. package/libc/include/generic-netbsd/sys/container_of.h +75 -0
  337. package/libc/include/generic-netbsd/sys/device.h +20 -13
  338. package/libc/include/generic-netbsd/sys/disk.h +8 -1
  339. package/libc/include/generic-netbsd/sys/disklabel.h +2 -2
  340. package/libc/include/generic-netbsd/sys/disklabel_gpt.h +7 -1
  341. package/libc/include/generic-netbsd/sys/efiio.h +1 -1
  342. package/libc/include/generic-netbsd/sys/elfdefinitions.h +2368 -1591
  343. package/libc/include/generic-netbsd/sys/endian.h +17 -17
  344. package/libc/include/generic-netbsd/sys/evcnt.h +15 -2
  345. package/libc/include/generic-netbsd/sys/event.h +3 -2
  346. package/libc/include/generic-netbsd/sys/exec.h +2 -2
  347. package/libc/include/generic-netbsd/sys/exec_elf.h +32 -20
  348. package/libc/include/generic-netbsd/sys/fcntl.h +26 -2
  349. package/libc/include/generic-netbsd/sys/fd_set.h +3 -3
  350. package/libc/include/generic-netbsd/sys/featuretest.h +24 -6
  351. package/libc/include/generic-netbsd/sys/file.h +18 -6
  352. package/libc/include/generic-netbsd/sys/filedesc.h +8 -4
  353. package/libc/include/generic-netbsd/sys/futex.h +11 -11
  354. package/libc/include/generic-netbsd/sys/ieee754.h +2 -2
  355. package/libc/include/generic-netbsd/sys/ipc.h +2 -2
  356. package/libc/include/generic-netbsd/sys/ipmi.h +4 -2
  357. package/libc/include/generic-netbsd/sys/ksem.h +1 -1
  358. package/libc/include/generic-netbsd/sys/ktrace.h +6 -4
  359. package/libc/include/generic-netbsd/sys/lock.h +2 -2
  360. package/libc/include/generic-netbsd/sys/lua.h +1 -1
  361. package/libc/include/generic-netbsd/sys/lwp.h +25 -92
  362. package/libc/include/generic-netbsd/sys/mbuf.h +15 -13
  363. package/libc/include/generic-netbsd/sys/mman.h +11 -3
  364. package/libc/include/generic-netbsd/sys/mount.h +1 -2
  365. package/libc/include/generic-netbsd/sys/msg.h +3 -3
  366. package/libc/include/generic-netbsd/sys/mutex.h +1 -3
  367. package/libc/include/generic-netbsd/sys/namei.h +32 -17
  368. package/libc/include/generic-netbsd/sys/param.h +11 -8
  369. package/libc/include/generic-netbsd/sys/pipe.h +10 -11
  370. package/libc/include/generic-netbsd/sys/poll.h +8 -2
  371. package/libc/include/generic-netbsd/sys/proc.h +15 -15
  372. package/libc/include/generic-netbsd/sys/ptrace.h +24 -7
  373. package/libc/include/generic-netbsd/sys/ptree.h +2 -1
  374. package/libc/include/generic-netbsd/sys/queue.h +37 -37
  375. package/libc/include/generic-netbsd/sys/rbtree.h +23 -9
  376. package/libc/include/generic-netbsd/sys/resourcevar.h +2 -2
  377. package/libc/include/generic-netbsd/sys/rmd160.h +3 -3
  378. package/libc/include/generic-netbsd/sys/rndio.h +1 -1
  379. package/libc/include/generic-netbsd/sys/rwlock.h +1 -2
  380. package/libc/include/generic-netbsd/sys/sched.h +1 -1
  381. package/libc/include/generic-netbsd/sys/sdt.h +181 -111
  382. package/libc/include/generic-netbsd/sys/sem.h +7 -2
  383. package/libc/include/generic-netbsd/sys/sha1.h +3 -3
  384. package/libc/include/generic-netbsd/sys/sha2.h +8 -1
  385. package/libc/include/generic-netbsd/sys/shm.h +2 -2
  386. package/libc/include/generic-netbsd/sys/siginfo.h +5 -5
  387. package/libc/include/generic-netbsd/sys/signal.h +1 -1
  388. package/libc/include/generic-netbsd/sys/sigtypes.h +4 -4
  389. package/libc/include/generic-netbsd/sys/sleepq.h +14 -27
  390. package/libc/include/generic-netbsd/sys/socket.h +3 -1
  391. package/libc/include/generic-netbsd/sys/socketvar.h +4 -4
  392. package/libc/include/generic-netbsd/sys/stat.h +5 -5
  393. package/libc/include/generic-netbsd/sys/stdalign.h +55 -0
  394. package/libc/include/generic-netbsd/sys/stdarg.h +2 -2
  395. package/libc/include/generic-netbsd/sys/stddef.h +156 -0
  396. package/libc/include/generic-netbsd/sys/swap.h +2 -2
  397. package/libc/include/generic-netbsd/sys/syncobj.h +9 -6
  398. package/libc/include/generic-netbsd/sys/syscall.h +29 -8
  399. package/libc/include/generic-netbsd/sys/syscallargs.h +89 -12
  400. package/libc/include/generic-netbsd/sys/sysctl.h +94 -86
  401. package/libc/include/generic-netbsd/sys/syslimits.h +8 -1
  402. package/libc/include/generic-netbsd/sys/syslog.h +6 -7
  403. package/libc/include/generic-netbsd/sys/time.h +10 -8
  404. package/libc/include/generic-netbsd/sys/tree.h +13 -13
  405. package/libc/include/generic-netbsd/sys/tty.h +2 -2
  406. package/libc/include/generic-netbsd/sys/ttycom.h +7 -1
  407. package/libc/include/generic-netbsd/sys/types.h +1 -1
  408. package/libc/include/generic-netbsd/sys/ucontext.h +46 -49
  409. package/libc/include/generic-netbsd/sys/un.h +12 -4
  410. package/libc/include/generic-netbsd/sys/unistd.h +103 -102
  411. package/libc/include/generic-netbsd/sys/unpcb.h +2 -2
  412. package/libc/include/generic-netbsd/sys/vmmeter.h +1 -39
  413. package/libc/include/generic-netbsd/sys/vnode_if.h +2 -2
  414. package/libc/include/generic-netbsd/sys/vnode_impl.h +6 -3
  415. package/libc/include/generic-netbsd/sys/wapbl_replay.h +2 -2
  416. package/libc/include/generic-netbsd/sys/wchan.h +37 -0
  417. package/libc/include/generic-netbsd/syslog.h +6 -7
  418. package/libc/include/generic-netbsd/time.h +44 -8
  419. package/libc/include/generic-netbsd/tzfile.h +11 -6
  420. package/libc/include/generic-netbsd/uchar.h +1 -1
  421. package/libc/include/generic-netbsd/ucontext.h +2 -1
  422. package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs.h +31 -16
  423. package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs_dir.h +1 -1
  424. package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs_extents.h +5 -5
  425. package/libc/include/generic-netbsd/ufs/ext2fs/ext2fs_extern.h +4 -4
  426. package/libc/include/generic-netbsd/ufs/ffs/ffs_extern.h +1 -1
  427. package/libc/include/generic-netbsd/ufs/ffs/fs.h +3 -3
  428. package/libc/include/generic-netbsd/ufs/ufs/quota2.h +2 -2
  429. package/libc/include/generic-netbsd/unistd.h +11 -5
  430. package/libc/include/generic-netbsd/unwind.h +1 -1
  431. package/libc/include/generic-netbsd/util.h +15 -1
  432. package/libc/include/generic-netbsd/uvm/uvm.h +1 -5
  433. package/libc/include/generic-netbsd/uvm/uvm_extern.h +3 -4
  434. package/libc/include/generic-netbsd/uvm/uvm_object.h +2 -2
  435. package/libc/include/generic-netbsd/uvm/uvm_param.h +1 -1
  436. package/libc/include/generic-netbsd/uvm/uvm_swap.h +14 -3
  437. package/libc/include/generic-netbsd/wchar.h +7 -2
  438. package/libc/include/generic-netbsd/x86/bootinfo.h +4 -1
  439. package/libc/include/generic-netbsd/x86/cpu.h +18 -1
  440. package/libc/include/generic-netbsd/x86/cpu_extended_state.h +3 -1
  441. package/libc/include/generic-netbsd/x86/cpuvar.h +4 -1
  442. package/libc/include/generic-netbsd/x86/float.h +24 -1
  443. package/libc/include/generic-netbsd/x86/ieee.h +11 -7
  444. package/libc/include/generic-netbsd/x86/lwp_private.h +56 -0
  445. package/libc/include/generic-netbsd/x86/mutex.h +1 -1
  446. package/libc/include/generic-netbsd/x86/specialreg.h +111 -23
  447. package/libc/include/m68k-netbsd-none/m68k/asm.h +11 -2
  448. package/libc/include/m68k-netbsd-none/m68k/bus_dma.h +2 -2
  449. package/libc/include/m68k-netbsd-none/m68k/byte_swap.h +2 -2
  450. package/libc/include/m68k-netbsd-none/m68k/cacheops_30.h +2 -2
  451. package/libc/include/m68k-netbsd-none/m68k/cacheops_40.h +3 -1
  452. package/libc/include/m68k-netbsd-none/m68k/cacheops_60.h +5 -3
  453. package/libc/include/m68k-netbsd-none/m68k/cpu.h +86 -59
  454. package/libc/include/m68k-netbsd-none/m68k/cpuframe.h +5 -5
  455. package/libc/include/m68k-netbsd-none/m68k/fenv.h +6 -4
  456. package/libc/include/m68k-netbsd-none/m68k/float.h +26 -1
  457. package/libc/include/m68k-netbsd-none/m68k/frame.h +31 -19
  458. package/libc/include/m68k-netbsd-none/m68k/ieee.h +13 -8
  459. package/libc/include/m68k-netbsd-none/m68k/ieeefp.h +3 -3
  460. package/libc/include/m68k-netbsd-none/m68k/int_limits.h +2 -2
  461. package/libc/include/m68k-netbsd-none/m68k/intr.h +211 -0
  462. package/libc/include/m68k-netbsd-none/m68k/kcore.h +31 -31
  463. package/libc/include/m68k-netbsd-none/m68k/lwp_private.h +64 -0
  464. package/libc/include/m68k-netbsd-none/m68k/m68k.h +3 -7
  465. package/libc/include/m68k-netbsd-none/m68k/mcontext.h +5 -36
  466. package/libc/include/m68k-netbsd-none/m68k/mmu_30.h +105 -0
  467. package/libc/include/m68k-netbsd-none/m68k/mmu_40.h +232 -0
  468. package/libc/include/m68k-netbsd-none/m68k/mmu_51.h +273 -0
  469. package/libc/include/m68k-netbsd-none/m68k/mutex.h +1 -1
  470. package/libc/include/m68k-netbsd-none/m68k/pcb.h +2 -2
  471. package/libc/include/m68k-netbsd-none/m68k/pmap_motorola.h +32 -23
  472. package/libc/include/m68k-netbsd-none/m68k/psl.h +26 -7
  473. package/libc/include/m68k-netbsd-none/m68k/pte_motorola.h +37 -26
  474. package/libc/include/m68k-netbsd-none/m68k/trap.h +7 -7
  475. package/libc/include/m68k-netbsd-none/mac68k/cpu.h +1 -57
  476. package/libc/include/m68k-netbsd-none/mac68k/intr.h +3 -2
  477. package/libc/include/m68k-netbsd-none/mac68k/lwp_private.h +3 -0
  478. package/libc/include/m68k-netbsd-none/mac68k/pmap.h +20 -2
  479. package/libc/include/m68k-netbsd-none/mac68k/z8530var.h +2 -2
  480. package/libc/include/m68k-netbsd-none/machine/cpu.h +1 -57
  481. package/libc/include/m68k-netbsd-none/machine/intr.h +3 -2
  482. package/libc/include/m68k-netbsd-none/machine/lwp_private.h +3 -0
  483. package/libc/include/m68k-netbsd-none/machine/pmap.h +20 -2
  484. package/libc/include/m68k-netbsd-none/machine/z8530var.h +2 -2
  485. package/libc/include/mips-netbsd-eabi/machine/lwp_private.h +3 -0
  486. package/libc/include/powerpc-netbsd-eabi/evbppc/lwp_private.h +3 -0
  487. package/libc/include/powerpc-netbsd-eabi/float.h +3 -0
  488. package/libc/include/powerpc-netbsd-eabi/machine/ansi.h +3 -0
  489. package/libc/include/powerpc-netbsd-eabi/machine/aout_machdep.h +3 -0
  490. package/libc/include/powerpc-netbsd-eabi/machine/asm.h +3 -0
  491. package/libc/include/powerpc-netbsd-eabi/machine/cdefs.h +3 -0
  492. package/libc/include/powerpc-netbsd-eabi/machine/cpu.h +65 -0
  493. package/libc/include/powerpc-netbsd-eabi/machine/disklabel.h +69 -0
  494. package/libc/include/powerpc-netbsd-eabi/machine/elf_machdep.h +3 -0
  495. package/libc/include/powerpc-netbsd-eabi/machine/endian.h +3 -0
  496. package/libc/include/powerpc-netbsd-eabi/machine/fenv.h +3 -0
  497. package/libc/include/powerpc-netbsd-eabi/machine/float.h +3 -0
  498. package/libc/include/powerpc-netbsd-eabi/machine/frame.h +3 -0
  499. package/libc/include/powerpc-netbsd-eabi/machine/ieee.h +3 -0
  500. package/libc/include/powerpc-netbsd-eabi/machine/ieeefp.h +3 -0
  501. package/libc/include/powerpc-netbsd-eabi/machine/int_const.h +3 -0
  502. package/libc/include/powerpc-netbsd-eabi/machine/int_fmtio.h +3 -0
  503. package/libc/include/powerpc-netbsd-eabi/machine/int_limits.h +3 -0
  504. package/libc/include/powerpc-netbsd-eabi/machine/int_mwgwtypes.h +3 -0
  505. package/libc/include/powerpc-netbsd-eabi/machine/int_types.h +3 -0
  506. package/libc/include/powerpc-netbsd-eabi/machine/kcore.h +3 -0
  507. package/libc/include/powerpc-netbsd-eabi/machine/limits.h +3 -0
  508. package/libc/include/powerpc-netbsd-eabi/machine/lock.h +3 -0
  509. package/libc/include/powerpc-netbsd-eabi/machine/lwp_private.h +3 -0
  510. package/libc/include/powerpc-netbsd-eabi/machine/math.h +3 -0
  511. package/libc/include/powerpc-netbsd-eabi/machine/mcontext.h +3 -0
  512. package/libc/include/powerpc-netbsd-eabi/machine/mutex.h +3 -0
  513. package/libc/include/powerpc-netbsd-eabi/machine/param.h +43 -0
  514. package/libc/include/powerpc-netbsd-eabi/machine/pcb.h +3 -0
  515. package/libc/include/powerpc-netbsd-eabi/machine/pmap.h +3 -0
  516. package/libc/include/powerpc-netbsd-eabi/machine/proc.h +3 -0
  517. package/libc/include/powerpc-netbsd-eabi/machine/profile.h +3 -0
  518. package/libc/include/powerpc-netbsd-eabi/machine/psl.h +3 -0
  519. package/libc/include/powerpc-netbsd-eabi/machine/pte.h +3 -0
  520. package/libc/include/powerpc-netbsd-eabi/machine/ptrace.h +3 -0
  521. package/libc/include/powerpc-netbsd-eabi/machine/reg.h +3 -0
  522. package/libc/include/powerpc-netbsd-eabi/machine/reloc.h +3 -0
  523. package/libc/include/powerpc-netbsd-eabi/machine/setjmp.h +3 -0
  524. package/libc/include/powerpc-netbsd-eabi/machine/signal.h +3 -0
  525. package/libc/include/{mips-netbsd-eabi → powerpc-netbsd-eabi}/machine/sljit_machdep.h +1 -1
  526. package/libc/include/powerpc-netbsd-eabi/machine/trap.h +3 -0
  527. package/libc/include/powerpc-netbsd-eabi/machine/types.h +11 -0
  528. package/libc/include/powerpc-netbsd-eabi/machine/vmparam.h +3 -0
  529. package/libc/include/powerpc-netbsd-eabi/machine/wchar_limits.h +3 -0
  530. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/asm.h +12 -2
  531. package/libc/include/powerpc-netbsd-eabi/powerpc/bswap.h +14 -0
  532. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/cpu.h +3 -3
  533. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/fenv.h +2 -1
  534. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/pmap.h +3 -3
  535. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ieee.h +7 -2
  536. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/limits.h +4 -13
  537. package/libc/include/powerpc-netbsd-eabi/powerpc/lwp_private.h +79 -0
  538. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/mcontext.h +6 -50
  539. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/mutex.h +1 -1
  540. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/hid.h +2 -2
  541. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/pmap.h +2 -2
  542. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/pmap.h +1 -1
  543. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/psl.h +2 -2
  544. package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/vmparam.h +1 -1
  545. package/libc/include/riscv32-netbsd-none/machine/bswap.h +11 -0
  546. package/libc/include/riscv32-netbsd-none/machine/endian_machdep.h +3 -0
  547. package/libc/include/riscv32-netbsd-none/machine/rwlock.h +1 -0
  548. package/libc/include/riscv32-netbsd-none/machine/wchar_limits.h +4 -0
  549. package/libc/include/riscv64-netbsd-none/machine/bswap.h +11 -0
  550. package/libc/include/riscv64-netbsd-none/machine/endian_machdep.h +3 -0
  551. package/libc/include/riscv64-netbsd-none/machine/rwlock.h +1 -0
  552. package/libc/include/riscv64-netbsd-none/machine/wchar_limits.h +4 -0
  553. package/libc/include/sparc-netbsd-none/float.h +3 -1
  554. package/libc/include/sparc-netbsd-none/machine/asm.h +10 -1
  555. package/libc/include/sparc-netbsd-none/machine/cgtworeg.h +2 -2
  556. package/libc/include/sparc-netbsd-none/machine/cpu.h +1 -1
  557. package/libc/include/sparc-netbsd-none/machine/float.h +3 -1
  558. package/libc/include/sparc-netbsd-none/machine/limits.h +4 -6
  559. package/libc/include/sparc-netbsd-none/machine/lwp_private.h +51 -0
  560. package/libc/include/sparc-netbsd-none/machine/mcontext.h +4 -22
  561. package/libc/include/sparc-netbsd-none/machine/mutex.h +1 -1
  562. package/libc/include/sparc-netbsd-none/machine/param.h +4 -2
  563. package/libc/include/sparc-netbsd-none/machine/pmap.h +2 -2
  564. package/libc/include/sparc-netbsd-none/machine/psl.h +6 -3
  565. package/libc/include/sparc-netbsd-none/machine/sxreg.h +5 -1
  566. package/libc/include/sparc-netbsd-none/machine/types.h +2 -2
  567. package/libc/include/sparc-netbsd-none/sparc/sxreg.h +5 -1
  568. package/libc/include/sparc64-netbsd-none/machine/cpu.h +2 -2
  569. package/libc/include/sparc64-netbsd-none/machine/ctlreg.h +8 -7
  570. package/libc/include/sparc64-netbsd-none/machine/intr.h +1 -1
  571. package/libc/include/sparc64-netbsd-none/machine/lwp_private.h +3 -0
  572. package/libc/include/sparc64-netbsd-none/machine/mcontext.h +4 -4
  573. package/libc/include/sparc64-netbsd-none/machine/mutex.h +1 -1
  574. package/libc/include/sparc64-netbsd-none/machine/param.h +8 -2
  575. package/libc/include/sparc64-netbsd-none/machine/psl.h +7 -2
  576. package/libc/include/sparc64-netbsd-none/machine/pte.h +2 -2
  577. package/libc/include/sparc64-netbsd-none/machine/vmparam.h +1 -1
  578. package/libc/include/x86-netbsd-none/machine/asm.h +12 -4
  579. package/libc/include/x86-netbsd-none/machine/byte_swap.h +2 -2
  580. package/libc/include/x86-netbsd-none/machine/cpu.h +15 -4
  581. package/libc/include/x86-netbsd-none/machine/elf_machdep.h +2 -1
  582. package/libc/include/x86-netbsd-none/machine/lwp_private.h +3 -0
  583. package/libc/include/x86-netbsd-none/machine/mcontext.h +6 -24
  584. package/libc/include/x86-netbsd-none/machine/param.h +9 -1
  585. package/libc/include/x86-netbsd-none/machine/pcb.h +6 -2
  586. package/libc/include/x86-netbsd-none/machine/ptrace.h +2 -2
  587. package/libc/include/x86-netbsd-none/machine/types.h +2 -1
  588. package/libc/include/x86_64-netbsd-none/amd64/asm.h +11 -3
  589. package/libc/include/x86_64-netbsd-none/amd64/byte_swap.h +2 -2
  590. package/libc/include/x86_64-netbsd-none/amd64/cpu.h +13 -3
  591. package/libc/include/x86_64-netbsd-none/amd64/frame.h +2 -2
  592. package/libc/include/x86_64-netbsd-none/amd64/lwp_private.h +3 -0
  593. package/libc/include/x86_64-netbsd-none/amd64/mcontext.h +5 -23
  594. package/libc/include/x86_64-netbsd-none/amd64/param.h +23 -4
  595. package/libc/include/x86_64-netbsd-none/amd64/pcb.h +14 -3
  596. package/libc/include/x86_64-netbsd-none/amd64/ptrace.h +2 -2
  597. package/libc/include/x86_64-netbsd-none/amd64/types.h +2 -1
  598. package/libc/include/x86_64-netbsd-none/machine/asm.h +11 -3
  599. package/libc/include/x86_64-netbsd-none/machine/byte_swap.h +2 -2
  600. package/libc/include/x86_64-netbsd-none/machine/cpu.h +13 -3
  601. package/libc/include/x86_64-netbsd-none/machine/frame.h +2 -2
  602. package/libc/include/x86_64-netbsd-none/machine/lwp_private.h +3 -0
  603. package/libc/include/x86_64-netbsd-none/machine/mcontext.h +5 -23
  604. package/libc/include/x86_64-netbsd-none/machine/param.h +23 -4
  605. package/libc/include/x86_64-netbsd-none/machine/pcb.h +14 -3
  606. package/libc/include/x86_64-netbsd-none/machine/ptrace.h +2 -2
  607. package/libc/include/x86_64-netbsd-none/machine/types.h +2 -1
  608. package/libc/netbsd/abilists +0 -0
  609. package/libc/netbsd/lib/csu/arch/riscv/crt0.S +62 -0
  610. package/libc/netbsd/lib/csu/common/crt0-common.c +32 -7
  611. package/libc/netbsd/lib/csu/common/csu-common.h +2 -0
  612. package/package.json +1 -1
  613. package/std/Build/Cache/Path.zig +27 -28
  614. package/std/Build/Cache.zig +1 -0
  615. package/std/Build/Configuration.zig +69 -29
  616. package/std/Build/Step/Compile.zig +2 -8
  617. package/std/Build/Step/ObjCopy.zig +2 -2
  618. package/std/Build/Step/Options.zig +2 -2
  619. package/std/Build/Step/Run.zig +0 -33
  620. package/std/Build.zig +34 -4
  621. package/std/Io/Kqueue.zig +1 -1
  622. package/std/Io/Threaded.zig +1 -1
  623. package/std/Io/Uring.zig +3 -1
  624. package/std/Target.zig +3 -1
  625. package/std/debug/Pdb.zig +61 -34
  626. package/std/debug/SelfInfo/Elf.zig +12 -9
  627. package/std/debug/SelfInfo/Windows.zig +3 -5
  628. package/std/debug/cpu_context.zig +62 -14
  629. package/std/zig/target.zig +2 -1
  630. package/std/zig.zig +12 -0
  631. package/libc/include/arm-netbsd-eabi/machine/frame.h +0 -130
  632. package/libc/include/generic-netbsd/powerpc/bswap.h +0 -8
  633. package/libc/include/mips-netbsd-eabi/machine/psl.h +0 -3
  634. package/libc/include/mips-netbsd-eabi/machine/reloc.h +0 -3
  635. package/libc/include/mips-netbsd-eabi/machine/trap.h +0 -3
  636. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ansi.h +0 -0
  637. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/aout_machdep.h +0 -0
  638. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/asm.h +0 -0
  639. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/bswap.h +0 -0
  640. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/cdefs.h +0 -0
  641. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/cpu.h +0 -0
  642. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/disklabel.h +0 -0
  643. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/elf_machdep.h +0 -0
  644. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/endian.h +0 -0
  645. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/endian_machdep.h +0 -0
  646. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/fenv.h +0 -0
  647. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/float.h +0 -0
  648. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/fpu.h +0 -0
  649. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/frame.h +0 -0
  650. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ieee.h +0 -0
  651. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ieeefp.h +0 -0
  652. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_const.h +0 -0
  653. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_fmtio.h +0 -0
  654. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_limits.h +0 -0
  655. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_mwgwtypes.h +0 -0
  656. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/int_types.h +0 -0
  657. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/intr.h +0 -0
  658. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/kcore.h +0 -0
  659. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/limits.h +0 -0
  660. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/lock.h +0 -0
  661. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/math.h +0 -0
  662. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/mcontext.h +0 -0
  663. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/mutex.h +0 -0
  664. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/param.h +0 -0
  665. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/pcb.h +0 -0
  666. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/pmap.h +0 -0
  667. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/proc.h +0 -0
  668. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/profile.h +0 -0
  669. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/psl.h +0 -0
  670. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/pte.h +0 -0
  671. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/ptrace.h +0 -0
  672. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/reg.h +0 -0
  673. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/reloc.h +0 -0
  674. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/rwlock.h +0 -0
  675. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/setjmp.h +0 -0
  676. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/signal.h +0 -0
  677. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/sljit_machdep.h +0 -0
  678. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/trap.h +0 -0
  679. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/types.h +0 -0
  680. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/vmparam.h +0 -0
  681. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/evbppc/wchar_limits.h +0 -0
  682. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/machine/fpu.h +0 -0
  683. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/machine/intr.h +0 -0
  684. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ansi.h +0 -0
  685. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/aout_machdep.h +0 -0
  686. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/cdefs.h +0 -0
  687. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/elf_machdep.h +0 -0
  688. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/endian.h +0 -0
  689. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/endian_machdep.h +0 -0
  690. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/float.h +0 -0
  691. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/fpu.h +0 -0
  692. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/frame.h +0 -0
  693. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/cpu.h +0 -0
  694. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/spr.h +0 -0
  695. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ibm4xx/tlb.h +0 -0
  696. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ieeefp.h +0 -0
  697. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_const.h +0 -0
  698. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_fmtio.h +0 -0
  699. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_limits.h +0 -0
  700. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_mwgwtypes.h +0 -0
  701. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/int_types.h +0 -0
  702. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/kcore.h +0 -0
  703. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/lock.h +0 -0
  704. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/math.h +0 -0
  705. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/bat.h +0 -0
  706. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/hid_601.h +0 -0
  707. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/pte.h +0 -0
  708. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/spr.h +0 -0
  709. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/sr_601.h +0 -0
  710. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/oea/vmparam.h +0 -0
  711. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/param.h +0 -0
  712. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/pcb.h +0 -0
  713. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/proc.h +0 -0
  714. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/profile.h +0 -0
  715. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/pte.h +0 -0
  716. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/ptrace.h +0 -0
  717. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/reg.h +0 -0
  718. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/reloc.h +0 -0
  719. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/rwlock.h +0 -0
  720. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/setjmp.h +0 -0
  721. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/signal.h +0 -0
  722. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/sljit_machdep.h +0 -0
  723. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/spr.h +0 -0
  724. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/trap.h +0 -0
  725. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/types.h +0 -0
  726. /package/libc/include/{generic-netbsd → powerpc-netbsd-eabi}/powerpc/wchar_limits.h +0 -0
@@ -0,0 +1,232 @@
1
+ /* $NetBSD: mmu_40.h,v 1.4 2025/07/08 11:45:25 thorpej Exp $ */
2
+
3
+ /*-
4
+ * Copyright (c) 2023 The NetBSD Foundation, Inc.
5
+ * All rights reserved.
6
+ *
7
+ * This code is derived from software contributed to The NetBSD Foundation
8
+ * by Jason R. Thorpe.
9
+ *
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions
12
+ * are met:
13
+ * 1. Redistributions of source code must retain the above copyright
14
+ * notice, this list of conditions and the following disclaimer.
15
+ * 2. Redistributions in binary form must reproduce the above copyright
16
+ * notice, this list of conditions and the following disclaimer in the
17
+ * documentation and/or other materials provided with the distribution.
18
+ *
19
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
+ * POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+
32
+ #ifndef _M68K_MMU_40_H_
33
+ #define _M68K_MMU_40_H_
34
+
35
+ /*
36
+ * Translation table structures for the 68040 MMU.
37
+ *
38
+ * The 68040 MMU uses a 3-level tree structure. The root (L1) and
39
+ * and pointer (L2) tables contain the base addresses of the tables
40
+ * at the lext level, and the page (L3) tables contain the addresses
41
+ * of the page descriptors, which may either contain the address of
42
+ * a physical page (4K or 8K) directly, or point to an indirect
43
+ * descriptor which points to the physical page.
44
+ *
45
+ * The L1 and L2 tables contain 128 4-byte descriptors, and are thus 512
46
+ * bytes in size. Each of the 128 L1 descriptors corresponds to a 32MB
47
+ * region of address space. Each of the 128 L2 descriptors corresponds
48
+ * to a 256KB region of address space.
49
+ *
50
+ * For 8K pages, the L3 tables contain 32 4-byte descriptors, and are
51
+ * thus 128 bytes in size.
52
+ *
53
+ * 31 25 24 18 17 13 12 0
54
+ * | | | | |
55
+ * 11111111111111 22222222222222 3333333333 ..........................
56
+ * Root Pointer Page Page
57
+ * Index Index Index Offset
58
+ *
59
+ * For 4K pages, the L3 tables contain 64 4-byte descriptors, and are
60
+ * thus 256 bytes in size.
61
+ *
62
+ * 31 25 24 18 17 12 11 0
63
+ * | | | | |
64
+ * 11111111111111 22222222222222 333333333333 ........................
65
+ * Root Pointer Page Page
66
+ * Index Index Index Offset
67
+ *
68
+ * Logical Address Format
69
+ */
70
+
71
+ #define LA40_L1_NBITS 7U
72
+ #define LA40_L1_SHIFT 25
73
+ #define LA40_L2_NBITS 7U
74
+ #define LA40_L2_SHIFT 18
75
+ #define LA40_L3_NBITS (32U - LA40_L1_NBITS - LA40_L2_NBITS - PGSHIFT)
76
+ #define LA40_L3_SHIFT PGSHIFT
77
+
78
+ #define LA40_L1_COUNT __BIT(LA40_L1_NBITS)
79
+ #define LA40_L2_COUNT __BIT(LA40_L2_NBITS)
80
+ #define LA40_L3_COUNT __BIT(LA40_L3_NBITS)
81
+
82
+ #define LA40_L1_MASK (__BITS(0,(LA40_L1_NBITS - 1)) << LA40_L1_SHIFT)
83
+ #define LA40_L2_MASK (__BITS(0,(LA40_L2_NBITS - 1)) << LA40_L2_SHIFT)
84
+ #define LA40_L3_MASK (__BITS(0,(LA40_L3_NBITS - 1)) << LA40_L3_SHIFT)
85
+
86
+ /* N.B. all tables must be aligned to their size */
87
+ #define TBL40_L1_SIZE (LA40_L1_COUNT * sizeof(uint32_t))
88
+ #define TBL40_L2_SIZE (LA40_L2_COUNT * sizeof(uint32_t))
89
+ #define TBL40_L3_SIZE (LA40_L3_COUNT * sizeof(uint32_t))
90
+
91
+ #define LA40_RI(va) __SHIFTOUT((va), LA40_L1_MASK) /* root index */
92
+ #define LA40_PI(va) __SHIFTOUT((va), LA40_L2_MASK) /* pointer index */
93
+ #define LA40_PGI(va) __SHIFTOUT((va), LA40_L3_MASK) /* page index */
94
+
95
+ #define LA40_TRUNC_L1(va) (((vaddr_t)(va)) & LA40_L1_MASK)
96
+ #define LA40_TRUNC_L2(va) (((vaddr_t)(va)) & (LA40_L1_MASK | LA40_L2_MASK))
97
+
98
+ /*
99
+ * The PTE format for L1 and L2 tables (Upper Tables).
100
+ */
101
+ #define UTE40_PTA __BITS(9,31) /* Pointer Table Address (L1 PTE) */
102
+ /* Page Table Address (L2 PTE) */
103
+ #define UTE40_PGTA __BITS(8 - (13 - PGSHIFT),31)
104
+ #define UTE40_U __BIT(3) /* Used (referenced) */
105
+ #define UTE40_W __BIT(2) /* Write Protected */
106
+ #define UTE40_UDT __BITS(0,1) /* Upper Descriptor Type */
107
+ /* 00 or 01 -- Invalid */
108
+ /* 10 or 11 -- Resident */
109
+
110
+ #define UTE40_INVALID __SHIFTIN(0, UTE_UDT)
111
+ #define UTE40_RESIDENT __SHIFTIN(2, UTE_UDT)
112
+
113
+ /*
114
+ * The PTE format for L3 tables.
115
+ *
116
+ * Some notes:
117
+ *
118
+ * - PFLUSH variants that specify non-global entries do not invalidate
119
+ * global entries. If these PFLUSH variants are not used, then the G
120
+ * bit can be used as a software-defined bit.
121
+ *
122
+ * - The UR bits are "reserved for use by the user", so can be
123
+ * used as software-defined bits.
124
+ *
125
+ * - The U0 and U1 "User Page Attribute" bits should *not* be used
126
+ * as software-defined bits; they are reflected on the UPA0 and UPA1
127
+ * CPU signals if an external bus transfer results from the access,
128
+ * meaning that they may have system-specific side-effects.
129
+ */
130
+ #define PTE40_PGA __BITS(PGSHIFT,31) /* Page Physical Address */
131
+ #define PTE40_UR_x __BIT(12) /* User Reserved (extra avail if 8K) */
132
+ #define PTE40_UR __BIT(11) /* User Reserved */
133
+ #define PTE40_G __BIT(10) /* Global */
134
+ #define PTE40_U1 __BIT(9) /* User Page Attribute 1 */
135
+ #define PTE40_U0 __BIT(8) /* User Page Attribute 0 */
136
+ #define PTE40_S __BIT(7) /* Supervisor Protected */
137
+ #define PTE40_CM __BITS(5,6) /* Cache Mode */
138
+ /* 00 -- write-through */
139
+ /* 01 -- copy-back */
140
+ /* 10 -- non-cacheable, serialized */
141
+ /* 11 -- non-cacheable */
142
+ #define PTE40_M __BIT(4) /* Modified */
143
+ #define PTE40_U __BIT(3) /* Used (referenced) */
144
+ #define PTE40_W __BIT(2) /* Write Protected */
145
+ #define PTE40_PDT __BITS(0,1) /* Page Descriptor Type */
146
+ /* 00 -- Invalid */
147
+ /* 01 or 11 -- Resident */
148
+ /* 10 -- Indirect */
149
+
150
+ #define PTE40_CM_WT __SHIFTIN(0, PTE40_CM)
151
+ #define PTE40_CM_CB __SHIFTIN(1, PTE40_CM)
152
+ #define PTE40_CM_NC_SER __SHIFTIN(2, PTE40_CM)
153
+ #define PTE40_CM_NC __SHIFTIN(3, PTE40_CM)
154
+
155
+ #define PTE40_INVALID __SHIFTIN(0, PTE40_PDT)
156
+ #define PTE40_RESIDENT __SHIFTIN(1, PTE40_PDT)
157
+ #define PTE40_INDIRECT __SHIFTIN(2, PTE40_PDT)
158
+
159
+ /*
160
+ * MMU registers (and the sections in the 68040 manual that
161
+ * describe them).
162
+ */
163
+
164
+ /*
165
+ * 3.1.1 -- User and Supervisor Root Pointer Registers (32-bit)
166
+ *
167
+ * URP and SRP contain the physical address of the L1 table for
168
+ * user and supervisor space, respectively. Bits 8-0 of the address
169
+ * must be 0.
170
+ */
171
+
172
+ /*
173
+ * 3.1.2 -- Translation Control Register (16-bit)
174
+ */
175
+ #define TCR40_E __BIT(15) /* enable translation */
176
+ #define TCR40_P __BIT(14) /* page size: 0=4K 1=8K */
177
+
178
+ /*
179
+ * 3.1.3 -- Transparent Translation Registers (32-bit)
180
+ *
181
+ * There are 2 data translation registers (DTTR0, DTTR1) and 2
182
+ * instruction translation registers (ITTR0, ITTR1).
183
+ */
184
+ #define TTR40_LAB __BITS(24,31) /* logical address base */
185
+ #define TTR40_LAM __BITS(16,23) /* logical address mask */
186
+ #define TTR40_E __BIT(15) /* enable TTR */
187
+ #define TTR40_SFIELD __BITS(13,14) /* Supervisor Mode field (see below) */
188
+ #define TTR40_U1 PTE40_U1
189
+ #define TTR40_U0 PTE40_U0
190
+ #define TTR40_CM PTE40_CM
191
+ #define TTR40_W PTE40_W
192
+
193
+ #define TTR40_USER __SHIFTIN(0, TTR40_SFIELD)
194
+ #define TTR40_SUPER __SHIFTIN(1, TTR40_SFIELD)
195
+ #define TTR40_BOTH __SHIFTIN(2, TTR40_SFIELD)
196
+
197
+ /*
198
+ * 3.1.4 -- MMU Status Register
199
+ *
200
+ * N.B. If 8K pages are in use, bit 12 of the PA field is **undefined**.
201
+ */
202
+ #define MMUSR40_PA PTE40_PGA
203
+ #define MMUSR40_B __BIT(11) /* bus error */
204
+ #define MMUSR40_G PTE40_G
205
+ #define MMUSR40_U1 PTE40_U1
206
+ #define MMUSR40_U0 PTE40_U0
207
+ #define MMUSR40_S PTE40_S
208
+ #define MMUSR40_CM PTE40_CM
209
+ #define MMUSR40_M PTE40_M
210
+ #define MMUSR40_W PTE40_W
211
+ #define MMUSR40_T __BIT(1) /* Transparent Translation hit */
212
+ #define MMUSR40_R PTE40_RESIDENT
213
+
214
+ #ifdef _KERNEL
215
+ /*
216
+ * TT register value indices in the mmu_ttregs[] array. Note that asm
217
+ * code makes assumptions about these indices, to change them at your
218
+ * peril.
219
+ */
220
+ extern uint32_t mmu_tt40[];
221
+ #define MMU_TTREG_ITT0 0 /* same order as CPU reg numbers */
222
+ #define MMU_TTREG_ITT1 1
223
+ #define MMU_TTREG_DTT0 2
224
+ #define MMU_TTREG_DTT1 3
225
+ #define MMU_NTTREGS40
226
+
227
+ void mmu_load_urp40(paddr_t);
228
+ void mmu_load_urp60(paddr_t);
229
+ void mmu_load_tt40(uint32_t *);
230
+ #endif /* _KERNEL */
231
+
232
+ #endif /* _M68K_MMU_40_H_ */
@@ -0,0 +1,273 @@
1
+ /* $NetBSD: mmu_51.h,v 1.4 2024/02/08 20:11:56 andvar Exp $ */
2
+
3
+ /*-
4
+ * Copyright (c) 1997, 2023 The NetBSD Foundation, Inc.
5
+ * All rights reserved.
6
+ *
7
+ * This code is derived from software contributed to The NetBSD Foundation
8
+ * by Jeremy Cooper and by Jason R. Thorpe.
9
+ *
10
+ * Redistribution and use in source and binary forms, with or without
11
+ * modification, are permitted provided that the following conditions
12
+ * are met:
13
+ * 1. Redistributions of source code must retain the above copyright
14
+ * notice, this list of conditions and the following disclaimer.
15
+ * 2. Redistributions in binary form must reproduce the above copyright
16
+ * notice, this list of conditions and the following disclaimer in the
17
+ * documentation and/or other materials provided with the distribution.
18
+ *
19
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
+ * POSSIBILITY OF SUCH DAMAGE.
30
+ */
31
+
32
+ #ifndef _M68K_MMU_51_H_
33
+ #define _M68K_MMU_51_H_
34
+
35
+ /*
36
+ * Translation table structures for the 68851 MMU.
37
+ *
38
+ * The 68851 MMU (as well as the 68030's built-in MMU) are pretty flexible and
39
+ * can use a 1, 2, 3, or 4-level tree structure and a number of page sizes.
40
+ *
41
+ * The logical address format is defined as:
42
+ *
43
+ * 31 0
44
+ * | | | | | | |
45
+ * SSSSSSSS AAAAAAAAAA BBBBBBBBBB CCCCCCCCCC DDDDDDDDDD PPPPPPPPPPPPPP
46
+ * Initial A Index B Index C Index D Index Page Offset
47
+ * Shift
48
+ *
49
+ * The Initial Shift, and number of A, B, C, and D index bits are defined
50
+ * in the Translation Control register. Once the MMU encounters a tree
51
+ * level where the number of index bits is 0, tree traversal stops. The
52
+ * values of IS + TIA + TIB + TIC + TID + page offset must equal 32. For
53
+ * example, for a 2-level arrangment using 4KB pages where all 32-bits of
54
+ * the address are significant:
55
+ *
56
+ * IS TIA TIB TIC TID page
57
+ * 0 + 10 + 10 + 0 + 0 + 12 == 32
58
+ */
59
+
60
+ /*
61
+ * The 68851 has 3 descriptor formats:
62
+ *
63
+ * Long Table Descriptors (8 byte)
64
+ * Short Table Descriptors (4 byte)
65
+ * Page Descriptors (4 byte)
66
+ *
67
+ * These occupy the lower 2 bits of each descriptor and the root pointers.
68
+ */
69
+ #define DT51_INVALID 0
70
+ #define DT51_PAGE 1 /* points to a page */
71
+ #define DT51_SHORT 2 /* points to a short entry table */
72
+ #define DT51_LONG 3 /* points to a long entry table */
73
+
74
+ /*
75
+ * Long Format Table Descriptor
76
+ *
77
+ * 63 48
78
+ * +---+---.---.---.---.---.---.---.---.---.---.---.---.---.---.---+
79
+ * |L/U| LIMIT |
80
+ * +---+---.---+---.---.---+---+---+---+---+---+---+---+---+---.---+
81
+ * | RAL | WAL |SG | S | 0 | 0 | 0 | 0 | U |WP | DT |
82
+ * +---.---.---+---.---.---+---+---+---+---+---+---+---+---+---.---+
83
+ * | TABLE PHYSICAL ADDRESS (BITS 31-16) |
84
+ * +---.---.---.---.---.---.---.---.---.---.---.---+---.---.---.---+
85
+ * | TABLE PHYSICAL ADDRESS (15-4) | UNUSED |
86
+ * +---.---.---.---.---.---.---.---.---.---.---.---+---.---.---.---+
87
+ * 15 0
88
+ *
89
+ * DT is either 2 or 3, depending on what next table descriptor format is.
90
+ */
91
+ struct mmu51_ldte { /* 'dte' stands for 'descriptor table entry' */
92
+ uint32_t ldte_attr;
93
+ uint32_t ldte_addr;
94
+ };
95
+ #define DTE51_ADDR __BITS(4,31) /* table address mask */
96
+ #define DTE51_LOWER __BIT(31) /* L: Index limit is lower limit */
97
+ #define DTE51_LIMIT __BITS(16,30) /* L: Index limit */
98
+ #define DTE51_RAL __BITS(13,15) /* L: Read Access Level */
99
+ #define DTE51_WAL __BITS(10,12) /* L: Write Access Level */
100
+ #define DTE51_SG __BIT(9) /* L: Shared Globally */
101
+ #define DTE51_S __BIT(8) /* L: Supervisor protected */
102
+ #define DTE51_U __BIT(3) /* Used */
103
+ #define DTE51_WP __BIT(2) /* Write Protected */
104
+
105
+ /*
106
+ * Short Format Table Descriptor
107
+ *
108
+ * 31 16
109
+ * +---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---+
110
+ * | TABLE PHYSICAL BASE ADDRESS (BITS 31-16) |
111
+ * +---.---.---.---.---.---.---.---.---.---.---.---+---+---+---.---+
112
+ * | TABLE PHYSICAL BASE ADDRESS (15-4) | U |WP | DT |
113
+ * +---.---.---.---.---.---.---.---.---.---.---.---+---+---+---.---+
114
+ * 15 0
115
+ *
116
+ * DT is either 2 or 3, depending on what next table descriptor format is.
117
+ */
118
+
119
+ /*
120
+ * Long Format Page Descriptor (Level A table only)
121
+ *
122
+ * 63 48
123
+ * +---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---+
124
+ * | UNUSED |
125
+ * +---.---.---+---.---.---+---+---+---+---+---+---+---+---+---.---+
126
+ * | RAL | WAL |SG | S | G |CI | L | M | U |WP |DT (01)|
127
+ * +---.---.---+---.---.---+---+---+---+---+---+---+---+---+---.---+
128
+ * | PAGE PHYSICAL ADDRESS (BITS 31-16) |
129
+ * +---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---+
130
+ * | PAGE PHYS. ADDRESS (15-8) | UNUSED |
131
+ * +---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---+
132
+ * 15 0
133
+ *
134
+ * N.B. Unused bits of the page address (if the page size is larger
135
+ * than 256 bytes) can be used as software-defined PTE bits.
136
+ */
137
+ struct mmu51_lpte { /* 'pte' stands for 'page table entry' */
138
+ uint32_t lpte_attr;
139
+ uint32_t lpte_addr;
140
+ };
141
+ #define PTE51_ADDR __BITS(8,31) /* page address mask */
142
+ #define PTE51_RAL __BITS(13,15) /* L: Read Access Level */
143
+ #define PTE51_WAL __BITS(10,12) /* L: Write Access Level */
144
+ #define PTE51_SG __BIT(9) /* L: Shared Globally */
145
+ #define PTE51_S __BIT(8) /* L: Supervisor protected */
146
+ #define PTE51_G __BIT(7) /* Gate allowed */
147
+ #define PTE51_CI __BIT(6) /* Cache inhibit */
148
+ #define PTE51_L __BIT(5) /* Lock entry */
149
+ #define PTE51_M __BIT(4) /* Modified */
150
+ #define PTE51_U __BIT(3) /* Used */
151
+ #define PTE51_WP __BIT(2) /* Write Protected */
152
+
153
+ /*
154
+ * Short Format Page Descriptor
155
+ *
156
+ * 31 16
157
+ * +---.---.---.---.---.---.---.---.---.---.---.---.---.---.---.---+
158
+ * | PAGE PHYSICAL BASE ADDRESS (BITS 31-16) |
159
+ * +---.---.---.---.---.---.---.---+---+---+---+---+---+---+---.---+
160
+ * | PAGE PHYS. BASE ADDRESS (15-8)| G |CI | L | M | U |WP |DT (01)|
161
+ * +---.---.---.---.---.---.---.---+---+---+---+---+---+---+---.---+
162
+ * 15 0
163
+ *
164
+ * N.B. Unused bits of the page address (if the page size is larger
165
+ * than 256 bytes) can be used as software-defined PTE bits.
166
+ */
167
+
168
+ /*
169
+ * MMU registers (and the sections in the 68851 manual that
170
+ * describe them).
171
+ */
172
+
173
+ /*
174
+ * 5.1.4 -- Root Pointer
175
+ * (and also 6.1.1)
176
+ *
177
+ * This is a 64-bit register. The upper 32 bits contain configuration
178
+ * information, and the lower 32 bits contain the A table address.
179
+ * Bits 3-0 of the address must be 0. The root pointer is essentially
180
+ * a long format table descriptor with only the U/L, limit, and SG bits.
181
+ *
182
+ * The 68851 has 3 root pointers:
183
+ *
184
+ * CRP CPU root pointer, for user accesses
185
+ * SRP Supervisor root pointer
186
+ * DRP DMA root pointer, for IOMMU functionality (not on '030)
187
+ *
188
+ * Selection of root pointer is as follows:
189
+ *
190
+ * FC3 FC2 SRE Root pointer used
191
+ * 0 0 0 CRP
192
+ * 0 0 1 CRP
193
+ * 0 1 0 CRP
194
+ * 0 1 1 SRP
195
+ * 1 x x DRP
196
+ */
197
+ struct mmu51_rootptr {
198
+ unsigned long rp_attr; /* Lower/Upper Limit and access flags */
199
+ unsigned long rp_addr; /* Physical Base Address */
200
+ };
201
+
202
+ /*
203
+ * 6.1.2 -- PMMU Cache Status (PCSR) (16-bit)
204
+ */
205
+ #define PCSR51_F __BIT(15) /* Flush(ed) */
206
+ #define PCSR51_LW __BIT(14) /* Lock Warning */
207
+ #define PCSR51_TA __BITS(0,2) /* Task Alias (not '030) */
208
+
209
+ /*
210
+ * 6.1.3 -- Translation Control (TCR) (32-bit)
211
+ */
212
+ #define TCR51_E __BIT(31) /* Enable translation */
213
+ #define TCR51_SRE __BIT(25) /* Supervisor Root Enable */
214
+ #define TCR51_FCL __BIT(24) /* Function Code Lookup */
215
+ #define TCR51_PS __BITS(20,23) /* Page Size (see below) */
216
+ #define TCR51_IS __BITS(16,19) /* Initial Shift */
217
+ #define TCR51_TIA __BITS(12,15) /* Table A Index bits */
218
+ #define TCR51_TIB __BITS(8,11) /* Table B Index bits */
219
+ #define TCR51_TIC __BITS(4,7) /* Table C Index bits */
220
+ #define TCR51_TID __BITS(0,3) /* Table D Index bits */
221
+
222
+ /*
223
+ * Astute readers will note that the value in the PS field is
224
+ * log2(PAGE_SIZE).
225
+ */
226
+ #define TCR51_PS_256 __SHIFTIN(0x8, TCR51_PS)
227
+ #define TCR51_PS_512 __SHIFTIN(0x9, TCR51_PS)
228
+ #define TCR51_PS_1K __SHIFTIN(0xa, TCR51_PS)
229
+ #define TCR51_PS_2K __SHIFTIN(0xb, TCR51_PS)
230
+ #define TCR51_PS_4K __SHIFTIN(0xc, TCR51_PS)
231
+ #define TCR51_PS_8K __SHIFTIN(0xd, TCR51_PS)
232
+ #define TCR51_PS_16K __SHIFTIN(0xe, TCR51_PS)
233
+ #define TCR51_PS_32K __SHIFTIN(0xf, TCR51_PS)
234
+
235
+ /*
236
+ * 6.1.4 -- Current Access Level (8-bit)
237
+ * 6.1.5 -- Validate Access Level
238
+ */
239
+ #define CAL51_AL __BITS(5,7)
240
+
241
+ /*
242
+ * 6.1.6 -- Stack Change Control (8-bit)
243
+ */
244
+
245
+ /*
246
+ * 6.1.7 -- Access Control (16-bit)
247
+ */
248
+ #define AC51_MC __BIT(7) /* Module Control */
249
+ #define AC51_ALC __BITS(4,5) /* Access Level Control */
250
+ #define AC51_MDS __BITS(0,1) /* Module Descriptor Size */
251
+
252
+ /*
253
+ * 6.1.8 -- PMMU Status Register (PSR) (16-bit)
254
+ */
255
+ #define PSR51_B __BIT(15) /* Bus Error */
256
+ #define PSR51_L __BIT(14) /* Limit Violation */
257
+ #define PSR51_S __BIT(13) /* Supervisor Violation */
258
+ #define PSR51_A __BIT(12) /* Access Level Violation */
259
+ #define PSR51_W __BIT(11) /* Write Protected */
260
+ #define PSR51_I __BIT(10) /* Invalid */
261
+ #define PSR51_M __BIT(9) /* Modified */
262
+ #define PSR51_G __BIT(8) /* Gate */
263
+ #define PSR51_C __BIT(7) /* Globally Shareable */
264
+ #define PSR51_N __BITS(0,2) /* Number of levels */
265
+
266
+ #ifdef _KERNEL
267
+ extern unsigned int protorp[2];
268
+
269
+ void mmu_load_urp51(paddr_t);
270
+ void mmu_load_urp20hp(paddr_t); /* for convenience */
271
+ #endif /* _KERNEL */
272
+
273
+ #endif /* _M68K_MMU_51_H_ */
@@ -1,4 +1,4 @@
1
- /* $NetBSD: mutex.h,v 1.11.4.1 2023/08/09 17:42:01 martin Exp $ */
1
+ /* $NetBSD: mutex.h,v 1.13 2023/07/12 12:50:12 riastradh Exp $ */
2
2
 
3
3
  /*-
4
4
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -1,4 +1,4 @@
1
- /* $NetBSD: pcb.h,v 1.10 2011/02/08 20:20:16 rmind Exp $ */
1
+ /* $NetBSD: pcb.h,v 1.11 2023/09/26 14:33:55 tsutsui Exp $ */
2
2
 
3
3
  /*
4
4
  * Copyright (c) 1988 University of Utah.
@@ -49,7 +49,7 @@
49
49
  */
50
50
  struct pcb {
51
51
  short pcb_flags; /* misc. process flags */
52
- short pcb_ps; /* processor status word */
52
+ short pcb_ps; /* processor status word */
53
53
  int __pcb_spare0;
54
54
  int pcb_usp; /* user stack pointer */
55
55
  int pcb_regs[12]; /* D2-D7, A2-A7 */
@@ -1,6 +1,6 @@
1
- /* $NetBSD: pmap_motorola.h,v 1.37 2021/09/19 10:34:09 andvar Exp $ */
1
+ /* $NetBSD: pmap_motorola.h,v 1.43 2023/12/31 21:59:24 thorpej Exp $ */
2
2
 
3
- /*
3
+ /*
4
4
  * Copyright (c) 1991, 1993
5
5
  * The Regents of the University of California. All rights reserved.
6
6
  *
@@ -35,7 +35,7 @@
35
35
  * @(#)pmap.h 8.1 (Berkeley) 6/10/93
36
36
  */
37
37
 
38
- /*
38
+ /*
39
39
  * Copyright (c) 1987 Carnegie-Mellon University
40
40
  *
41
41
  * This code is derived from software contributed to Berkeley by
@@ -97,6 +97,21 @@ struct pmap {
97
97
  int pm_ptpages; /* more stats: PT pages */
98
98
  };
99
99
 
100
+ /*
101
+ * Root Pointer attributes for Supervisor and User modes.
102
+ *
103
+ * Supervisor:
104
+ * - No index limit (Lower limit == 0)
105
+ * - Points to Short format descriptor table.
106
+ * - Shared Globally
107
+ *
108
+ * User:
109
+ * - No index limit (Lower limit == 0)
110
+ * - Points to Short format descriptor table.
111
+ */
112
+ #define MMU51_SRP_BITS (DTE51_LOWER | DTE51_SG | DT51_SHORT)
113
+ #define MMU51_CRP_BITS (DTE51_LOWER | DT51_SHORT)
114
+
100
115
  /*
101
116
  * MMU specific segment values
102
117
  *
@@ -108,7 +123,7 @@ struct pmap {
108
123
  *
109
124
  * 68020/030 l2 size is chosen per NPTEPG, a number of page table entries
110
125
  * per page, to use one whole page for PTEs per one segment table entry,
111
- * and maybe also because 68020 HP MMU machines use simlar structures.
126
+ * and maybe also because 68020 HP MMU machines use similar structures.
112
127
  *
113
128
  * 68040/060 layout is defined by hardware design and not configurable,
114
129
  * as defined in <m68k/pte_motorola.h>.
@@ -122,12 +137,19 @@ struct pmap {
122
137
  * so they have different values between 020/030 and 040/060.
123
138
  */
124
139
  /* 8KB / 4KB */
125
- #define TIB_SHIFT (PG_SHIFT - 2) /* 11 / 10 */
140
+ #define TIB_SHIFT (PGSHIFT - 2) /* 11 / 10 */
126
141
  #define TIB_SIZE (1U << TIB_SHIFT) /* 2048 / 1024 */
127
- #define TIA_SHIFT (32 - TIB_SHIFT - PG_SHIFT) /* 8 / 10 */
142
+ #define TIA_SHIFT (32 - TIB_SHIFT - PGSHIFT) /* 8 / 10 */
128
143
  #define TIA_SIZE (1U << TIA_SHIFT) /* 256 / 1024 */
129
144
 
130
- #define SEGSHIFT (TIB_SHIFT + PG_SHIFT) /* 24 / 22 */
145
+ #define MMU51_TCR_BITS (TCR51_E | TCR51_SRE | \
146
+ __SHIFTIN(PGSHIFT, TCR51_PS) | \
147
+ __SHIFTIN(TIA_SHIFT, TCR51_TIA) | \
148
+ __SHIFTIN(TIB_SHIFT, TCR51_TIB))
149
+ #define MMU40_TCR_BITS (TCR40_E | \
150
+ __SHIFTIN(PGSHIFT - 12, TCR40_P))
151
+
152
+ #define SEGSHIFT (TIB_SHIFT + PGSHIFT) /* 24 / 22 */
131
153
 
132
154
  #define NBSEG30 (1U << SEGSHIFT)
133
155
  #define NBSEG40 (1U << SG4_SHIFT2)
@@ -142,7 +164,7 @@ struct pmap {
142
164
  #define NBSEG ((mmutype == MMU_68040) ? NBSEG40 : NBSEG30)
143
165
  #endif
144
166
 
145
- #define SEGOFSET (NBSEG - 1) /* byte offset into segment */
167
+ #define SEGOFSET (NBSEG - 1) /* byte offset into segment */
146
168
 
147
169
  #define m68k_round_seg(x) ((((vaddr_t)(x)) + SEGOFSET) & ~SEGOFSET)
148
170
  #define m68k_trunc_seg(x) ((vaddr_t)(x) & ~SEGOFSET)
@@ -170,15 +192,6 @@ struct pmap {
170
192
  #define l2tobm(n) (1U << (n))
171
193
  #define bmtol2(n) (ffs(n) - 1)
172
194
 
173
- /*
174
- * Macros for speed
175
- */
176
- #define PMAP_ACTIVATE(pmap, loadhw) \
177
- { \
178
- if ((loadhw)) \
179
- loadustp(m68k_btop((paddr_t)(pmap)->pm_stpa)); \
180
- }
181
-
182
195
  /*
183
196
  * For each struct vm_page, there is a list of all currently valid virtual
184
197
  * mappings of that page. An entry is a pv_entry, the list is pv_table.
@@ -191,12 +204,6 @@ struct pv_entry {
191
204
  struct pmap *pv_ptpmap; /* if pv_ptste, pmap for PT page */
192
205
  };
193
206
 
194
- #define active_pmap(pm) \
195
- ((pm) == pmap_kernel() || (pm) == curproc->p_vmspace->vm_map.pmap)
196
- #define active_user_pmap(pm) \
197
- (curproc && \
198
- (pm) != pmap_kernel() && (pm) == curproc->p_vmspace->vm_map.pmap)
199
-
200
207
  extern struct pv_header *pv_table; /* array of entries, one per page */
201
208
 
202
209
  #define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)
@@ -247,4 +254,6 @@ void _pmap_set_page_cacheable(struct pmap *, vaddr_t);
247
254
  void _pmap_set_page_cacheinhibit(struct pmap *, vaddr_t);
248
255
  int _pmap_page_is_cacheable(struct pmap *, vaddr_t);
249
256
 
257
+ paddr_t vtophys(vaddr_t va);
258
+
250
259
  #endif /* !_M68K_PMAP_MOTOROLA_H_ */