Commit Graph

88951 Commits

Author SHA1 Message Date
enami 76858f7620 When initially allocating or extending arrays in struct uvm_amap,
adjust allocation size using malloc_roundup().  This eliminates many
unnecessary malloc/memcpy calls.
2001-12-05 01:33:09 +00:00
enami 996ee10484 Introduce new function malloc_roundup(), suggested by Bill Sommerfeld
on tech-kern.
2001-12-05 01:29:04 +00:00
augustss 037eb62a0f Mention that much of the code was stolen from Tommy Bohlin. 2001-12-05 01:13:58 +00:00
thorpej 03efee5585 * Allow machine-dependent code to specify hooks for ptrace(2)
(__HAVE_PTRACE_MACHDEP) and procfs (__HAVE_PROCFS_MACHDEP).
  These changes will allow platforms like x86 (XMM) and PowerPC
  (AltiVec) to export extended register sets in a sane manner.

* Use __HAVE_PTRACE_MACHDEP to export x86 XMM registers (standard
  FP + SSE/SSE2) using PT_{GET,SET}XMMREGS (in the machdep
  ptrace request space).
* Use __HAVE_PROCFS_MACHDEP to export x86 XMM registers via
  /proc/N/xmmregs in procfs.
2001-12-05 00:58:05 +00:00
enami fbfa7f8e61 No need to zero clear after amap->am_bckptr[amap->am_nslot], since we're
clearing corresponding elements in an array amap->am_anon[].
2001-12-05 00:34:05 +00:00
enami d2391ede6a Remove extern from function prototype. 2001-12-05 00:00:10 +00:00
enami 769949847d KNF and other cosmetic changes. 2001-12-04 23:56:36 +00:00
wiz 04b24f8e2a Misc fixes. 2001-12-04 23:42:02 +00:00
augustss 3ead5262dd Add some dongle support ioctl()s. 2001-12-04 23:33:33 +00:00
augustss 56c82209ee Update with irframe API descriptions. 2001-12-04 23:29:14 +00:00
wiz 8a84fcd9f0 Sort SEE ALSO. 2001-12-04 23:16:15 +00:00
lukem 612e777b6e s/defopt/defflag/ 2001-12-04 23:14:48 +00:00
christos e363b58375 Make sure that the we have a valid pathname. [We did the check too late,
and we had a buffer overflow].  Bug found by Sebastian Krahmer of SuSE,
fix inspired by patch 008 for OpenBSD-3.0.
2001-12-04 22:52:44 +00:00
manu 9dfecbefdb Fixed stack setup for argument passing. argc and **argv need to be aligned
on a 16 bytes boundary. To get things done, we currently duplicate a lot of
code from copyargs(), this should be done in a nicer way.
2001-12-04 22:13:41 +00:00
augustss 527fff66c0 Change speed setting a little. 2001-12-04 21:50:50 +00:00
augustss e0b032d651 Add ir/ to SUBDIR. 2001-12-04 21:43:44 +00:00
ross cbaa950b62 code cleanup for portability 2001-12-04 21:32:15 +00:00
jdolecek a3894c8cef note the NCR 53C90 (esp) driver
xref ne(4)
mark AHA-1640 as "not tested recently"
2001-12-04 20:55:47 +00:00
augustss 64a9c02472 Implement speed setting. 2001-12-04 20:53:21 +00:00
jdolecek d908c8f196 note MCA attachment 2001-12-04 20:52:48 +00:00
jdolecek a275d0a6b9 clarify copyright - this is all freshly written, no older code used 2001-12-04 20:51:23 +00:00
jdolecek f1243fa104 add 'esp at mca? slot ?' and 'scsibus* at esp?' 2001-12-04 20:49:40 +00:00
jdolecek 7a12ca98ab Make this NCR 53C90 driver work, using the chip information from
Tymm Twillman's Linux mca_53c9x driver.
Tested with external ZIP100 only.
2001-12-04 20:47:58 +00:00
jdolecek 7851c7aacd document M_CANFAIL 2001-12-04 20:39:02 +00:00
jdolecek c152d680d8 Add M_CANFAIL malloc(9) flag. This flag changes behaviour in M_WAITOK
case when the requested memory size can't ever be granted - instead
of panic, malloc(9) would return failure (NULL).
Note kernel code should do proper bound checking, rather than
depend on M_CANFAIL. This flag is only supposed to be used in very
special cases, where common bound checking is not appropriate.

Discussed on tech-kern@, name ``M_CANFAIL'' suggested by Chuck Cranor.
2001-12-04 20:13:19 +00:00
sommerfeld ceb358f80c Fix so these files build with options DEBUG enabled.
The change to edc_mca.c may not work as I don't have any mca hardware.
2001-12-04 20:00:15 +00:00
jdolecek 20353052f0 the dump device isn't hardcoded into compiled kernel commonly nowadays
xref swapctl(8)
2001-12-04 19:56:55 +00:00
augustss 636b7788a1 Implement input processing (untested). 2001-12-04 19:56:43 +00:00
augustss 1db6a7d9df Simplify interface to irframe. 2001-12-04 19:56:17 +00:00
thorpej f7141449f2 When doing process_s87_to_xmm(), don't restore the "saved SW from
last exception"; the userland-visible fpreg structure doesn't
include it.

Pointed out by enami tsugutomo <enami@sm.sony.co.jp>.
2001-12-04 19:41:47 +00:00
thorpej 2684ea2b22 Don't declare which exec formats to support in loadfile_machdep.h.
Instead, give each user of loadfile() control over which exec formats
it wants to support.
2001-12-04 18:54:34 +00:00
is 0614c8a6ad Really merge in Adam Ciarcinskis spl$foo() code, which should have been
in long ago.
2001-12-04 18:54:11 +00:00
christos 4950567ffc Regen. 2001-12-04 18:46:51 +00:00
christos 9925bfcf9f PR/13711: Peter Seebach: Symbol's Spectrum24 pcmcia/prism2 card isn't probed. 2001-12-04 18:46:30 +00:00
bjh21 5aee55caae New file, describing what little I know of the layout of the Oak SCSI card. 2001-12-04 18:40:14 +00:00
christos 10b6cdd540 PR/14817: Gregory McGarry: NFS_V2_ONLY doesn't seem to work. 2001-12-04 18:38:08 +00:00
jmc c15d918f56 Add bsd.prog.mk for libhack components 2001-12-04 18:14:20 +00:00
wiz b4371d47f5 Replace some misuses of "then" with "than". 2001-12-04 17:56:30 +00:00
atatat 73aae2a161 Stuff the target names (the kernel names) into a make variable so that
ports that build "alternate" versions of the same target can clean up
properly.
2001-12-04 17:53:40 +00:00
wiz a19ffa4418 Add ./usr/lkm/compat_freebsd.o. 2001-12-04 17:36:58 +00:00
christos f6f0ceea17 PR/14639: Ben Harris: Stick the rcsid's in the data segment via inline
assembly, so that we don't get duplicate symbol errors when we have multiple
__KERNEL_RCSID's
2001-12-04 16:44:55 +00:00
christos bb58ba64b2 - knf
- use cpp -traditional, since the default has now changed. We want to allow
  unmatched single quotes!
- use fparseln, instead of a fixed 2k buffer.
- make all locals static and move to the top. This is so we can eventually
  make calendar understand languages other than us_en
- add braces and continue's to clarify things.
- replace gratuitous fprintf uses with warnx.
- replace vforks() with forks() since we tried to print errors with stdio.
- add more warnings so that we know how things fail.

XXX: Eventually we'll have to remove the cpp dependency, and we should:
	- make it use m4 instead [bad, breaks compatibility]
    or
	- add a small cpp like parser for #include [bad, too much code]
2001-12-04 15:55:32 +00:00
atatat 239aeafb2e Fixes to eliminate some compiler complaints, such as:
suggest explicit braces to avoid ambiguous `else'
suggest parentheses around assignment used as truth value
2001-12-04 15:27:35 +00:00
minoura 830cfb5ec1 Use sys/conf/Makefile.kern.inc. 2001-12-04 15:22:29 +00:00
minoura 4ee42d6a56 Ooops, previous commit removed an important line unintentionally. 2001-12-04 15:21:28 +00:00
lukem c31e16f75e Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
  command instead of the PASS command. whilst this might provide some
  info leakage of accounts names if you have some `real' or `chroot'
  users enabled and not others, it does prevent accidental entering of
  such passwords if you have all such users denied. This option is
  strongly recommended on anonymous-only servers.
  Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
  For paranoid admins.
2001-12-04 13:54:12 +00:00
blymn c08523b03e Replace deprecated curses call with supported equivalent. 2001-12-04 13:12:23 +00:00
blymn 665c88dc3c Convert old deprecated curses call to new equivalent. 2001-12-04 13:00:24 +00:00
is 647b3a2fe9 defflag lev6_defer. 2001-12-04 11:51:39 +00:00
jmc 30dcee15c0 Grab the appropriate loadfile_elf depending on machine arch 2001-12-04 11:31:10 +00:00