Commit Graph

228300 Commits

Author SHA1 Message Date
maxv
8d909506c6 Remove this (symtabindex == -1) check; it is already handled by (nsym != 1).
Put a KASSERT instead.
2014-07-06 15:35:32 +00:00
maxv
3021bdd8e1 Use a macro instead of always putting __func__ and __LINE__. 2014-07-06 15:22:31 +00:00
rtr
74a10d6a1d fix pasto in function name should be natm_stat instead of natm_ioctl 2014-07-06 15:09:38 +00:00
zafer
9ac4e1c7a3 mention requirements for custom kernels. 2014-07-06 14:41:24 +00:00
dholland
9cee3fb5f3 fix docs for MKHTML=no 2014-07-06 08:53:15 +00:00
tsutsui
380af6b8c5 Probe the actual memory size and warn if it's different from SRAM value.
Without this, ancient X680x0 machines with a dead SRAM battery will
fail to boot silently (or hang right after early copyright messages).

Discussed with and reviewed by isaki@.

XXX: probably we should rather pass the probed memory size to a kernel
XXX: than the size value stored in SRAM..
2014-07-06 08:10:21 +00:00
mrg
c496beb132 make sure struct bat is aligned to 8 bytes as we shift them 3 bits.
fixes PReP lossage as reported on port-powerpc and port-prep.
thanks to makoto@ki.nu and kiyohara@netbsd.
2014-07-06 08:06:03 +00:00
maxv
477e684b2e Check .evs_used==0 instead of .evs_cmds==NULL. evs_cmds would not be NULL if
another _makecmds() had allocated and deallocated VMCMDs (not the case
currently).
2014-07-06 07:41:41 +00:00
dholland
92684d2864 Don't install EXTRAHTMLFILES if MKHTML is "no". 2014-07-06 06:34:33 +00:00
tsutsui
6f882c23d6 Merge and share boot.c between normal boot and netboot by dumb #ifdefs.
Tested on XM6i.
2014-07-06 06:28:49 +00:00
dholland
f99f788cdd New sentence, new line. 2014-07-06 05:32:30 +00:00
tsutsui
2401487ebe Reduce diffs to prepare to merge these files. 2014-07-06 05:31:02 +00:00
dholland
75eb1ae2e9 Minor updates - I've attempted to catch the most glaringly outdated
statements but haven't made any effort yet to rewrite the main content.
2014-07-06 05:16:18 +00:00
rtr
c8a2e91d5f * split PRU_SENSE functionality out of mpls_usrreq() and place into
separate mpls_stat(struct socket *, struct stat *) function

missed this in previous commit, fixes build of ALL kernel.
2014-07-06 04:47:26 +00:00
rtr
a60320ca07 * split PRU_SENSE functionality out of xxx_usrreq() switches and place into
separate xxx_stat(struct socket *, struct stat *) functions.
* replace calls using pr_generic with req == PRU_SENSE with pr_stat().

further change will follow that cleans up the pattern used to extract the
pcb and test for its presence.

reviewed by rmind
2014-07-06 03:33:33 +00:00
joerg
aa565dfb01 Add unused memory model argument to make GCC happy. 2014-07-06 01:19:45 +00:00
joerg
2c9706a997 When building GCC with Clang, disable optimizations for tree.c until I
can figure out what is responsible for the miscompilation.
2014-07-06 00:21:24 +00:00
dholland
d54dab14a9 remove .if make(install) 2014-07-05 23:13:41 +00:00
dholland
076d336118 remove .if make(install)
these are seriously bad juju
2014-07-05 23:12:33 +00:00
dholland
efe0bd4dbe Remove stray .if make(insatll).
I would really like to know why this didn't fail the clean build I ran
last night.
2014-07-05 22:31:32 +00:00
dholland
a65ff1afdf Put /usr/share/doc/reference/ref1/make in the right list. The dirs are
always created.
2014-07-05 22:08:14 +00:00
alnsn
f51780ddcb Implement error checking in m_xbyte() and check for errors after m_xbyte() call.
Reuse (len - k) expression in m_xword() and m_xhalf() to give an optimization
hint to a compiler.

When m_xbyte() didn't exist, bpf_filter() handled out-of-bounds BPF_B loads
correctly because "return 0" inside MINDEX() was aborting filter programs.
After the change that added m_xbyte() zero values were passed to A or X
registers instead of aborting a filter program.
2014-07-05 22:06:11 +00:00
joerg
21205470c2 Remove atomic hack for ARM, libc now provides the missing symbols. 2014-07-05 20:45:49 +00:00
joerg
3ba4836216 Provide a basic implementation of __atomic_load_* and __atomic_store_*,
used by GCC and LLVM as backing for C11/C++11 atomics, if the hardware
is not known to have corresponding features. Include it on ARM as LLVM
and libc++ hit it when compiled for ARMv4.
2014-07-05 20:44:46 +00:00
joerg
2b102b68a4 Drop entries for LLVM/Clang older than 3.4. 2014-07-05 20:17:50 +00:00
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