Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

retire i386

adios, i386. your time has come. thanks for all the readable stack
traces. you will always be remembered.
  • Loading branch information...
commit 8986228440dfc57e96e7e1975e9e75e44999127f 1 parent de5dda1
@martelletto martelletto authored
Showing with 47 additions and 38,643 deletions.
  1. +1 −1  distrib/Makefile
  2. +0 −8 distrib/i386/Makefile
  3. +0 −5 distrib/i386/Makefile.inc
  4. +0 −36 distrib/i386/cdfs/Makefile
  5. +0 −141 distrib/i386/common/Makefile.inc
  6. +0 −141 distrib/i386/common/install.md
  7. +0 −87 distrib/i386/common/list
  8. +0 −1  distrib/i386/livecd/Makefile
  9. +0 −12 distrib/i386/ramdisk/Makefile
  10. +0 −51 distrib/i386/ramdisk/list.local
  11. +0 −2,199 distrib/sets/lists/base/md.i386
  12. 0  distrib/sets/lists/etc/md.i386
  13. +1 −1  etc/Makefile
  14. +0 −613 etc/etc.i386/MAKEDEV
  15. +0 −139 etc/etc.i386/MAKEDEV.md
  16. +0 −5 etc/etc.i386/Makefile
  17. +0 −11 etc/etc.i386/Makefile.inc
  18. +0 −47 etc/etc.i386/disktab
  19. +0 −1  etc/etc.i386/fbtab
  20. +0 −7 etc/etc.i386/sysctl.conf
  21. +0 −26 etc/etc.i386/ttys
  22. +1 −1  lib/csu/Makefile
  23. +0 −62 lib/csu/i386/Makefile
  24. +0 −86 lib/csu/i386/md_init.h
  25. +1 −1  lib/libarch/Makefile
  26. +0 −27 lib/libarch/i386/Makefile
  27. +0 −92 lib/libarch/i386/i386_get_fsbase.2
  28. +0 −42 lib/libarch/i386/i386_get_fsbase.c
  29. +0 −102 lib/libarch/i386/i386_get_gsbase.2
  30. +0 −42 lib/libarch/i386/i386_get_gsbase.c
  31. +0 −122 lib/libarch/i386/i386_get_ioperm.2
  32. +0 −48 lib/libarch/i386/i386_get_ioperm.c
  33. +0 −124 lib/libarch/i386/i386_get_ldt.2
  34. +0 −49 lib/libarch/i386/i386_get_ldt.c
  35. +0 −86 lib/libarch/i386/i386_iopl.2
  36. +0 −48 lib/libarch/i386/i386_iopl.c
  37. +0 −42 lib/libarch/i386/i386_set_fsbase.c
  38. +0 −42 lib/libarch/i386/i386_set_gsbase.c
  39. +0 −48 lib/libarch/i386/i386_set_ioperm.c
  40. +0 −49 lib/libarch/i386/i386_set_ldt.c
  41. +0 −110 lib/libarch/i386/i386_vm86.2
  42. +0 −47 lib/libarch/i386/i386_vm86.c
  43. +0 −3  lib/libc/arch/i386/DEFS.h
  44. +0 −5 lib/libc/arch/i386/Makefile.inc
  45. +0 −120 lib/libc/arch/i386/SYS.h
  46. +0 −3  lib/libc/arch/i386/gdtoa/Makefile.inc
  47. +0 −2  lib/libc/arch/i386/gdtoa/arith.h
  48. +0 −12 lib/libc/arch/i386/gdtoa/gd_qnan.h
  49. +0 −45 lib/libc/arch/i386/gdtoa/strtold.c
  50. +0 −8 lib/libc/arch/i386/gen/Makefile.inc
  51. +0 −71 lib/libc/arch/i386/gen/_setjmp.S
  52. +0 −40 lib/libc/arch/i386/gen/divsi3.S
  53. +0 −39 lib/libc/arch/i386/gen/fabs.S
  54. +0 −40 lib/libc/arch/i386/gen/fixdfsi.S
  55. +0 −69 lib/libc/arch/i386/gen/fixunsdfsi.S
  56. +0 −32 lib/libc/arch/i386/gen/flt_rounds.S
  57. +0 −44 lib/libc/arch/i386/gen/fpclassifyl.c
  58. +0 −16 lib/libc/arch/i386/gen/fpgetmask.S
  59. +0 −16 lib/libc/arch/i386/gen/fpgetround.S
  60. +0 −15 lib/libc/arch/i386/gen/fpgetsticky.S
  61. +0 −27 lib/libc/arch/i386/gen/fpsetmask.S
  62. +0 −28 lib/libc/arch/i386/gen/fpsetround.S
  63. +0 −26 lib/libc/arch/i386/gen/fpsetsticky.S
  64. +0 −7 lib/libc/arch/i386/gen/infinity.c
  65. +0 −28 lib/libc/arch/i386/gen/isfinitel.c
  66. +0 −31 lib/libc/arch/i386/gen/isinfl.c
  67. +0 −31 lib/libc/arch/i386/gen/isnanl.c
  68. +0 −28 lib/libc/arch/i386/gen/isnormall.c
  69. +0 −53 lib/libc/arch/i386/gen/ldexp.c
  70. +0 −68 lib/libc/arch/i386/gen/modf.S
  71. +0 −9 lib/libc/arch/i386/gen/nan.c
  72. +0 −93 lib/libc/arch/i386/gen/setjmp.S
  73. +0 −28 lib/libc/arch/i386/gen/signbitl.c
  74. +0 −92 lib/libc/arch/i386/gen/sigsetjmp.S
  75. +0 −40 lib/libc/arch/i386/gen/udivsi3.S
  76. +0 −3  lib/libc/arch/i386/net/Makefile.inc
  77. +0 −41 lib/libc/arch/i386/net/htonl.S
  78. +0 −39 lib/libc/arch/i386/net/htons.S
  79. +0 −41 lib/libc/arch/i386/net/ntohl.S
  80. +0 −39 lib/libc/arch/i386/net/ntohs.S
  81. +0 −40 lib/libc/arch/i386/stdlib/abs.S
  82. +0 −15 lib/libc/arch/i386/stdlib/div.S
  83. +0 −40 lib/libc/arch/i386/stdlib/labs.S
  84. +0 −15 lib/libc/arch/i386/stdlib/ldiv.S
  85. +0 −7 lib/libc/arch/i386/string/Makefile.inc
  86. +0 −32 lib/libc/arch/i386/string/bcmp.S
  87. +0 −93 lib/libc/arch/i386/string/bcopy.S
  88. +0 −43 lib/libc/arch/i386/string/bzero.S
  89. +0 −17 lib/libc/arch/i386/string/ffs.S
  90. +0 −26 lib/libc/arch/i386/string/index.S
  91. +0 −26 lib/libc/arch/i386/string/memchr.S
  92. +0 −43 lib/libc/arch/i386/string/memcmp.S
  93. +0 −3  lib/libc/arch/i386/string/memcpy.S
  94. +0 −3  lib/libc/arch/i386/string/memmove.S
  95. +0 −55 lib/libc/arch/i386/string/memset.S
  96. +0 −29 lib/libc/arch/i386/string/rindex.S
  97. +0 −73 lib/libc/arch/i386/string/strcat.S
  98. +0 −3  lib/libc/arch/i386/string/strchr.S
  99. +0 −81 lib/libc/arch/i386/string/strcmp.S
  100. +0 −63 lib/libc/arch/i386/string/strcpy.S
  101. +0 −113 lib/libc/arch/i386/string/strncmp.S
  102. +0 −3  lib/libc/arch/i386/string/strrchr.S
  103. +0 −67 lib/libc/arch/i386/string/swab.S
  104. +0 −61 lib/libc/arch/i386/sys/Ovfork.S
  105. +0 −86 lib/libc/arch/i386/sys/brk.S
  106. +0 −51 lib/libc/arch/i386/sys/cerror.S
  107. +0 −53 lib/libc/arch/i386/sys/exect.S
  108. +0 −39 lib/libc/arch/i386/sys/fork.S
  109. +0 −79 lib/libc/arch/i386/sys/sbrk.S
  110. +0 −40 lib/libc/arch/i386/sys/sigpending.S
  111. +0 −64 lib/libc/arch/i386/sys/sigprocmask.S
  112. +0 −47 lib/libc/arch/i386/sys/sigreturn.S
  113. +0 −53 lib/libc/arch/i386/sys/sigsuspend.S
  114. +0 −52 lib/libc/arch/i386/sys/syscall.S
  115. +0 −122 lib/libc/arch/i386/sys/tfork_thread.S
  116. +0 −176 lib/libkvm/kvm_i386.c
  117. +0 −25 lib/librthread/arch/i386/_atomic_lock.c
  118. +0 −49 lib/librthread/arch/i386/cerror.S
  119. +0 −21 lib/librthread/arch/i386/rthread_md.h
  120. +0 −4 libexec/ld.so/i386/Makefile.inc
  121. +0 −96 libexec/ld.so/i386/archdep.h
  122. +0 −194 libexec/ld.so/i386/ldasm.S
  123. +0 −581 libexec/ld.so/i386/rtld_machine.c
  124. +0 −67 libexec/ld.so/i386/syscall.h
  125. +1 −1  libexec/mcpp/Makefile
  126. 0  libexec/mcpp/defs.old.i386
  127. +0 −145 libexec/mcpp/defs.std.i386
  128. +0 −8 regress/sys/arch/i386/Makefile
  129. +0 −34 regress/sys/arch/i386/ldt/Makefile
  130. +0 −273 regress/sys/arch/i386/ldt/testldt.c
  131. +1 −1  share/man/man1/gcc-local.1
  132. +0 −8 share/man/man3/intro.3
  133. +1 −1  share/man/man4/Makefile
  134. +0 −4 share/man/man4/admtemp.4
  135. +1 −1  share/man/man4/ahc.4
  136. +0 −18 share/man/man4/com.4
  137. +4 −26 share/man/man4/ddb.4
  138. +1 −1  share/man/man4/fdc.4
  139. +0 −3  share/man/man4/gpio.4
  140. +6 −10 share/man/man4/iic.4
  141. +1 −16 share/man/man4/isa.4
  142. +1 −1  share/man/man4/lpt.4
  143. +0 −15 share/man/man4/man4.i386/Makefile
  144. +0 −59 share/man/man4/man4.i386/amdmsr.4
  145. +0 −32 share/man/man4/man4.i386/amdpcib.4
  146. +0 −291 share/man/man4/man4.i386/apm.4
  147. +0 −52 share/man/man4/man4.i386/autoconf.4
  148. +0 −95 share/man/man4/man4.i386/bios.4
  149. +0 −98 share/man/man4/man4.i386/cpu.4
  150. +0 −97 share/man/man4/man4.i386/elansc.4
  151. +0 −89 share/man/man4/man4.i386/esm.4
  152. +0 −49 share/man/man4/man4.i386/geodesc.4
  153. +0 −46 share/man/man4/man4.i386/glxpcib.4
  154. +0 −57 share/man/man4/man4.i386/glxsb.4
  155. +0 −65 share/man/man4/man4.i386/gscpcib.4
  156. +0 −43 share/man/man4/man4.i386/gscpm.4
  157. +0 −100 share/man/man4/man4.i386/gus.4
  158. +0 −89 share/man/man4/man4.i386/ichpcib.4
  159. +0 −60 share/man/man4/man4.i386/ie.4
  160. +0 −124 share/man/man4/man4.i386/intro.4
  161. +0 −46 share/man/man4/man4.i386/ioapic.4
  162. +0 −149 share/man/man4/man4.i386/joy.4
  163. +0 −58 share/man/man4/man4.i386/le.4
  164. +0 −57 share/man/man4/man4.i386/lms.4
  165. +0 −80 share/man/man4/man4.i386/mem.4
  166. +0 −57 share/man/man4/man4.i386/mms.4
  167. +0 −59 share/man/man4/man4.i386/mpbios.4
  168. +0 −147 share/man/man4/man4.i386/mtrr.4
  169. +0 −63 share/man/man4/man4.i386/npx.4
  170. +0 −52 share/man/man4/man4.i386/nvram.4
  171. +0 −45 share/man/man4/man4.i386/pas.4
  172. +0 −228 share/man/man4/man4.i386/pcibios.4
  173. +0 −281 share/man/man4/man4.i386/pctr.4
  174. +0 −74 share/man/man4/man4.i386/piixpcib.4
  175. +0 −97 share/man/man4/man4.i386/sb.4
  176. +0 −52 share/man/man4/man4.i386/sea.4
  177. +0 −69 share/man/man4/man4.i386/tcpcib.4
  178. +0 −55 share/man/man4/man4.i386/uha.4
  179. +0 −61 share/man/man4/man4.i386/wds.4
  180. +0 −68 share/man/man4/man4.i386/wdt.4
  181. +0 −66 share/man/man4/man4.i386/wss.4
  182. +1 −13 share/man/man4/options.4
  183. +1 −1  share/man/man4/pchb.4
  184. +1 −8 share/man/man4/pci.4
  185. +2 −2 share/man/man4/pckbc.4
  186. +1 −1  share/man/man4/pckbd.4
  187. +0 −12 share/man/man4/pcmcia.4
  188. +1 −1  share/man/man4/sd.4
  189. +1 −1  share/man/man4/softraid.4
  190. +1 −1  share/man/man4/wdc.4
  191. +1 −2  share/man/man4/xf86.4
  192. +1 −1  share/man/man5/bsd.port.arch.mk.5
  193. +1 −1  share/man/man5/bsd.port.mk.5
  194. +1 −1  share/man/man5/mk.conf.5
  195. +1 −2  share/man/man7/mdoc.7
  196. +1 −1  share/man/man8/Makefile
  197. +7 −7 share/man/man8/diskless.8
  198. +0 −297 share/man/man8/man8.i386/MAKEDEV.8
  199. +0 −7 share/man/man8/man8.i386/Makefile
  200. +0 −189 share/man/man8/man8.i386/boot_i386.8
  201. +1 −1  share/man/man8/release.8
  202. +2 −2 share/man/man9/extent.9
  203. +0 −1  share/man/man9/pci_conf_read.9
  204. +0 −1  share/man/man9/pci_intr_map.9
  205. +1 −2  sys/Makefile
  206. +0 −45 sys/arch/i386/Makefile
  207. +0 −7 sys/arch/i386/compile/.cvsignore
  208. +0 −7 sys/arch/i386/conf/GENERIC
  209. +0 −2  sys/arch/i386/conf/GENERIC.SP
  210. +0 −9 sys/arch/i386/conf/LIVECD
  211. +0 −219 sys/arch/i386/conf/Makefile.i386
  212. +0 −417 sys/arch/i386/conf/RAMDISK
  213. +0 −421 sys/arch/i386/conf/files.i386
  214. +0 −780 sys/arch/i386/conf/generic.i386
  215. +0 −202 sys/arch/i386/eisa/eisa_machdep.c
  216. +0 −68 sys/arch/i386/eisa/eisa_machdep.h
  217. +0 −447 sys/arch/i386/i386/acpi_machdep.c
  218. +0 −615 sys/arch/i386/i386/acpi_wakecode.S
  219. +0 −58 sys/arch/i386/i386/acpiapm.c
  220. +0 −395 sys/arch/i386/i386/amd64errata.c
  221. +0 −147 sys/arch/i386/i386/amdmsr.c
  222. +0 −52 sys/arch/i386/i386/apic.c
  223. +0 −348 sys/arch/i386/i386/apicvec.s
  224. +0 −1,155 sys/arch/i386/i386/apm.c
  225. +0 −107 sys/arch/i386/i386/apmcall.S
  226. +0 −235 sys/arch/i386/i386/autoconf.c
  227. +0 −1,038 sys/arch/i386/i386/bios.c
  228. +0 −681 sys/arch/i386/i386/bus_dma.c
  229. +0 −553 sys/arch/i386/i386/bus_space.c
  230. +0 −438 sys/arch/i386/i386/conf.c
  231. +0 −874 sys/arch/i386/i386/cpu.c
  232. +0 −1,404 sys/arch/i386/i386/db_disasm.c
  233. +0 −361 sys/arch/i386/i386/db_interface.c
  234. +0 −152 sys/arch/i386/i386/db_memrw.c
  235. +0 −141 sys/arch/i386/i386/db_mp.c
  236. +0 −346 sys/arch/i386/i386/db_trace.c
  237. +0 −169 sys/arch/i386/i386/disksubr.c
  238. +0 −231 sys/arch/i386/i386/dkcsum.c
  239. +0 −1,081 sys/arch/i386/i386/esm.c
  240. +0 −277 sys/arch/i386/i386/esmreg.h
  241. +0 −26 sys/arch/i386/i386/esmvar.h
  242. +0 −1,220 sys/arch/i386/i386/est.c
  243. +0 −231 sys/arch/i386/i386/gdt.c
  244. +0 −178 sys/arch/i386/i386/genassym.cf
  245. +0 −350 sys/arch/i386/i386/hibernate_machdep.c
  246. +0 −625 sys/arch/i386/i386/i686_mem.c
  247. +0 −363 sys/arch/i386/i386/in_cksum.s
  248. +0 −860 sys/arch/i386/i386/ioapic.c
  249. +0 −219 sys/arch/i386/i386/ipifuncs.c
  250. +0 −204 sys/arch/i386/i386/k1x-pstate.c
  251. +0 −200 sys/arch/i386/i386/k6_mem.c
  252. +0 −212 sys/arch/i386/i386/kgdb_machdep.c
  253. +0 −352 sys/arch/i386/i386/kvm86.c
  254. +0 −230 sys/arch/i386/i386/kvm86call.S
  255. +0 −491 sys/arch/i386/i386/lapic.c
  256. +0 −187 sys/arch/i386/i386/lock_machdep.c
  257. +0 −1,674 sys/arch/i386/i386/locore.s
  258. +0 −127 sys/arch/i386/i386/longrun.c
  259. +0 −3,997 sys/arch/i386/i386/machdep.c
Sorry, we could not display the entire diff because too many files (504) changed.
View
2  distrib/Makefile
@@ -3,7 +3,7 @@
SUBDIR= special
.if make(obj)
-SUBDIR+=amd64 armv7 i386
+SUBDIR+=amd64 armv7
.elif exists(${MACHINE})
SUBDIR+=${MACHINE}
.endif
View
8 distrib/i386/Makefile
@@ -1,8 +0,0 @@
-# $OpenBSD: Makefile,v 1.9 2007/10/18 18:16:20 deraadt Exp $
-
-SUBDIR= ramdisk cdfs
-
-unconfig:
- cd ramdisk; ${MAKE} unconfig
-
-.include <bsd.subdir.mk>
View
5 distrib/i386/Makefile.inc
@@ -1,5 +0,0 @@
-# $OpenBSD: Makefile.inc,v 1.1 2002/04/22 02:40:02 deraadt Exp $
-
-REV= ${OSrev}
-
-.include <bsd.own.mk>
View
36 distrib/i386/cdfs/Makefile
@@ -1,36 +0,0 @@
-TOP= ${.CURDIR}/..
-
-.include "${TOP}/Makefile.inc"
-
-BSDRD= bsd.rd
-CDROM= cd${REV}.iso
-
-all: ${CDROM}
-
-${CDROM}:
- -rm -rf ${.OBJDIR}/cd-dir
- mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/i386
- mkdir -p ${.OBJDIR}/cd-dir/etc
- echo "set image /${OSREV}/i386/bsd.rd" > ${.OBJDIR}/cd-dir/etc/boot.conf
- cp ${.OBJDIR}/../ramdisk/${BSDRD} ${.OBJDIR}/cd-dir/${OSREV}/i386
- cp ${DESTDIR}/usr/mdec/cdbr ${.OBJDIR}/cd-dir/${OSREV}/i386
- cp ${DESTDIR}/usr/mdec/cdboot ${.OBJDIR}/cd-dir/${OSREV}/i386/cdboot
- mkisofs -R -T -allow-leading-dots -l -d -D -N -o ${.OBJDIR}/${CDROM} -v -v \
- -A "Bitrig ${OSREV} i386 bootonly CD" \
- -publisher "Copyright (c) `date +%Y`, The Bitrig foundation <bitrig@bitrig.org>" \
- -p "The Bitrig foundation <bitrig@bitrig.org>" \
- -V "Bitrig/i386 ${OSREV} boot-only CD" \
- -no-emul-boot -b ${OSREV}/i386/cdbr -c ${OSREV}/i386/boot.catalog \
- ${.OBJDIR}/cd-dir
-
-.ifdef RELEASEDIR
-install:
- cp ${CDROM} ${RELEASEDIR}
-.endif # RELEASEDIR
-
-clean cleandir:
- /bin/rm -f ${CDROM}
- rm -rf cd-dir
-
-.include <bsd.obj.mk>
-.include <bsd.subdir.mk>
View
141 distrib/i386/common/Makefile.inc
@@ -1,141 +0,0 @@
-# $OpenBSD: Makefile.inc,v 1.35 2014/01/20 05:15:51 jsing Exp $
-
-TOP= ${.CURDIR}/..
-
-.include "${TOP}/Makefile.inc"
-IMAGE= mr.fs
-CBIN?= instbin
-CRUNCHCONF?= ${CBIN}.conf
-LISTS?= ${.CURDIR}/../common/list
-UTILS?= ${.CURDIR}/../../miniroot
-
-MOUNT_POINT= /mnt
-MTREE= ${UTILS}/mtree.conf
-
-XNAME?= floppy
-FS?= ${XNAME}${REV}.fs
-VND?= vnd0
-VND_DEV= /dev/${VND}a
-VND_RDEV= /dev/r${VND}a
-VND_CRDEV= /dev/r${VND}c
-PID!= echo $$$$
-REALIMAGE!= echo /var/tmp/image.${PID}
-BOOT= ${DESTDIR}/usr/mdec/boot
-FLOPPYSIZE?= 2880
-FLOPPYTYPE?= floppy3
-
-all: ${FS}
-
-${FS}: bsd.gz
- dd if=/dev/zero of=${REALIMAGE} bs=512 count=${FLOPPYSIZE}
- vnconfig -v -c ${VND} ${REALIMAGE}
- disklabel -w ${VND} ${FLOPPYTYPE}
- newfs -m 0 -o space -i 524288 -c ${FLOPPYSIZE} ${VND_RDEV}
- mount ${VND_DEV} ${MOUNT_POINT}
- cp ${BOOT} ${.OBJDIR}/boot
- strip ${.OBJDIR}/boot
- strip -R .comment ${.OBJDIR}/boot
- dd if=bsd.gz of=${MOUNT_POINT}/bsd bs=512
- installboot -v -r ${MOUNT_POINT} ${VND_CRDEV} \
- ${DESTDIR}/usr/mdec/biosboot ${.OBJDIR}/boot
- @echo ""
- @df -i ${MOUNT_POINT}
- @echo ""
- umount ${MOUNT_POINT}
- vnconfig -u ${VND}
- cp ${REALIMAGE} ${FS}
- rm ${REALIMAGE}
-
-DISKTYPE?= rdroot84
-NBLKS?= 16640
-# minfree, opt, b/i, blks/cyl
-NEWFSARGS= -m 0 -o space -i 4096
-
-.if ${COMPILER_VERSION:L} == "gcc4"
-COPTS= -Os
-.else
-COPTS= -Oz
-.endif
-COPTS+= -mtune=i486
-
-bsd.gz: bsd.rd
- cp bsd.rd bsd.strip
- strip bsd.strip
- strip -R .comment bsd.strip
- gzip -c9n bsd.strip > bsd.gz
-
-bsd.rd: ${IMAGE} bsd rdsetroot
- cp bsd bsd.rd
- ${.OBJDIR}/rdsetroot bsd.rd ${IMAGE}
-
-
-bsd:
- cd ${.CURDIR}/../../../sys/arch/i386/conf && config ${RAMDISK}
- cd ${.CURDIR}/../../../sys/arch/i386/compile/${RAMDISK} && \
- ${MAKE} clean && COPTS="${COPTS}" exec ${MAKE}
- cp ${.CURDIR}/../../../sys/arch/i386/compile/${RAMDISK}/bsd bsd
-
-${IMAGE}: ${CBIN} rd_setup do_files rd_teardown
-
-rd_setup: ${CBIN}
- dd if=/dev/zero of=${REALIMAGE} bs=512 count=${NBLKS}
- vnconfig -v -c ${VND} ${REALIMAGE}
- disklabel -w ${VND} ${DISKTYPE}
- newfs ${NEWFSARGS} ${VND_RDEV}
- fsck ${VND_RDEV}
- mount ${VND_DEV} ${MOUNT_POINT}
-
-rd_teardown:
- @df -i ${MOUNT_POINT}
- -umount ${MOUNT_POINT}
- -vnconfig -u ${VND}
- cp ${REALIMAGE} ${IMAGE}
- rm ${REALIMAGE}
-
-rdsetroot: ${TOP}/../common/elfrdsetroot.c
- ${HOSTCC} ${HOSTCFLAGS} -o rdsetroot \
- ${TOP}/../common/elfrdsetroot.c ${TOP}/../common/elf32.c \
- ${TOP}/../common/elf64.c
-
-unconfig:
- -umount -f ${MOUNT_POINT}
- -vnconfig -u ${VND}
-
-.PRECIOUS: ${IMAGE}
-
-.ifdef RELEASEDIR
-install:
-.ifndef NOBSDRD
- cp bsd.rd ${RELEASEDIR}/bsd.rd
-.endif
-.ifndef NOFS
- cp ${FS} ${RELEASEDIR}/${FS}
-.endif
-.endif # RELEASEDIR
-
-${CBIN}.mk ${CBIN}.cache ${CBIN}.c: ${CRUNCHCONF}
- crunchgen -E -D ${BSDSRCDIR} -L ${DESTDIR}/usr/lib \
- -c ${CBIN}.c -e ${CBIN} -m ${CBIN}.mk ${CRUNCHCONF}
-
-${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
- ${MAKE} -f ${CBIN}.mk all
- strip -R .comment ${CBIN}
-
-${CRUNCHCONF}: ${LISTS}
- awk -f ${UTILS}/makeconf.awk CBIN=${CBIN} ${LISTS} > ${CRUNCHCONF}
-
-do_files:
- mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
- TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
- REV=${REV} TARGDIR=${MOUNT_POINT} UTILS=${UTILS} \
- RELEASEDIR=${RELEASEDIR} sh ${UTILS}/runlist.sh ${LISTS}
- rm ${MOUNT_POINT}/${CBIN}
-
-clean cleandir:
- /bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}*.cache \
- *.o *.lo *.c bsd bsd.rd bsd.gz bsd.strip floppy*.fs \
- lib*.a lib*.olist ${CBIN}.map \
- rdsetroot boot ${CRUNCHCONF} ${FS}
-
-.include <bsd.obj.mk>
-.include <bsd.subdir.mk>
View
141 distrib/i386/common/install.md
@@ -1,141 +0,0 @@
-# $OpenBSD: install.md,v 1.57 2014/01/20 05:14:05 jsing Exp $
-#
-#
-# Copyright (c) 1996 The NetBSD Foundation, Inc.
-# All rights reserved.
-#
-# This code is derived from software contributed to The NetBSD Foundation
-# by Jason R. Thorpe.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-# 1. Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# 2. Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
-# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-# POSSIBILITY OF SUCH DAMAGE.
-#
-#
-# machine dependent section of installation/upgrade script.
-#
-
-MDXAPERTURE=2
-MDXDM=y
-DEFAULTSETS="bsd bsd.rd bsd.sp"
-SANESETS="bsd bsd.sp"
-
-md_installboot() {
- if ! installboot -r /mnt ${1} ; then
- echo "\nFailed to install bootblocks."
- echo "You will not be able to boot Bitrig from ${1}."
- exit
- fi
-}
-
-md_prep_fdisk() {
- local _disk=$1 _q _d
-
- while :; do
- _d=whole
- if [[ -n $(fdisk $_disk | grep 'Signature: 0xAA55') ]]; then
- fdisk $_disk
- if [[ -n $(fdisk $_disk | grep '^..: A6 ') ]]; then
- _q=", use the (B)itrig area,"
- _d=Bitrig
- fi
- else
- echo "MBR has invalid signature; not showing it."
- fi
- ask "Use (W)hole disk$_q or (E)dit the MBR?" "$_d"
- case $resp in
- w*|W*)
- echo -n "Setting Bitrig MBR partition to whole $_disk..."
- fdisk -e ${_disk} <<__EOT >/dev/null
-reinit
-update
-write
-quit
-__EOT
- echo "done."
- return ;;
- e*|E*)
- # Manually configure the MBR.
- cat <<__EOT
-
-You will now create a single MBR partition to contain your Bitrig data. This
-partition must have an id of 'A6'; must *NOT* overlap other partitions; and
-must be marked as the only active partition. Inside the fdisk command, the
-'manual' command describes all the fdisk commands in detail.
-
-$(fdisk ${_disk})
-__EOT
- fdisk -e ${_disk}
- [[ -n $(fdisk $_disk | grep ' A6 ') ]] && return
- echo No Bitrig partition in MBR, try again. ;;
- b*|B*) return ;;
- esac
- done
-}
-
-md_prep_disklabel() {
- local _disk=$1 _f _op
-
- md_prep_fdisk $_disk
-
- _f=/tmp/fstab.$_disk
- if [[ $_disk == $ROOTDISK ]]; then
- while :; do
- echo "The auto-allocated layout for $_disk is:"
- disklabel -h -A $_disk | egrep "^# |^ [a-p]:"
- ask "Use (A)uto layout, (E)dit auto layout, or create (C)ustom layout?" a
- case $resp in
- a*|A*) _op=-w ;;
- e*|E*) _op=-E ;;
- c*|C*) break ;;
- *) continue ;;
- esac
- disklabel $FSTABFLAG $_f $_op -A $_disk
- return
- done
- fi
-
- cat <<__EOT
-
-You will now create a Bitrig disklabel inside the Bitrig MBR
-partition. The disklabel defines how Bitrig splits up the MBR partition
-into Bitrig partitions in which filesystems and swap space are created.
-You must provide each filesystem's mountpoint in this program.
-
-The offsets used in the disklabel are ABSOLUTE, i.e. relative to the
-start of the disk, NOT the start of the Bitrig MBR partition.
-
-__EOT
-
- disklabel $FSTABFLAG $_f -E $_disk
-}
-
-md_consoleinfo() {
- local _u _d=com
-
- for _u in $(scan_dmesg "/^$_d\([0-9]\) .*/s//\1/p"); do
- if [[ $_d$_u == $CONSOLE || -z $CONSOLE ]]; then
- CDEV=$_d$_u
- CPROM=com$_u
- CTTY=tty0$_u
- return
- fi
- done
-}
View
87 distrib/i386/common/list
@@ -1,87 +0,0 @@
-# $OpenBSD: list,v 1.35 2014/01/20 05:09:47 jsing Exp $
-
-SRCDIRS distrib/special
-SRCDIRS bin sbin usr.bin usr.sbin
-LIBS -lstubs -lutil -locurses -lssl -lcrypto -ledit -lm -lc
-
-# copy the crunched binary, link to it, and kill it
-COPY ${OBJDIR}/instbin instbin
-LINK instbin bin/arch
-LINK instbin bin/cat
-LINK instbin bin/date
-LINK instbin bin/chmod
-LINK instbin bin/cp
-LINK instbin bin/dd
-LINK instbin bin/df
-LINK instbin bin/ed
-LINK instbin bin/hostname
-LINK instbin bin/ksh bin/sh
-ARGVLINK ksh -sh
-LINK instbin bin/ln
-LINK instbin bin/ls
-LINK instbin bin/md5 bin/sha256 bin/sha512
-SPECIAL rm bin/md5
-LINK instbin bin/mkdir
-LINK instbin bin/mt bin/eject
-LINK instbin bin/mv
-LINK instbin bin/pax bin/tar
-LINK instbin bin/rm
-LINK instbin bin/sleep
-LINK instbin bin/stty
-LINK instbin sbin/chmod bin/chgrp sbin/chown
-LINK instbin sbin/dhclient
-LINK instbin sbin/disklabel
-LINK instbin sbin/dmesg
-LINK instbin sbin/fdisk
-LINK instbin sbin/fsck
-LINK instbin sbin/fsck_ffs
-LINK instbin sbin/ifconfig
-LINK instbin sbin/init
-LINK instbin sbin/kbd
-LINK instbin sbin/mknod
-LINK instbin sbin/mount
-LINK instbin sbin/mount_cd9660
-LINK instbin sbin/mount_ffs
-LINK instbin sbin/newfs
-LINK instbin sbin/ping
-LINK instbin sbin/reboot sbin/halt
-LINK instbin sbin/restore
-LINK instbin sbin/route
-LINK instbin sbin/sysctl
-LINK instbin sbin/umount
-LINK instbin usr/bin/ftp
-LINK instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
-LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
-LINK instbin usr/bin/less usr/bin/more
-LINK instbin usr/bin/sed
-LINK instbin usr/bin/signify
-LINK instbin usr/sbin/installboot
-
-# copy the MAKEDEV script and make some devices
-SCRIPT ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
-SPECIAL cd dev; sh MAKEDEV ramdisk
-
-# for fdisk(8)
-COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr
-
-# various files that we need in /etc for the install
-COPY ${DESTDIR}/etc/group etc/group
-COPY ${CURDIR}/../../miniroot/master.passwd etc/master.passwd
-SPECIAL pwd_mkdb -p -d etc master.passwd; rm etc/master.passwd
-COPY ${DESTDIR}/etc/signify/bitrig-${REV}-base.pub etc/signify/bitrig-${REV}-base.pub
-COPY ${CURDIR}/../../miniroot/protocols etc/protocols
-COPY ${CURDIR}/../../miniroot/services etc/services
-COPY ${CURDIR}/../../miniroot/cert.pem etc/ssl/cert.pem
-TERMCAP vt100,vt220,dumb usr/share/misc/termcap
-
-SYMLINK /tmp/fstab.shadow etc/fstab
-SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
-SYMLINK /tmp/hosts etc/hosts
-
-# and the installation tools
-SCRIPT ${CURDIR}/../../miniroot/dot.profile .profile
-SCRIPT ${CURDIR}/../common/install.md install.md
-SCRIPT ${CURDIR}/../../miniroot/upgrade.sh upgrade
-SCRIPT ${CURDIR}/../../miniroot/install.sh install
-SCRIPT ${CURDIR}/../../miniroot/install.sub install.sub
-SPECIAL chmod 755 install upgrade
View
1  distrib/i386/livecd/Makefile
@@ -1 +0,0 @@
-.include <../../livecd/Makefile>
View
12 distrib/i386/ramdisk/Makefile
@@ -1,12 +0,0 @@
-# $OpenBSD: Makefile,v 1.5 2007/08/09 12:48:07 deraadt Exp $
-
-.PATH: ${.CURDIR}/../ramdisk
-RAMDISK=RAMDISK
-FLOPPYSIZE=5760
-FLOPPYTYPE=floppy288
-XNAME=cdrom
-NOFS=1
-
-.include "${.CURDIR}/../common/Makefile.inc"
-
-LISTS+= ${.CURDIR}/list.local
View
51 distrib/i386/ramdisk/list.local
@@ -1,51 +0,0 @@
-# $OpenBSD: list.local,v 1.30 2011/10/06 15:29:45 deraadt Exp $
-
-# add local links; use bin/sh since instbin has already been unlinked
-LINK instbin sbin/mount_ext2fs
-LINK instbin sbin/mount_msdos
-LINK instbin sbin/ping6
-LINK instbin sbin/rtsol
-LINK instbin sbin/mount_udf
-LINK instbin sbin/bioctl
-
-# firmware we might need
-#COPY ${DESTDIR}/etc/firmware/tigon1 etc/firmware/tigon1
-#COPY ${DESTDIR}/etc/firmware/tigon2 etc/firmware/tigon2
-#COPY ${DESTDIR}/etc/firmware/kue etc/firmware/kue
-#COPY ${DESTDIR}/etc/firmware/3c990 etc/firmware/3c990
-
-COPY ${DESTDIR}/etc/firmware/bnx-b06 etc/firmware/bnx-b06
-COPY ${DESTDIR}/etc/firmware/bnx-b09 etc/firmware/bnx-b09
-COPY ${DESTDIR}/etc/firmware/bnx-rv2p etc/firmware/bnx-rv2p
-COPY ${DESTDIR}/etc/firmware/bnx-xi-rv2p etc/firmware/bnx-xi-rv2p
-COPY ${DESTDIR}/etc/firmware/bnx-xi90-rv2p etc/firmware/bnx-xi90-rv2p
-
-COPY ${DESTDIR}/etc/firmware/ral-rt2561 etc/firmware/ral-rt2561
-COPY ${DESTDIR}/etc/firmware/ral-rt2561s etc/firmware/ral-rt2561s
-COPY ${DESTDIR}/etc/firmware/ral-rt2661 etc/firmware/ral-rt2661
-COPY ${DESTDIR}/etc/firmware/ral-rt2860 etc/firmware/ral-rt2860
-COPY ${DESTDIR}/etc/firmware/rum-rt2573 etc/firmware/rum-rt2573
-#COPY ${DESTDIR}/etc/firmware/run-rt2870 etc/firmware/run-rt2870
-#COPY ${DESTDIR}/etc/firmware/run-rt3071 etc/firmware/run-rt3071
-
-#COPY ${DESTDIR}/etc/firmware/zd1211 etc/firmware/zd1211
-#COPY ${DESTDIR}/etc/firmware/zd1211b etc/firmware/zd1211b
-
-# copy the atmel firmwares most likely used
-#COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-ext etc/firmware/atu-at76c503-i3863-ext
-#COPY ${DESTDIR}/etc/firmware/atu-at76c503-i3863-int etc/firmware/atu-at76c503-i3863-int
-#COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-ext etc/firmware/atu-at76c503-rfmd-acc-ext
-#COPY ${DESTDIR}/etc/firmware/atu-at76c503-rfmd-acc-int etc/firmware/atu-at76c503-rfmd-acc-int
-#COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-ext etc/firmware/atu-at76c505-rfmd-ext
-#COPY ${DESTDIR}/etc/firmware/atu-at76c505-rfmd-int etc/firmware/atu-at76c505-rfmd-int
-#COPY ${DESTDIR}/etc/firmware/atu-intersil-ext etc/firmware/atu-intersil-ext
-#COPY ${DESTDIR}/etc/firmware/atu-intersil-int etc/firmware/atu-intersil-int
-#COPY ${DESTDIR}/etc/firmware/atu-license etc/firmware/atu-license
-#COPY ${DESTDIR}/etc/firmware/atu-rfmd-ext etc/firmware/atu-rfmd-ext
-#COPY ${DESTDIR}/etc/firmware/atu-rfmd-int etc/firmware/atu-rfmd-int
-#COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-ext etc/firmware/atu-rfmd2958-ext
-#COPY ${DESTDIR}/etc/firmware/atu-rfmd2958-int etc/firmware/atu-rfmd2958-int
-#COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-ext etc/firmware/atu-rfmd2958smc-ext
-#COPY ${DESTDIR}/etc/firmware/atu-rfmd2958smc-int etc/firmware/atu-rfmd2958smc-int
-
-TZ
View
2,199 distrib/sets/lists/base/md.i386
0 additions, 2,199 deletions not shown
View
0  distrib/sets/lists/etc/md.i386
No changes.
View
2  etc/Makefile
@@ -308,7 +308,7 @@ distrib:
release allarchs kernels post-kernels release-sets m4 install-mtree \
bootblocks ${ALL_KERNELS}
-SUBDIR+= etc.amd64 etc.i386 etc.armv7
+SUBDIR+= etc.amd64 etc.armv7
.include <bsd.subdir.mk>
.include <bsd.prog.mk>
View
613 etc/etc.i386/MAKEDEV
@@ -1,613 +0,0 @@
-#!/bin/sh -
-#
-# THIS FILE AUTOMATICALLY GENERATED. DO NOT EDIT.
-# generated from:
-#
-# OpenBSD: etc.i386/MAKEDEV.md,v 1.70 2014/03/14 23:47:04 kettenis Exp
-# OpenBSD: MAKEDEV.common,v 1.73 2013/11/21 11:04:44 kettenis Exp
-# OpenBSD: MAKEDEV.mi,v 1.81 2012/11/05 08:07:09 jasper Exp
-# OpenBSD: MAKEDEV.sub,v 1.14 2005/02/07 06:14:18 david Exp
-#
-#
-# Copyright (c) 2001-2004 Todd T. Fries <todd@OpenBSD.org>
-#
-# Permission to use, copy, modify, and distribute this software for any
-# purpose with or without fee is hereby granted, provided that the above
-# copyright notice and this permission notice appear in all copies.
-#
-# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-#
-# Device "make" file. Valid arguments:
-# all makes all known devices, including local devices.
-# Tries to make the ``standard'' number of each type.
-# ramdisk Ramdisk kernel devices
-# std Standard devices
-# local Configuration specific devices
-# Disks:
-# cd* ATAPI and SCSI CD-ROM drives
-# fd* Floppy disk drives (3 1/2", 5 1/4")
-# rd* "rd" pseudo-disks
-# sd* SCSI disks, including flopticals
-# vnd* "file" pseudo-disk devices
-# wd* "winchester" disk drives (ST506, IDE, ESDI, RLL, ...)
-# Tapes:
-# ch* SCSI media changers
-# st* SCSI tape drives
-# Terminal ports:
-# tty[0-7][0-9a-f] NS16x50 serial ports
-# ttyc* Cyclades serial ports
-# Pseudo terminals:
-# ptm pty master device
-# pty* Set of 62 master pseudo terminals
-# tty* Set of 62 slave pseudo terminals
-# Console ports:
-# ttyC-J* wscons display devices
-# wscons Minimal wscons devices
-# wskbd* wscons keyboards
-# wsmux wscons keyboard/mouse mux devices
-# Pointing devices:
-# wsmouse* wscons mice
-# Printers:
-# lpa* Polled printer port
-# lpt* IEEE 1284 centronics printer
-# USB devices:
-# ttyU* USB serial ports
-# uall All USB devices
-# ugen* Generic USB devices
-# uhid* Generic HID devices
-# ulpt* Printer devices
-# urio* Diamond Multimedia Rio 500
-# usb* Bus control devices used by usbd for attach/detach
-# Special purpose devices:
-# amdmsr AMD MSR access device
-# apm Power management device
-# audio* Audio devices
-# bio ioctl tunnel pseudo-device
-# bktr* Video frame grabbers
-# bpf* Berkeley Packet Filter
-# bthub* Bluetooth Hubs
-# crypto Hardware crypto access driver
-# diskmap Disk mapper
-# drm* Direct Rendering Manager
-# fd fd/* nodes
-# fuse Userland Filesystem
-# gpio* General Purpose Input/Output
-# gpr* GPR400 smartcard reader
-# hotplug devices hot plugging
-# joy* Joystick driver
-# lkm Loadable kernel modules interface
-# nvram NVRAM access
-# pci* PCI bus devices
-# pctr* PC Performance Tuning Register access device
-# pf* Packet Filter
-# pppx* PPP Multiplexer
-# radio* FM tuner devices
-# *random In-kernel random data source
-# rmidi* Raw MIDI devices
-# speaker PC speaker
-# systrace* System call tracing device
-# tun* Network tunnel driver
-# tuner* Tuner devices
-# uk* Unknown SCSI devices
-# video* Video V4L2 devices
-# vscsi* Virtual SCSI controller
-PATH=/sbin:/usr/sbin:/bin:/usr/bin
-T=$0
-
-# set this to echo for Echo-Only debugging
-[ "$eo" ] || eo=
-
-hex()
-{
- case $1 in
- [0-9]) echo -n $1;;
- 10) echo -n a;;
- 11) echo -n b;;
- 12) echo -n c;;
- 13) echo -n d;;
- 14) echo -n e;;
- 15) echo -n f;;
- esac
-}
-
-alph2d()
-{
- local t="$1"
- local p="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
- local sub=${p%${t}*}
- echo ${#sub}
-}
-
-h2d()
-{
- local s="$1"
- local f=${s%*[0-9a-f]} n=${s#[0-9a-f]*}
-
- echo $(($(_h2d $f)*16+ $(_h2d $n) ))
-}
-
-_h2d()
-{
- case $1 in
- [0-9]) echo -n $1;;
- a) echo -n 10;;
- b) echo -n 11;;
- c) echo -n 12;;
- d) echo -n 13;;
- e) echo -n 14;;
- f) echo -n 15;;
- esac
-}
-
-unt()
-{
- # XXX pdksh can't seem to deal with locally scoped variables
- # in ${foo#$bar} expansions
- arg="$1"
- tmp="${arg#[a-zA-Z]*}"
- tmp="${tmp%*[a-zA-Z]}"
- while [ "$tmp" != "$arg" ]
- do
- arg=$tmp
- tmp="${arg#[a-zA-Z]*}"
- tmp="${tmp%*[a-zA-Z]}"
- done
- echo $arg
-}
-
-dodisk()
-{
- [ "$DEBUG" ] && set -x
- n=$(($((${5}*${7:-16}))+${6})) count=0
- [ 0$7 -ne 8 ] && l="i j k l m n o p"
- for d in a b c d e f g h $l
- do
- M $1$2$d b $3 $(($n+$count)) 640 operator
- M r$1$2$d c $4 $(($n+$count)) 640 operator
- let count=count+1
- done
-}
-
-dodisk2()
-{
- n=$(($(($5*${7:-16}))+$6))
- M $1$2a b $3 $n 640 operator
- M r$1$2a c $4 $n 640 operator
- n=$(($n+2))
- M $1$2c b $3 $n 640 operator
- M r$1$2c c $4 $n 640 operator
-}
-
-# M name b/c major minor [mode] [group]
-RMlist[0]="rm -f"
-
-mkl() {
- mklist[${#mklist[*]}]=";mknod -m $1 $2 $3 $4 $5"
-}
-
-M() {
- RMlist[${#RMlist[*]}]=$1
- mkl ${5-666} $1 $2 $3 $4
- G=${6:-wheel}
- [ "$7" ] && {
- MKlist[${#MKlist[*]}]="&& chown $7:$G $1"
- } || {
- case $G in
- wheel)
- [ ${#whlist[*]} = 0 ] && whlist[0]="&& chgrp wheel"
- whlist[${#whlist[*]}]="$1"
- ;;
- operator)
- [ ${#oplist[*]} = 0 ] && oplist[0]="&& chgrp operator"
- oplist[${#oplist[*]}]="$1"
- ;;
- *)
- MKlist[${#MKlist[*]}]="&& chgrp $G $1";
- esac
- }
- return 0
-}
-
-R() {
-[ "$DEBUG" ] && set -x
-for i in "$@"
-do
-U=`unt $i`
-[ "$U" ] || U=0
-
-case $i in
-ramdisk)
- R std bpf0 fd0 wd0 sd0 tty00 tty01 rd0 bio diskmap
- R st0 cd0 ttyC0 wskbd0 wskbd1 wskbd2 apm random
- ;;
-
-std)
- M console c 0 0 600
- M tty c 1 0
- M mem c 2 0 640 kmem
- M kmem c 2 1 640 kmem
- M null c 2 2
- M zero c 2 12
- M stdin c 22 0
- M stdout c 22 1
- M stderr c 22 2
- M ksyms c 50 0 640 kmem
- M klog c 7 0 600
- M xf86 c 2 4 600
- ;;
-
-ttyc*)
- M ttyc$U c 38 $U 660 dialer uucp
- M cuac$U c 38 $(($U+128)) 660 dialer uucp
- ;;
-
-vscsi*)
- M vscsi$U c 90 $U 600
- ;;
-
-video*)
- M video$U c 44 $U
- MKlist[${#MKlist[*]}]=";[ -e video ] || ln -s video$U video"
- ;;
-
-uk*)
- M uk$U c 20 $U 640 operator
- ;;
-
-tuner*)
- M tuner$U c 49 $(($(($U*2))+16)) 644
- ;;
-
-tun*)
- M tun$U c 40 $U 600
- ;;
-
-systrace)
- M systrace c 78 0 644
- ;;
-
-speaker)
- M speaker c 27 0 600
- ;;
-
-rmidi*)
- M rmidi$U c 52 $U 666
- ;;
-
-*random)
- n=0
- for pre in " " s u a
- do
- M ${pre}random c 45 $n 644
- n=$(($n+1))
- done
- ;;
-
-radio*)
- M radio$U c 76 $U
- MKlist[${#MKlist[*]}]=";[ -e radio ] || ln -s radio$U radio"
- ;;
-
-pppx*)
- M pppx$U c 92 $U 600
- ;;
-
-pf*)
- M pf c 73 0 600
- ;;
-
-pctr)
- M pctr c 46 0 644
- ;;
-
-pci*)
- M pci$U c 72 $U 600
- MKlist[${#MKlist[*]}]=";[ -h pci ] || ln -sf pci0 pci"
- ;;
-
-nvram)
- M nvram c 84 0 440 kmem
- ;;
-
-lkm)
- M lkm c 28 0 640 _lkm
- ;;
-
-joy*)
- M joy$U c 26 $U 666
- ;;
-
-hotplug)
- M hotplug c 82 $U 400
- ;;
-
-gpr*)
- M gpr$U c 80 $U
- ;;
-
-gpio*)
- M gpio$U c 83 $U 600
- ;;
-
-fuse)
- M fuse$U c 93 $U 600
- ;;
-
-fd)
- RMlist[${#RMlist[*]}]=";mkdir -p fd;rm -f" n=0
- while [ $n -lt 64 ];do M fd/$n c 22 $n;n=$(($n+1));done
- MKlist[${#MKlist[*]}]=";chmod 555 fd"
- ;;
-
-drm*)
- M drm$U c 88 $U 600
- ;;
-
-diskmap)
- M diskmap c 91 0 640 operator
- ;;
-
-crypto)
- M crypto c 70 0
- ;;
-
-bthub*)
- M bthub$U c 86 $U
- ;;
-
-bpf*)
- M bpf$U c 23 $U 600
- ;;
-
-bktr*)
- M bktr$U c 49 $U 644
- ;;
-
-bio)
- M bio c 79 0 600
- ;;
-
-audio*)
- M sound$U c 42 $U
- M mixer$U c 42 $(($U+16))
- M audio$U c 42 $(($U+128))
- M audioctl$U c 42 $(($U+192))
- MKlist[${#MKlist[*]}]=";[ -e audio ] || ln -s audio$U audio"
- MKlist[${#MKlist[*]}]=";[ -e mixer ] || ln -s mixer$U mixer"
- MKlist[${#MKlist[*]}]=";[ -e sound ] || ln -s sound$U sound"
- MKlist[${#MKlist[*]}]=";[ -e audioctl ] || ln -s audioctl$U audioctl"
- ;;
-
-apm*)
- M apm c 21 0 644
- M apmctl c 21 8 644
- ;;
-
-amdmsr*)
- M amdmsr c 89 $U
- ;;
-
-usb*)
- [ "$i" = "usb" ] && u= || u=$U
- M usb$u c 61 $U 660
- ;;
-
-urio*)
- M urio$U c 65 $U 660
- ;;
-
-ulpt*)
- M ulpt$U c 64 $U 660
- ;;
-
-uhid*)
- M uhid$U c 62 $U 660
- ;;
-
-ugen*)
- n=$(($U*16))
- for j in 0{0,1,2,3,4,5,6,7,8,9} 1{0,1,2,3,4,5}
- do
- M ugen$U.$j c 63 $(($n+10#$j)) 660
- done
- ;;
-
-uall)
- R ttyU0 ttyU1 ttyU2 ttyU3 ugen0 ugen1 ugen2 ugen3 ugen4 ugen5
- R ugen6 ugen7 ulpt0 ulpt1 uhid0 uhid1 uhid2 uhid3 urio0 usb0
- R usb1 usb2 usb3 usb4 usb5 usb6 usb7
- ;;
-
-ttyU[0-9a-zA-Z])
- U=${i#ttyU*}
- o=$(alph2d $U)
- M ttyU$U c 66 $o 660 dialer uucp
- M cuaU$U c 66 $(($o+128)) 660 dialer uucp
- ;;
-
-lpt*|lpa*)
- case $i in
- lpt*) n=lpt f=0;;
- lpa*) n=lpa f=128;;
- esac
- M $n$U c 16 $(($U+$f)) 600
- ;;
-
-wsmouse[0-9]*)
- M wsmouse$U c 68 $U 600
- ;;
-
-wsmux|wsmouse|wskbd)
- M wsmouse c 69 0 600
- M wskbd c 69 1 600
- ;;
-
-wskbd[0-9]*)
- M wskbd$U c 67 $U 600
- ;;
-
-wscons)
- R wsmouse0 wsmouse1 wsmouse2 wsmouse3 wskbd0 wskbd1 wskbd2
- R wskbd3 wsmux ttyCcfg ttyC0 ttyC1 ttyC2 ttyC3 ttyC4 ttyC5
- R ttyC6 ttyC7 ttyC8 ttyC9 ttyCa ttyCb
- ;;
-
-tty[C-J]*)
- U=${i##tty[C-J]}
- case $i in
- ttyC*) n=C m=0;;
- ttyD*) n=D m=256;;
- ttyE*) n=E m=512;;
- ttyF*) n=F m=768;;
- ttyG*) n=G m=1024;;
- ttyH*) n=H m=1280;;
- ttyI*) n=I m=1536;;
- ttyJ*) n=J m=1792;;
- esac
- case $U in
- [0-9a-f]) M tty$n$U c 12 $((16#$U+$m)) 600;;
- cfg) M tty${n}cfg c 12 $((255+$m)) 600;;
- *) echo bad unit $U for $i; exit 1;;
- esac
- ;;
-
-pty*)
- if [ $U -gt 15 ]; then
- echo bad unit for pty in: $i
- continue
- fi
- set -A letters p q r s t u v w x y z P Q R S T
- set -A suffixes 0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q \
- r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X \
- Y Z
-
- name=${letters[$U]}
- n=0
- while [ $n -lt 62 ]
- do
- nam=$name${suffixes[$n]}
- off=$(($U*62))
- M tty$nam c 5 $(($off+$n))
- M pty$nam c 6 $(($off+$n))
- n=$(($n+1))
- done
- ;;
-
-ptm)
- M ptm c 81 0 666
- ;;
-
-tty[0-7][0-9a-f])
- U=${i#tty*}
- o=$(h2d $U)
- M tty$U c 8 $o 660 dialer uucp
- M cua$U c 8 $(($o+128)) 660 dialer uucp
- ;;
-
-st*)
- n=$(($U*16))
- for pre in " " n e en
- do
- M ${pre}st$U b 5 $n 660 operator
- M ${pre}rst$U c 14 $n 660 operator
- n=$(($n+1))
- done
- ;;
-
-ch*)
- M ch$U c 17 $U 660 operator
- ;;
-
-vnd*)
- dodisk vnd $U 14 41 $U 0
- ;;
-
-rd*)
- dodisk2 rd $U 17 47 $U 0
- ;;
-
-fd*)
- typnam=$U${i#fd[01]*}
- case $typnam in
- 0|1) typnum=0;; # no type specified, assume A
- *A) typnum=0; typnam=0;;
- *B) typnum=1;;
- *C) typnum=2;;
- *D) typnum=3;;
- *E) typnum=4;;
- *F) typnum=5;;
- *G) typnum=6;;
- *H) typnum=7;;
- *) echo bad type $typnam for $i; exit 1;;
- esac
- case $U in
- 0|1) blk=2; chr=9;;
- *) echo bad unit $U for $i; exit 1;;
- esac
- nam=fd${typnam}
- n=$(($(($U*128))+$(($typnum*16))))
- M ${nam}a b $blk $n 640 operator
- M ${nam}b b $blk $(($n+1)) 640 operator
- M ${nam}c b $blk $(($n+2)) 640 operator
- M ${nam}i b $blk $(($n+8)) 640 operator
- M r${nam}a c $chr $n 640 operator
- M r${nam}b c $chr $(($n+1)) 640 operator
- M r${nam}c c $chr $(($n+2)) 640 operator
- M r${nam}i c $chr $(($n+8)) 640 operator
- ;;
-
-cd*)
- dodisk2 cd $U 6 15 $U 0
- ;;
-
-local)
- test -s $T.local && sh $T.local
- ;;
-
-all)
- R amdmsr drm0 drm1 drm2 drm3 bthub0 bthub1 bthub2 nvram gpio0
- R gpio1 gpio2 bktr0 vnd0 vnd1 vnd2 vnd3 sd0 sd1 sd2 sd3 sd4
- R sd5 sd6 sd7 sd8 sd9 cd0 cd1 rd0 tun0 tun1 tun2 tun3 bio bpf0
- R bpf1 bpf2 bpf3 bpf4 bpf5 bpf6 bpf7 bpf8 bpf9 pty0 fd1 fd1B
- R fd1C fd1D fd1E fd1F fd1G fd1H fd0 fd0B fd0C fd0D fd0E fd0F
- R fd0G fd0H diskmap vscsi0 ch0 audio0 audio1 audio2 fuse pppx
- R hotplug ptm gpr0 local wscons pci0 pci1 pci2 pci3 uall
- R rmidi0 rmidi1 rmidi2 rmidi3 rmidi4 rmidi5 rmidi6 rmidi7
- R tuner0 radio0 speaker video0 video1 uk0 random joy0 joy1
- R lpa0 lpa1 lpa2 lpt0 lpt1 lpt2 lkm tty00 tty01 tty02 tty03
- R tty04 tty05 tty06 tty07 tty08 tty09 tty0a tty0b ttyc0 ttyc1
- R ttyc2 ttyc3 ttyc4 ttyc5 ttyc6 ttyc7 apm crypto pf pctr
- R systrace wd0 wd1 wd2 wd3 std st0 st1 fd
- ;;
-
-wd*|sd*)
- case $i in
- wd*) dodisk wd $U 0 3 $U 0;;
- sd*) dodisk sd $U 4 13 $U 0;;
- esac
- ;;
-
-*)
- echo $i: unknown device
- ;;
-esac
-done
-}
-R "$@"
-{
-echo -n ${RMlist[*]}
-echo -n ${mklist[*]}
-echo -n ${MKlist[*]}
-echo -n ${whlist[*]}
-echo ${oplist[*]}
-} | if [ "$eo" = "echo" ]; then
- cat
-else
- sh
-fi
View
139 etc/etc.i386/MAKEDEV.md
@@ -1,139 +0,0 @@
-define(MACHINE,i386)dnl
-vers(__file__,
- {-$OpenBSD: MAKEDEV.md,v 1.70 2014/03/14 23:47:04 kettenis Exp $-},
-etc.MACHINE)dnl
-dnl
-dnl Copyright (c) 2001-2006 Todd T. Fries <todd@OpenBSD.org>
-dnl
-dnl Permission to use, copy, modify, and distribute this software for any
-dnl purpose with or without fee is hereby granted, provided that the above
-dnl copyright notice and this permission notice appear in all copies.
-dnl
-dnl THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-dnl WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-dnl MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-dnl ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-dnl WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-dnl ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-dnl OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-dnl
-dnl
-__devitem(apm, apm, Power management device)dnl
-__devitem(amdmsr, amdmsr, AMD MSR access device)dnl
-__devitem(nvram, nvram, NVRAM access)dnl
-_mkdev(nvram, nvram, {-M nvram c major_nvram_c 0 440 kmem-})dnl
-_mkdev(amdmsr, amdmsr*, {-M amdmsr c major_amdmsr_c $U -})dnl
-_TITLE(make)
-_DEV(all)
-_DEV(ramdisk)
-_DEV(std)
-_DEV(local)
-_TITLE(dis)
-_DEV(cd, 15, 6)
-_DEV(flo, 9, 2)
-_DEV(rd, 47, 17)
-_DEV(sd, 13, 4)
-_DEV(vnd, 41, 14)
-_DEV(wd, 3, 0)
-_TITLE(tap)
-_DEV(ch, 17)
-_DEV(st, 14, 5)
-_TITLE(term)
-_DEV(com, 8)
-_DEV(ttyc, 38)
-_TITLE(pty)
-_DEV(ptm, 81)
-_DEV(pty, 6)
-_DEV(tty, 5)
-_TITLE(cons)
-_DEV(wsdisp, 12)
-_DEV(wscons)
-_DEV(wskbd, 67)
-_DEV(wsmux, 69)
-_TITLE(point)
-_DEV(wsmouse, 68)
-_TITLE(prn)
-_DEV(lpa)
-_DEV(lpt, 16)
-_TITLE(usb)
-_DEV(ttyU, 66)
-_DEV(uall)
-_DEV(ugen, 63)
-_DEV(uhid, 62)
-_DEV(ulpt, 64)
-_DEV(urio, 65)
-_DEV(usb, 61)
-_TITLE(spec)
-_DEV(amdmsr, 89)
-_DEV(apm, 21)
-_DEV(au, 42)
-_DEV(bio, 79)
-_DEV(bktr, 49)
-_DEV(bpf, 23)
-_DEV(bthub, 86)
-_DEV(cry, 70)
-_DEV(diskmap, 91)
-_DEV(drm, 88)
-_DEV(fdesc, 22)
-_DEV(fuse, 93)
-_DEV(gpio, 83)
-_DEV(gpr, 80)
-_DEV(hotplug, 82)
-_DEV(joy, 26)
-_DEV(lkm, 28)
-_DEV(nvram, 84)
-_DEV(pci, 72)
-_DEV(pctr, 46)
-_DEV(pf, 73)
-_DEV(pppx, 92)
-_DEV(radio, 76)
-_DEV(rnd, 45)
-_DEV(rmidi, 52)
-_DEV(speak, 27)
-_DEV(systrace, 78)
-_DEV(tun, 40)
-_DEV(tuner, 49)
-_DEV(uk, 20)
-_DEV(vi, 44)
-_DEV(vscsi, 90)
-dnl
-divert(__mddivert)dnl
-dnl
-ramdisk)
- _recurse std bpf0 fd0 wd0 sd0 tty00 tty01 rd0 bio diskmap
- _recurse st0 cd0 ttyC0 wskbd0 wskbd1 wskbd2 apm random
- ;;
-
-_std(1, 2, 50, 7)
- M xf86 c 2 4 600
- ;;
-
-ttyc*)
- M ttyc$U c 38 $U 660 dialer uucp
- M cuac$U c 38 Add($U, 128) 660 dialer uucp
- ;;
-dnl
-dnl i386 specific targets
-dnl
-twrget(all, au, audio, 0, 1, 2)dnl
-target(all, ch, 0)dnl
-target(all, vscsi, 0)dnl
-target(all, diskmap)dnl
-twrget(all, flo, fd, 0, 0B, 0C, 0D, 0E, 0F, 0G, 0H)dnl
-twrget(all, flo, fd, 1, 1B, 1C, 1D, 1E, 1F, 1G, 1H)dnl
-target(all, pty, 0)dnl
-target(all, bpf, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
-target(all, bio)dnl
-target(all, tun, 0, 1, 2, 3)dnl
-target(all, xy, 0, 1, 2, 3)dnl
-target(all, rd, 0)dnl
-target(all, cd, 0, 1)dnl
-target(all, sd, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9)dnl
-target(all, vnd, 0, 1, 2, 3)dnl
-target(all, bktr, 0)dnl
-target(all, gpio, 0, 1, 2)dnl
-target(all, nvram)dnl
-target(all, bthub, 0, 1, 2)dnl
-target(all, drm, 0, 1, 2, 3)dnl
-target(all, amdmsr)dnl
-twrget(ramd, wsdisp, ttyC, 0)dnl
View
5 etc/etc.i386/Makefile
@@ -1,5 +0,0 @@
-# $OpenBSD: Makefile,v 1.2 2008/06/15 01:51:56 todd Exp $
-
-all: MAKEDEV
-
-.include <bsd.prog.mk>
View
11 etc/etc.i386/Makefile.inc
@@ -1,11 +0,0 @@
-# $OpenBSD: Makefile.inc,v 1.20 2011/07/22 09:30:54 espie Exp $
-
-KERNELS += GENERIC.SP bsd.sp
-
-bootblocks:
- cp ${DESTDIR}/usr/mdec/pxeboot ${RELEASEDIR}
- cp ${DESTDIR}/usr/mdec/cdboot ${RELEASEDIR}
- cp ${DESTDIR}/usr/mdec/cdbr ${RELEASEDIR}
-
-MDEXT= bsd.rd cd${OSrev}.iso \
- pxeboot cdboot cdbr
View
47 etc/etc.i386/disktab
@@ -1,47 +0,0 @@
-# $OpenBSD: disktab,v 1.22 2014/03/02 15:42:49 deraadt Exp $
-
-mini34|gzip bsd.rd disk image 3.40625MB:\
- :ty=SCSI:se#512:nt#1:ns#64:nc#109:\
- :pa#6912:oa#64:ba#8192:fa#1024:ta=4.2BSD: \
- :pc#6976:oc#0:
-
-install240|install.fs disk image 240MB:\
- :ty=SCSI:se#512:nt#1:ns#64:nc#7680:\
- :pa#491456:oa#64:ba#8192:fa#1024:ta=4.2BSD: \
- :pc#491520:oc#0:
-
-floppy288|3in|3.5in High Density Floppy, 2.88MB:\
- :dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#36:nc#80:\
- :pa#5760:oa#0:ba#4096:fa#512:ta=4.2BSD: \
- :pb#5760:ob#0:\
- :pc#5760:oc#0:
-
-floppy|floppy3|3in|3.5in High Density Floppy:\
- :dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#18:nc#80:\
- :pa#2880:oa#0:ba#4096:fa#512:ta=4.2BSD: \
- :pb#2880:ob#0:\
- :pc#2880:oc#0:
-
-floppy5|5in|5.25in High Density Floppy:\
- :dt=floppy:ty=floppy:se#512:nt#2:rm#300:ns#15:nc#80:\
- :pa#2400:oa#0:ba#4096:fa#512:ta=4.2BSD: \
- :pb#2400:ob#0:bb#4096:fb#512:\
- :pc#2400:oc#0:bc#4096:fc#512:
-
-rdroot|ramdiskroot|RAM-disk root FS image:\
- :ty=ramdisk:se#512:nt#2:ns#256:nc#32:\
- :pa#7744:oa#0:ta=4.2BSD:ba#4096:fa#512:\
- :pb#0:ob#0:tb=swap:\
- :pc#7744:oc#0:
-
-rdroot51|ramdiskroot|RAM-disk root FS image:\
- :ty=ramdisk:se#512:nt#4:ns#160:nc#16:\
- :pa#10240:oa#0:ta=4.2BSD:ba#4096:fa#512:\
- :pb#0:ob#0:tb=swap:\
- :pc#10240:oc#0:
-
-rdroot84|ramdiskroot|RAM-disk root FS image:\
- :ty=ramdisk:se#512:nt#4:ns#130:nc#32:\
- :pa#16640:oa#0:ta=4.2BSD:ba#4096:fa#512:\
- :pb#0:ob#0:tb=swap:\
- :pc#16640:oc#0:
View
1  etc/etc.i386/fbtab
@@ -1 +0,0 @@
-/dev/ttyC0 0600 /dev/console:/dev/wskbd:/dev/wskbd0:/dev/wsmouse:/dev/wsmouse0:/dev/ttyCcfg:/dev/drm0
View
7 etc/etc.i386/sysctl.conf
@@ -1,7 +0,0 @@
-#machdep.allowaperture=2 # See xf86(4)
-#machdep.apmhalt=1 # 1=powerdown hack, try if halt -p doesn't work
-#machdep.kbdreset=1 # permit console CTRL-ALT-DEL to do a nice halt
-#machdep.lidsuspend=1 # laptop lid closes cause a suspend
-#machdep.userldt=1 # allow userland programs to play with ldt,
- # required by some ports
-#kern.emul.linux=1 # enable running Linux binaries
View
26 etc/etc.i386/ttys
@@ -1,26 +0,0 @@
-#
-# $OpenBSD: ttys,v 1.18 2008/01/09 17:39:42 miod Exp $
-#
-# name getty type status comments
-#
-console "/usr/libexec/getty std.9600" vt220 off secure
-ttyC0 "/usr/libexec/getty std.9600" vt220 on secure
-ttyC1 "/usr/libexec/getty std.9600" vt220 on secure
-ttyC2 "/usr/libexec/getty std.9600" vt220 on secure
-ttyC3 "/usr/libexec/getty std.9600" vt220 on secure
-ttyC4 "/usr/libexec/getty std.9600" vt220 off secure
-ttyC5 "/usr/libexec/getty std.9600" vt220 on secure
-ttyC6 "/usr/libexec/getty std.9600" vt220 off secure
-ttyC7 "/usr/libexec/getty std.9600" vt220 off secure
-ttyC8 "/usr/libexec/getty std.9600" vt220 off secure
-ttyC9 "/usr/libexec/getty std.9600" vt220 off secure
-ttyCa "/usr/libexec/getty std.9600" vt220 off secure
-ttyCb "/usr/libexec/getty std.9600" vt220 off secure
-tty00 "/usr/libexec/getty std.9600" unknown off
-tty01 "/usr/libexec/getty std.9600" unknown off
-tty02 "/usr/libexec/getty std.9600" unknown off
-tty03 "/usr/libexec/getty std.9600" unknown off
-tty04 "/usr/libexec/getty std.9600" unknown off
-tty05 "/usr/libexec/getty std.9600" unknown off
-tty06 "/usr/libexec/getty std.9600" unknown off
-tty07 "/usr/libexec/getty std.9600" unknown off
View
2  lib/csu/Makefile
@@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.16 2011/07/04 05:54:27 deraadt Exp $
.if make(obj)
-SUBDIR= amd64 arm i386
+SUBDIR= amd64 arm
.else
SUBDIR= ${MACHINE_CPU}
.endif
View
62 lib/csu/i386/Makefile
@@ -1,62 +0,0 @@
-# $OpenBSD: Makefile,v 1.16 2013/12/03 06:21:41 guenther Exp $
-# from: @(#)Makefile 5.5 (Berkeley) 5/21/91
-
-CFLAGS+= -fno-omit-frame-pointer
-OBJS= crt0.o gcrt0.o
-OBJS+= crtbegin.o crtend.o
-OBJS+= crtbeginS.o crtendS.o
-SRCS= crt0.c crtbegin.c crtbeginS.c crtend.c crtendS.c
-
-ELFDIR= ${.CURDIR}/../common_elf
-.PATH: ${ELFDIR}
-CFLAGS+= -I${ELFDIR} -I${.CURDIR}
-
-all: ${OBJS}
-
-crt0.o: crt0.c
- @echo ${COMPILE.c} -DCRT0 -fpie ${ELFDIR}/crt0.c -o ${.TARGET}
- @${COMPILE.c} -DCRT0 -fpie ${ELFDIR}/crt0.c -o ${.TARGET}.o
- @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
- @rm -f ${.TARGET}.o
-
-gcrt0.o: crt0.c
- @echo ${COMPILE.c} -DMCRT0 ${ELFDIR}/crt0.c -o ${.TARGET}
- @${COMPILE.c} -DMCRT0 ${ELFDIR}/crt0.c -o ${.TARGET}.o
- @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
- @rm -f ${.TARGET}.o
-
-crtbegin.o: crtbegin.c
- @echo ${COMPILE.c} -fpie ${ELFDIR}/crtbegin.c -o ${.TARGET}
- @${COMPILE.c} -fpie ${ELFDIR}/crtbegin.c -o ${.TARGET}.o
- @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
- @rm -f ${.TARGET}.o
-
-crtbeginS.o: crtbeginS.c
- @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbeginS.c -o ${.TARGET}
- @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtbeginS.c -o ${.TARGET}.o
- @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
- @rm -f ${.TARGET}.o
-
-crtend.o: crtend.c
- @echo ${COMPILE.c} -fpie ${ELFDIR}/crtend.c -o ${.TARGET}
- @${COMPILE.c} -fpie ${ELFDIR}/crtend.c -o ${.TARGET}.o
- @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
- @rm -f ${.TARGET}.o
-
-crtendS.o: crtendS.c
- @echo ${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtendS.c -o ${.TARGET}
- @${COMPILE.c} ${PICFLAG} ${ELFDIR}/crtendS.c -o ${.TARGET}.o
- @${LD} -x -r -o ${.TARGET} ${.TARGET}.o
- @rm -f ${.TARGET}.o
-
-realinstall:
- ${INSTALL} ${INSTALL_COPY} -S -o ${BINOWN} -g ${BINGRP} -m 444 ${OBJS} \
- ${DESTDIR}/usr/lib
-
-afterdepend: .depend
- @(TMP=/tmp/_depend$$$$; \
- sed -e 's/^\([^\.]*\).o[ ]*:/\1.o g\1.o:/' \
- < .depend > $$TMP; \
- mv $$TMP .depend)
-
-.include <bsd.prog.mk>
View
86 lib/csu/i386/md_init.h
@@ -1,86 +0,0 @@
-/* $OpenBSD: md_init.h,v 1.4 2013/12/03 06:21:41 guenther Exp $ */
-
-/*-
- * Copyright (c) 2001 Ross Harvey
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the NetBSD
- * Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- * contributors may be used to endorse or promote products derived
- * from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#define MD_SECT_CALL_FUNC(section, func) \
- __asm (".section "#section", \"ax\"\n" \
- " call " #func "\n" \
- " .previous")
-
-/*
- * Align is after because we want the function to start at the first
- * address of the section, but overall we want the section to be
- * aligned by the align amount.
- */
-#define MD_SECTION_PROLOGUE(sect, entry_pt) \
- __asm ( \
- ".section "#sect",\"ax\",@progbits \n" \
- " .globl " #entry_pt " \n" \
- " .type " #entry_pt ",@function \n" \
- #entry_pt": \n" \
- " .align 16 \n" \
- " pushl %ebp \n" \
- " movl %esp,%ebp \n" \
- " andl $~15,%esp \n" \
- " .previous")
-
-
-#define MD_SECTION_EPILOGUE(sect) \
- __asm ( \
- ".section "#sect",\"ax\",@progbits \n" \
- " leave \n" \
- " ret \n" \
- " .previous")
-
-
-#define MD_CRT0_START \
- __asm( \
- ".text \n" \
- " .align 4 \n" \
- " .globl __start \n" \
- " .globl _start \n" \
- "_start: \n" \
- "__start: \n" \
- " movl %esp,%ebp \n" \
- " andl $~15,%esp # align stack\n" \
- " pushl %edx # cleanup\n" \
- " movl 0(%ebp),%eax \n" \
- " leal 8(%ebp,%eax,4),%ecx \n" \
- " leal 4(%ebp),%edx \n" \
- " pushl %ecx \n" \
- " pushl %edx \n" \
- " pushl %eax \n" \
- " xorl %ebp,%ebp # mark deepest stack frame\n" \
- " call ___start \n" \
- " .previous")
View
2  lib/libarch/Makefile
@@ -1,6 +1,6 @@
# $OpenBSD: Makefile,v 1.8 2009/09/27 18:20:11 miod Exp $
# $NetBSD: Makefile,v 1.8 1996/02/21 02:43:52 jtk Exp $
-SUBDIR= amd64 arm i386
+SUBDIR= amd64 arm
.include <bsd.subdir.mk>
View
27 lib/libarch/i386/Makefile
@@ -1,27 +0,0 @@
-# $OpenBSD: Makefile,v 1.6 2011/03/12 04:12:29 guenther Exp $
-# $NetBSD: Makefile,v 1.1 1996/02/21 02:45:47 jtk Exp $
-
-MAN+= i386_get_ldt.2 \
- i386_get_fsbase.2 i386_get_gsbase.2 \
- i386_iopl.2 i386_get_ioperm.2 \
- i386_vm86.2
-MANSUBDIR=i386
-MLINKS+=i386_get_ldt.2 i386_set_ldt.2 \
- i386_get_fsbase.2 i386_set_fsbase.2 \
- i386_get_gsbase.2 i386_set_gsbase.2 \
- i386_get_ioperm.2 i386_set_ioperm.2
-
-.if ${MACHINE} == "i386"
-.PATH: ${LIBC}/i386
-NOPIC=
-SRCS+= i386_get_ldt.c i386_set_ldt.c \
- i386_iopl.c i386_get_ioperm.c i386_set_ioperm.c \
- i386_get_fsbase.c i386_get_gsbase.c \
- i386_set_fsbase.c i386_set_gsbase.c \
- i386_vm86.c
-.include <bsd.lib.mk>
-.else
-NOPROG=
-.include <bsd.prog.mk>
-.endif
-
View
92 lib/libarch/i386/i386_get_fsbase.2
@@ -1,92 +0,0 @@
-.\" $OpenBSD: i386_get_fsbase.2,v 1.3 2012/04/12 19:20:07 jmc Exp $
-.\" $NetBSD: i386_get_ioperm.2,v 1.3 1996/02/27 22:57:17 jtc Exp $
-.\"
-.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by John T. Kohl and Charles M. Hannum.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
-.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd $Mdocdate: April 12 2012 $
-.Dt I386_GET_FSBASE 2 i386
-.Os
-.Sh NAME
-.Nm i386_get_fsbase ,
-.Nm i386_set_fsbase
-.Nd manage i386 per-thread %fs base address
-.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <machine/sysarch.h>
-.Ft int
-.Fn i386_get_fsbase "void **base"
-.Ft int
-.Fn i386_set_fsbase "void *base"
-.Sh DESCRIPTION
-.Fn i386_get_fsbase
-copies the current base address of the segment that, by default,
-is referenced by the %fs selector into the memory referenced by
-.Fa base .
-.Pp
-.Fn i386_set_fsbase
-sets the base address of the segment that, by default, is referenced
-by %fs to the address
-.Fa base .
-.Pp
-The segment base address is local to each thread.
-The initial thread of a new process inherits its segment base address
-from the parent thread.
-.Xr __tfork 2
-sets the initial segment base address for threads that it creates.
-.Pp
-.Sy Note:
-Code using the
-.Fn i386_get_fsbase
-and
-.Fn i386_set_fsbase
-functions must be compiled using
-.Cm -li386 .
-.Sh RETURN VALUES
-Upon successful completion,
-.Fn i386_get_fsbase
-and
-.Fn i386_set_fsbase
-return 0.
-Otherwise, a value of \-1 is returned and the global variable
-.Va errno
-is set to indicate the error.
-.Sh ERRORS
-.Fn i386_get_fsbase
-will fail if:
-.Bl -tag -width [EINVAL]
-.It Bq Er EFAULT
-.Fa base
-points outside the process's allocated address space.
-.El
-.Sh SEE ALSO
-.Xr __tfork 2 ,
-.Xr fork 2
-.Rs
-.%A Intel
-.%T i386 Microprocessor Programmer's Reference Manual
-.Re
View
42 lib/libarch/i386/i386_get_fsbase.c
@@ -1,42 +0,0 @@
-/* $OpenBSD: i386_get_fsbase.c,v 1.2 2012/12/05 23:19:58 deraadt Exp $ */
-/* $NetBSD: i386_get_ioperm.c,v 1.2 1996/02/27 22:57:22 jtc Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by John T. Kohl and Charles M. Hannum.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/types.h>
-
-#include <machine/segments.h>
-#include <machine/sysarch.h>
-
-int
-i386_get_fsbase(void **base)
-{
- return sysarch(I386_GET_FSBASE, base);
-}
View
102 lib/libarch/i386/i386_get_gsbase.2
@@ -1,102 +0,0 @@
-.\" $OpenBSD: i386_get_gsbase.2,v 1.3 2012/04/12 19:20:07 jmc Exp $
-.\" $NetBSD: i386_get_ioperm.2,v 1.3 1996/02/27 22:57:17 jtc Exp $
-.\"
-.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by John T. Kohl and Charles M. Hannum.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
-.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd $Mdocdate: April 12 2012 $
-.Dt I386_GET_GSBASE 2 i386
-.Os
-.Sh NAME
-.Nm i386_get_gsbase ,
-.Nm i386_set_gsbase
-.Nd manage i386 per-thread %gs base address
-.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <machine/sysarch.h>
-.Ft int
-.Fn i386_get_gsbase "void **base"
-.Ft int
-.Fn i386_set_gsbase "void *base"
-.Sh DESCRIPTION
-.Fn i386_get_gsbase
-copies the current base address of the segment that, by default,
-is referenced by the %gs selector into the memory referenced by
-.Fa base .
-.Pp
-.Fn i386_set_gsbase
-sets the base address of the segment that, by default, is referenced
-by %gs to the address
-.Fa base .
-.Pp
-The segment base address is local to each thread.
-The initial thread of a new process inherits its segment base address
-from the parent thread.
-.Xr __tfork 2
-sets the initial segment base address for threads that it creates.
-.Pp
-.Sy Note:
-Code using the
-.Fn i386_get_gsbase
-and
-.Fn i386_set_gsbase
-functions must be compiled using
-.Cm -li386 .
-.Sh RETURN VALUES
-Upon successful completion,
-.Fn i386_get_gsbase
-and
-.Fn i386_set_gsbase
-return 0.
-Otherwise, a value of \-1 is returned and the global variable
-.Va errno
-is set to indicate the error.
-.Sh ERRORS
-.Fn i386_get_gsbase
-will fail if:
-.Bl -tag -width [EINVAL]
-.It Bq Er EFAULT
-.Fa base
-points outside the process's allocated address space.
-.El
-.Sh SEE ALSO
-.Xr __tfork 2 ,
-.Xr fork 2
-.Rs
-.%A Intel
-.%T i386 Microprocessor Programmer's Reference Manual
-.Re
-.Sh WARNING
-The ELF Thread-Local Storage ABI reserves %gs for its own use and
-requires that the dynamic linker and thread library set it to
-reference data-structures internal to and shared between them.
-Programs should use the __thread storage class keyword instead of
-using these calls.
-To be maximally portable,
-programs that require per-thread data should use the
-.Fn pthread_key_create
-interface.
View
42 lib/libarch/i386/i386_get_gsbase.c
@@ -1,42 +0,0 @@
-/* $OpenBSD: i386_get_gsbase.c,v 1.2 2012/12/05 23:19:58 deraadt Exp $ */
-/* $NetBSD: i386_get_ioperm.c,v 1.2 1996/02/27 22:57:22 jtc Exp $ */
-
-/*-
- * Copyright (c) 1996 The NetBSD Foundation, Inc.
- * All rights reserved.
- *
- * This code is derived from software contributed to The NetBSD Foundation
- * by John T. Kohl and Charles M. Hannum.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/types.h>
-
-#include <machine/segments.h>
-#include <machine/sysarch.h>
-
-int
-i386_get_gsbase(void **base)
-{
- return sysarch(I386_GET_GSBASE, base);
-}
View
122 lib/libarch/i386/i386_get_ioperm.2
@@ -1,122 +0,0 @@
-.\" $OpenBSD: i386_get_ioperm.2,v 1.15 2013/09/14 14:58:54 jmc Exp $
-.\" $NetBSD: i386_get_ioperm.2,v 1.3 1996/02/27 22:57:17 jtc Exp $
-.\"
-.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
-.\" All rights reserved.
-.\"
-.\" This code is derived from software contributed to The NetBSD Foundation
-.\" by John T. Kohl and Charles M. Hannum.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\" notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\" notice, this list of conditions and the following disclaimer in the
-.\" documentation and/or other materials provided with the distribution.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
-.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-.\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
-.\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
-.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
-.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
-.\" POSSIBILITY OF SUCH DAMAGE.
-.\"
-.Dd $Mdocdate: September 14 2013 $
-.Dt I386_GET_IOPERM 2 i386
-.Os
-.Sh NAME
-.Nm i386_get_ioperm ,
-.Nm i386_set_ioperm
-.Nd manage i386 per-process I/O permission bitmap
-.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <machine/sysarch.h>
-.Ft int
-.Fn i386_get_ioperm "u_long *iomap"
-.Ft int
-.Fn i386_set_ioperm "u_long *iomap"
-.Sh DESCRIPTION
-.Fn i386_get_ioperm
-copies the current I/O permission bitmap into the memory referenced by
-.Fa iomap .
-.Pp
-.Fn i386_set_ioperm
-sets the I/O permission bitmap from the data pointed to by
-.Fa iomap .
-This call may only be made by the superuser.
-Additionally, it is only permitted when the
-.Xr securelevel 7
-is less than or equal to 0 or the
-.Va machdep.allowaperture
-sysctl has been set to a non-zero value.
-.Pp
-The permission bitmap contains 1024 bits in 32 longwords.
-If bit
-.Va n
-is clear in the bitmap, then access is granted to I/O port
-.Va n .
-If bit
-.Va n
-is set in the bitmap, then an attempt to access I/O port
-.Va n
-results in delivery of a
-.Dv SIGBUS
-signal unless the process's I/O permission level would grant I/O access.
-.Pp
-.Sy Note:
-Code using the
-.Fn i386_get_ioperm
-and
-.Fn i386_set_ioperm
-functions must be compiled using
-.Cm -li386 .
-.Sh RETURN VALUES
-Upon successful completion,
-.Fn i386_get_ioperm
-and
-.Fn i386_set_ioperm
-return 0.
-Otherwise, a value of \-1 is returned and the global variable
-.Va errno
-is set to indicate the error.
-.Sh ERRORS
-.Fn i386_get_ioperm
-and
-.Fn i386_set_ioperm
-will fail if:
-.Bl -tag -width [EINVAL]
-.It Bq Er EFAULT
-.Fa iomap
-points outside the process's allocated address space.
-.El
-.Pp
-Additionally
-.Fn i386_set_ioperm
-will fail if:
-.Bl -tag -width [EINVAL]
-.It Bq Er EPERM
-The caller was not the superuser, or the securelevel is greater than zero and
-.Va machdep.allowaperture
-has not been set to a non-zero value.
-.El
-.Sh SEE ALSO