Commit Graph

228175 Commits

Author SHA1 Message Date
dholland
c6bc30fe7e Add a file to help keep track of what's where and what we never
actually had.
2014-07-05 19:36:16 +00:00
dholland
29e097b982 Update set lists for /usr/share/doc reorg. 2014-07-05 19:25:58 +00:00
dholland
5e7854467d Update the distrib-dirs mtree specification for the new /usr/share/doc
layout.
2014-07-05 19:23:56 +00:00
dholland
0663904a6f Remove HTMLDOCDIR; it is no longer used (and doesn't fit the docs
scheme) and it was never honored anyway except in a couple places.
2014-07-05 19:23:38 +00:00
dholland
0580599ec4 Reorg docs, part 3:
Move the documents that are papers to /usr/share/doc/papers.
Give them suitable names (including the author and year).

The key property of papers that distinguishes them from documentation
is that they're historical: they're published at a particular time and
aren't updated or maintained. (Except cosmetically.)

We should only ship papers that are of interest to users, either for
historical perspective or because they're the original research
writeup of stuff that went into the system and is still pertinent.

The ffs papers clearly meet this standard; the other one here (about
passwords, in 1978) is probably past its sell-by date.
2014-07-05 19:23:15 +00:00
dholland
dcc711d503 Reorg docs, part 2:
Rename the following reference documents to match their programs:
   shell -> sh
   viref -> vi

and rename the following to match their topic better:
   ipctut -> sockets
   ipc -> sockets-advanced

Also, the old "timed" and "timedop" docs are now ref5/timed and
ref8/timed respectively, as the first of these documented the
protocol.
2014-07-05 19:23:00 +00:00
dholland
b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
dholland
c3ab26950f Rework /usr/share/doc.
Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
2014-07-05 19:22:02 +00:00
jakllsch
f620188474 Use M_ZERO. From OpenBSD if_wpi.c 1.53. 2014-07-05 17:39:21 +00:00
jakllsch
18ead5c7f1 Reduce wpi(4) diff to OpenBSD circa September 2007; mostly by following KNF.
The only functional changes in this commit are some %d to %u debugging printf
format specifier adjustments so as to match the OpenBSD code.
2014-07-05 17:18:11 +00:00
alnsn
b7e8e67d4c Review some SLJIT_MOV instructions with respect to width. 2014-07-05 11:13:13 +00:00
skrll
d143bb9ac3 PR/48964: In urndis(4), initialization of ifnet structure is not enough,
cause panic.

Update urndis_init to return and error and use as if_init based on the
patch in the PR with stylistic changes from me.

XXX IFF_RUNNING should be ignored here?
2014-07-05 11:13:12 +00:00
tsutsui
1c0f21ce7d Regen from GENERIC.in rev 1.125:
> Use COPTS="-O2 -fno-reorder-blocks" for kernels except INSTALL_CONFIGURATION.
2014-07-05 10:00:42 +00:00
tsutsui
f0e52d8a7e Use COPTS="-O2 -fno-reorder-blocks" for kernels except INSTALL_CONFIGURATION. 2014-07-05 09:59:06 +00:00
tsutsui
8ec9eb0dc7 Regen to reflect GENERIC.in rev 1.121-1.124:
rev 1.121:
> dd preliminary support for the Individual Computers ACA500 in the form of acahf
> driver. If ACA500 is equipped with supported accelerator with MMU, it allows
> running NetBSD on an Amiga 500.
>
> Since ACA is not autoconf-aware, and the probe procedure does not exist yet, the
> driver is activated with the ACA500_SUPPORT kernel option. The acahf driver
> is commented out in the GENERIC kernel for now (at least until it stops being
> very experimental and hackish).
>
> When it comes to ACA-specific hardware, for now the boot CF slot works. Support for everything else is incoming...

rev 1.122:
> Changes to ACA500 support:
> - Add support for second (aux) CF slot.
> - Rework wdc attachment to be more sane.
> - Add support for clockport on ACA500.
> - Fix style where appropriate.

rev 1.123:
> Implement the probe procedure for ACA500. Now the user just needs acafh0
> compiled in his kernel and it all should(tm) work.
>
> Due to lack of obio in amiga port, the probe is called directly from mbattach().
> This is going to change with the introduction of obio for all non-autoconfig
> expansions.

rev 1.124:
> Disable X-Surf devices for DRACO's configuration.
>
> - ne at xsh requires ax88190 and ax88190 requires mii(4),
>   but all mii devices are declared only inside AMIGA_CONFIGURATION
> - X-Surf also add wdc(4) but all children devices like atabus and
>   atapibus are declared only for AMIGA_CONFIGURATION
>
> XXX: DRACO kernel is not built during build.sh release.
2014-07-05 09:55:42 +00:00
tsutsui
c17425a8a2 Disable X-Surf devices for DRACO's configuration.
- ne at xsh requires ax88190 and ax88190 requires mii(4),
  but all mii devices are declared only inside AMIGA_CONFIGURATION
- X-Surf also add wdc(4) but all children devices like atabus and
  atapibus are declared only for AMIGA_CONFIGURATION

XXX: DRACO kernel is not built during build.sh release.
2014-07-05 09:47:30 +00:00
tsutsui
59070ac647 ne at xshbus seems to require ax88190, per if_ne_xsh.c.
On the other hand, dp8390nic is pulled by ne in sys/conf/files
so it isn't required here.
2014-07-05 09:39:35 +00:00
tsutsui
fce93f1ab3 Appease gcc48 -Wunused-but-set-variable warning. 2014-07-05 09:36:49 +00:00
hannken
0d77f6a387 Use vcache_rekey_* for nfs_lookitup() in the "*npp != NULL" case. 2014-07-05 09:33:41 +00:00
hannken
51464fb45f Add vcache operations to support key changes:
vcache_rekey_enter locks the old cache node and creates and locks the
  new cache node.  It is an error if the new cache node exists.

vcache_rekey_exit removes the old cache node and finalizes and
  unlocks the new cache node.

No objections on tech-kern@

Welcome to 6.99.46
2014-07-05 09:33:15 +00:00
tsutsui
afecb865fe Regen from MILAN.in rev 1.27 and GENERIC.in rev 1.106:
> Enable options WSDISPLAY_COMPAT_USL in template, not in generated files.

> Use COPTS="-O2 -fno-reorder-blocks" for kernels except SMALL030_KERNEL.
>
> Also remove COPTS="-Os" from std.* files and specify it in
> GENERIC.in template for SMALL030_KERNEL.
2014-07-05 09:32:48 +00:00
tsutsui
705867df4c Regen from GENERIC.in rev 1.106:
> Use COPTS="-O2 -fno-reorder-blocks" for kernels except SMALL030_KERNEL.
>
> Also remove COPTS="-Os" from std.* files and specify it in
> GENERIC.in template for SMALL030_KERNEL.
2014-07-05 09:31:21 +00:00
skrll
c854549c52 PR/48963: kmem_free size mismatch causes panic when attaching urndis(4).
Fix the size passed in kmem_free in the urndis_ctrl_{query,set} functions
2014-07-05 09:30:08 +00:00
tsutsui
a7b24ea41d Use COPTS="-O2 -fno-reorder-blocks" for kernels except SMALL030_KERNEL.
Also remove COPTS="-Os" from std.* files and specify it in
GENERIC.in template for SMALL030_KERNEL.
2014-07-05 09:28:48 +00:00
tsutsui
f0ff36e86d Enable options WSDISPLAY_COMPAT_USL in template, not in generated files. 2014-07-05 09:24:23 +00:00
tsutsui
63fc04e1bf Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.
Compile tests only.
2014-07-05 09:21:14 +00:00
tsutsui
536878dec6 Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.
with "-O2":
   text    data     bss     dec     hex filename
2898020   54292  122728 3075040  2eebe0 netbsd

with "-O2 -fno-reorder-blocks":
   text    data     bss     dec     hex filename
2589888   54292  122728 2766908  2a383c netbsd
2014-07-05 09:18:47 +00:00
tsutsui
27f5dd222d Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.
with "-O2":
   text    data     bss     dec     hex filename
2064824   48784   85920 2199528  218fe8 netbsd

with "-O2 -fno-reorder-blocks":
   text    data     bss     dec     hex filename
1842944   48784   85920 1977648  1e2d30 netbsd
2014-07-05 09:16:45 +00:00
tsutsui
bb79edc987 Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.
with "-O2":
   text    data     bss     dec     hex filename
3717740   86092  152864 3956696  3c5fd8 netbsd

with "-O2 -fno-reorder-blocks":
   text    data     bss     dec     hex filename
3304404   86092  152864 3543360  361140 netbsd
2014-07-05 09:15:38 +00:00
tsutsui
9a31b44a41 Use COPTS="-O2 -fno-reorder-blocks" as defined in sys.mk for userland.
with "-O2":
   text    data     bss     dec     hex filename
3297898   65044  122584 3485526  352f56 netbsd

with "-O2 -fno-reorder-blocks":
   text    data     bss     dec     hex filename
2930782   65044  122584 3118410  2f954a netbsd
2014-07-05 09:14:02 +00:00
alnsn
24d883a5bc Add optimization hints. They replace nscratches and ncopfuncs and improve
readability.
2014-07-04 21:32:08 +00:00
jmcneill
65c6ea680a ${.PARSEDIR} not .${PARSEDIR} for Makefile.compiler-rt include 2014-07-04 16:44:26 +00:00
martin
589d32fb2c Adapt to struct buf changes 2014-07-04 08:51:15 +00:00
martin
b99d8c4997 Adapt to new attach world order 2014-07-04 08:33:08 +00:00
martin
ae2c055efb Add missing includes, fix C99 struct initialization 2014-07-04 08:09:47 +00:00
martin
7db833408c Use .set arch=r5900 to enable r5900 specific instructions 2014-07-04 07:59:17 +00:00
martin
3f40a990f2 Fix extent_create() call 2014-07-04 07:51:14 +00:00
martin
d42796f67d Add missing <sys/device.h> include 2014-07-04 07:27:57 +00:00
martin
3bdb758acc md_imask_update is not an inline function, fix declaration. 2014-07-04 07:27:28 +00:00
martin
637a4fdb26 Add missing OBJCOPY 2014-07-04 07:03:35 +00:00
ozaki-r
bcc1163e82 Fix pktq_enqueue for rump
Add _RUMP_NATIVE_ABI to the macro condition for i386 and x86_64 because
_RUMPKERNEL is not defined for them. See sys/rump/Makefile.rump.

Found by ATF
2014-07-04 01:50:22 +00:00
riastradh
29a70da5ff Add some notes on using these shims to port Linux kernel code. 2014-07-03 20:48:19 +00:00
msaitoh
b01a0aea47 Regen. 2014-07-03 19:09:16 +00:00
msaitoh
92dcb9d867 Add some Intel X38 devices. 2014-07-03 19:08:31 +00:00
msaitoh
fdfbcc0346 Fix some entries:
- Desc 0x55 and 0xb1 are Instruction TLB but not fixed to 4K.
 - Desc 0x5a and 0xc0 are Data TLB but not fixed to 4K.
 - Desc 0x57 and 0x59 are 4K fixed DTLB.
 - Fix string of desc 0xc2 and it's not fixed to 4K.
 - Desc 0xca is 4K fixed L2 shared TLB.
 - Add desc 0xa0.

BUG: A lot of CPUs have multiple CAI_DTLB and/or CAI_DTLB2 entries. Currently
TLB info is indexed in ci_cinfo[CAI_COUNT], so some info is overwritten.

Nowadays CPUs have very complexed TLBs. It's hard to manage with CAI_* index.
We should think to separate TLB info structure from ci_cinfo[CAI_COUNT]
in struct cpu_info.
2014-07-03 17:24:33 +00:00
maxv
57fd3cffd6 Change the pattern of KMEM_REDZONE so that the first byte is never '\0'.
From me and lars@.
2014-07-03 08:43:49 +00:00
skrll
a65e94de03 Trailing whitespace. 2014-07-03 07:18:42 +00:00
msaitoh
74aebcc5ae Exclude descriptor 0xff of CPUID leaf 2. 0xff means the cacheinfo is in leaf 4. 2014-07-03 04:11:37 +00:00
msaitoh
c825b49f6f Add BCM5706. 2014-07-02 22:35:10 +00:00
msaitoh
1f3dc9f187 Regen. 2014-07-02 22:33:39 +00:00