Commit Graph

197875 Commits

Author SHA1 Message Date
pooka 651058f246 copy parent's p_comm when forking (if it exists) 2011-02-10 13:31:30 +00:00
pooka 58a824fcb1 explicitly zero-fill the initial md backend 2011-02-10 13:29:02 +00:00
tsutsui c03550ce59 Pull support for Tigershark monochrome framebuffer from OpenBSD.
Untested (no hardware), but doesn't break existing HP425t topcat.
2011-02-10 13:04:31 +00:00
tsutsui 8ecbf43c22 Bump version to denote standalone ITE driver reorganization
pulled from OpenBSD.
2011-02-10 12:47:08 +00:00
tsutsui f6330dd725 Pull OpenBSD's standalone ITE driver reorganization:
- merge similar clear, putc, cursor, and scroll ops for all DIO framebuffers
 - rename and move hyper_windowmove() to ite_dio_windowmove1bpp()
   to use it among all dumb monochrome framebuffers
 - ditto hyper_putc() to ite_dio_putc1bpp()
 - remove unnecessary flags, macro, function args, and structure members
 - remove trailing spaces and tabs

Also misc cosmetics to reduce diffs from OpenBSD,
and some KNF that generates diffs from OpenBSD.

Tested on HP382 and HP425t.
2011-02-10 12:46:22 +00:00
kefren d2ac267049 stop processing a label mapping message if we don't have a route for it.
This way we avoid failing an assert later in mpls_add_label()
2011-02-10 12:44:41 +00:00
jmcneill 61ccff524d pcimmap: if the requested page is marked prefetchable in a child device's
BAR, pass the BUS_SPACE_MAP_PREFETCHABLE flag down to bus_space_mmap
2011-02-10 12:37:58 +00:00
jmcneill b94121255b add support for 64-bit BARs 2011-02-10 11:35:20 +00:00
tteras 1f21513187 From Mats Erik Andersson <debian@gisladisker.se>: Implement importing of
RSA keys from PEM files.
2011-02-10 11:20:08 +00:00
tsutsui 8c49816297 Remove unused deinit functions. From OpenBSD. 2011-02-10 11:17:21 +00:00
tteras 6615d57c07 From M E Andersson <debian@gisladisker.se>: Fix parsing of restricted RSA
key addresses.
2011-02-10 11:17:17 +00:00
tsutsui 36ac47ef5d Move and renamve hyper_ite_fontinit() to ite_fontinit1bpp() to share it
among all monochrome framebuffers.  Also rename ite_fontinit() to
ite_fontinit8bpp(). From OpenBSD.
2011-02-10 11:08:23 +00:00
pooka 922afc1884 support /dev/zero 2011-02-10 11:01:31 +00:00
pooka cb10f2594b Make it possible to specify a minor number for an autogenerated device node. 2011-02-10 11:00:45 +00:00
tsutsui 07c63417c7 bcopy() -> memmove()
How did this one survive several sweeps?
2011-02-10 10:52:01 +00:00
tsutsui f7bfe85d50 All framebuffer drivers use common readbyte and writeglyph functions
so no need to put them into per driver function pointers. From OpenBSD.

Tested on HP382 (serial) and HP425t (topcat).
2011-02-10 10:44:22 +00:00
jmcneill 36599bc7a4 Use BUS_SPACE_MAP_PREFETCHABLE when mapping the framebuffer. 2011-02-10 10:23:20 +00:00
jmcneill 3d49403210 Unfortunately the current MTRR code can't grow an existing WC mapping, and
since we don't know the total framebuffer size setting up an MTRR here
would prevent X from creating a larger one later.

Instead map the framebuffer with BUS_SPACE_MAP_PREFETCHABLE and hope that
PAT is supported.
2011-02-10 10:21:40 +00:00
blymn 01cc4b6151 Fix typo. 2011-02-10 08:54:12 +00:00
kefren 233a38c913 Problem was fixed, don't expect to fail anymore 2011-02-10 07:47:50 +00:00
kefren 159fa1bbe5 Allow changing route flags. Should fix PR/40455
OK'ed: dyoung@
2011-02-10 07:42:18 +00:00
matt 73f5a201e2 Default NetBSD to -msecure-plt now. 2011-02-10 07:18:29 +00:00
macallan 60fd5224f1 unbork PMAP_NOCACHE vs. PGC_NOCACHE 2011-02-10 06:42:17 +00:00
spz 03e283f07f fix for CVE-2011-0014 (OCSP stapling vulnerability in OpenSSL)
patch taken from http://www.openssl.org/news/secadv_20110208.txt
2011-02-10 06:04:54 +00:00
macallan afa90556a5 PMAP_NOCACHE -> PGC_NOCACHE where appropriate 2011-02-10 05:55:26 +00:00
enami 4a8f94fd25 Start new line before issuing IDENTIFY command since messages from
other driver may interfere during waiting for command completion.
2011-02-10 05:07:46 +00:00
christos 88453bd9e5 remove comments about needing to encode : since the on disk format does
not allow them. Also fix reversed encoding in lookup. From Taylor R Campbell.
2011-02-10 03:30:29 +00:00
matt 483a1c95a2 Fix problem with bss-plt objects which a reloc index, not offset.
(secure-plt uses an offset (index*sizeof(rela), bss-plt uses an index)
secure-plt will now take the offset and divide by 12 for an index.
2011-02-10 02:28:20 +00:00
christos 02c89a86f2 PR/44523: Taylor R Campbell: mount_hfs badly handles file names with slashes
in them, encode them as colons. XXX: Should encode : as :: too?
2011-02-10 01:49:51 +00:00
jym 227303851f Reflect reality for i386 distrib kernels. 2011-02-10 00:56:34 +00:00
jym d67b6a35e5 Reinstate INSTALL kernel for embedded ramdisk installs.
Reasons being:
- INSTALL is GENERIC with an embedded ramdisk, and as such, can benefit from
features included within.
- INSTALL_FLOPPY has its own config(5) file, and is tailored for "small"
floppy images; it misses features/drivers that could be needed to boot
in a decent environment for recent x86 machines (like ACPI)
- makes it closer to floppies distrib available for amd64

While here, comment out INSTALL_FLOPPY and bootfloppy-big image build. NetBSD
does not use the 3.6MiB image for El Torito cdroms anymore.

Remove the FLOPPYMAX limit; i386 needs 4 floppies now. Modify boot.cfg and
release/contents to reflect reality.

See http://mail-index.netbsd.org/port-i386/2011/02/08/msg002307.html

No comments, no objections.
2011-02-10 00:43:19 +00:00
jym 71d70847f6 Use only one function to pin pages with Xen, and provide macros to
call it for different levels (L1 => L4).

Replace all calls to xpq_queue_pin_table(...) in MD code with these new
functions, with proper #ifdef'ing depending on $MACHINE.

Rationale:
- only one function to modify for logging
- pushes responsibility to caller for chosing the proper pin level, rather
than Xen internal functions; this makes the pin level explicit rather than
implicit.

Boot tested for dom0 i386/amd64, PAE included. No functional change intended.
2011-02-10 00:23:14 +00:00
christos c93c31d5d2 simplify 2011-02-10 00:05:52 +00:00
matt abedbfa819 Use $NetBSD$ instead of $Id$ 2011-02-09 22:01:44 +00:00
macallan bce37c288a this is no longer needed, register definitions for chipsfb now live in
dev/ic/ct65550reg.h
2011-02-09 21:26:55 +00:00
macallan 5c83b0f64d use the bus independent stuff from ic/ct65550* and leave only the PCI specific
bits in pci/chipsfb.c
2011-02-09 21:21:32 +00:00
macallan d36f3d5041 split out the bus-independent portions of chipsfb 2011-02-09 21:18:04 +00:00
matt dfed083ad4 Since curlwp and curproc must always be non-NULL, remove the == NULL branches. 2011-02-09 18:24:44 +00:00
tsutsui 674f943685 Don't forget to build and install MI HIL man pages. 2011-02-09 15:31:30 +00:00
tsutsui d57520da96 - pull MI HIL device man pages from OpenBSD
- remove obsolete hp300 ite, grf, and hil devices
2011-02-09 15:12:40 +00:00
bouyer bde889cccb Fix build when GENFB is not there. 2011-02-09 15:02:00 +00:00
wiz e033a66ef0 New sentence, new line. Sort SEE ALSO. Use Dq. Noun is "setup". Fix a Dd. 2011-02-09 14:37:55 +00:00
pooka cf0dbcff8b more testies 2011-02-09 14:34:42 +00:00
pooka dab4b449d7 Add test which checks rumpclient does not use fds 0-2 for its
internal purposes.
2011-02-09 14:32:45 +00:00
pooka 82aa883702 The following happens when sending mail with mutt via a rump
TCP/IP stack:

* mutt prepares to exec the smtp client: it forks and closes all
  file descriptors
* when the next networking syscall is done, rumpclient detects that
  the communication fd returned EBADF and does a reconnect,
  gets descriptor 0 for the socket and descriptor 1 for kqueue
* mutt opens the mail file and implicitly assumes it'll get 0-2,
  but in fact gets 2-4
* mutt execs the smtp agent which tries to read the mail from
  stdin (rumpclient communication socket) and fails

Even if mutt correctly did dup2() things would go south when trying
to communicate with the kernel server the next time, since rumpclient
would actually be talking with some mail body instead (well, it
could work, but in that case you'd need to write *really* weird
mails ;).

Hence, prevent rumpclient from using the special fd's 0-2 for its
purposes.

Should fix mutt problem reported by Alexander Nasonov.
2011-02-09 14:29:58 +00:00
tsutsui 33fa7ec7aa - update SYNOPSIS and SEE ALSO for wscons support
- remove descriptions about obsolete ioctl
2011-02-09 14:13:09 +00:00
tsutsui 5493296943 Add lists for ews4800mips and hp300 Xorg servers. 2011-02-09 13:41:00 +00:00
tsutsui e96a78107f Add defintions for ews4800mips and hp300 Xorg servers. 2011-02-09 13:37:48 +00:00
jmcneill 960f1e30de if genfb is attached, hook into db_trap_callback to switch in and out of
polling mode as necessary
2011-02-09 13:24:23 +00:00
jmcneill 9204517c6d switch genfb to polling mode at shutdown 2011-02-09 13:19:53 +00:00