Commit Graph

145784 Commits

Author SHA1 Message Date
rpaulo
9fb903cf69 Coverity ID 2313: free ``asc'' on error. 2006-04-11 16:19:39 +00:00
macallan
82ce0b1388 A driver for 3Dfx Voodoo3 graphics boards, may or may not work with Voodoo4,
Voodoo5 or Banshee boards.

So far it supports:
- full acceleration in 8bit graphics mode
- video mode switching
- virtual consoles via vcons

So far it hasn't been tested on anything else than macppc and even there it
needs a hack to overload ofb.

TODO:
- test on i386
- don't hardcode video mode
2006-04-11 16:11:07 +00:00
rpaulo
8636f91142 Coverity ID 2443: In sbp_scsipi_detach_sdev() check for sdev and
target being NULL before dereferencing them.
2006-04-11 15:52:07 +00:00
rpaulo
f7d1c1a028 Coverity ID 2440: in trm_timeout(), check if srb and xs are NULL
before trying to dereference them.
2006-04-11 15:49:00 +00:00
rpaulo
3fd310011d Coverity ID 2442: check if one can dereference ifp before calling
iwi_stop() in iwi_detach().
2006-04-11 15:42:56 +00:00
peter
8c470c63e5 Change disclaimer: "THE NETBSD FOUNDATION", not "REGENTS". 2006-04-11 15:24:24 +00:00
peter
4ece0d684f Add missing disclaimer. 2006-04-11 15:21:26 +00:00
peter
a62a67d37c Implement pmap_devmap on hpcarm to map I/O registers that are used
in early start-up stage. Change the virtual address for UART #3 to
the physical address in the configuration files.
While here, implement the sa11x0_bs_unmap function.

Reviewed by Toru Nishimura (on port-arm).
2006-04-11 15:08:10 +00:00
tnozaki
08db232b12 completely broken, make it works. 2006-04-11 14:24:37 +00:00
jmcneill
43c921268d * VBE functions return a byte, not a word. Ignore the rest of the garbage
in the return register.
* Use 6-bits per colour in paletted mode; it should be available on all
  DACs.
2006-04-11 14:18:01 +00:00
rpaulo
ab299cced2 Coverity ID 2859: Don't leak ccb, move the allocation a few lines
lower next to where it'll be used for the first time.
2006-04-11 14:17:09 +00:00
christos
139332cff1 Coverity CID 2860: Free malloced resources on mount error. 2006-04-11 14:12:53 +00:00
christos
888007e5cb Coverity CID 2861: Check for out_data before cancelling. 2006-04-11 14:08:51 +00:00
christos
a0ceb940b3 Coverity CID 2862: Don't initialize crc with garbage from the stack. For
now set it to 0.
2006-04-11 14:05:46 +00:00
yamt
e65b84bc9e yamt-pdpolicy: new base. 2006-04-11 12:33:36 +00:00
simonb
23b376683a The RTC and PCMCIA don't live at address 0 - restore the -1 address
locator from pre-split aubus.c.  Should only affect autoconfig display.
2006-04-11 11:51:31 +00:00
hubertf
2e3214a0d4 Bump ftp timeout from 10 minutes to 1 hour.
When installing teTeX over a dog slow VPN, this can be necessary.
2006-04-11 10:36:19 +00:00
yamt
4ddfb52ac9 genfs_getpages:
- use "overwrite" variable consistently.
- remove a set-only variable.
no functional changes.
2006-04-11 09:34:58 +00:00
yamt
32d32e7e2a sodopendfree/sodopendfreel: remove unused "so" argument. 2006-04-11 09:32:58 +00:00
yamt
52a31ea140 uvm_pagermapin: nowait allocation for pagedaemon. 2006-04-11 09:29:40 +00:00
yamt
c03e4d19d3 add assertions. 2006-04-11 09:28:14 +00:00
perseant
74b70f471b Remove mostly useless BUFPAGES warning message from lfs_{un,}mount. 2006-04-10 23:51:50 +00:00
uwe
ae727708e1 Decorate pmap_remove_all() with /* ARGSUSED */ 2006-04-10 23:12:11 +00:00
bouyer
2aa3711744 Don't use ppr_option uninitialized. Coverity ID 2504. 2006-04-10 22:35:28 +00:00
bouyer
98675b2b44 Don't use ppr_options uninitialized. Coverity ID 2506. 2006-04-10 22:32:56 +00:00
bouyer
eb7f9aba74 Revert previous; I mixed bpp and *bpp when reading ffs_balloc_ufs1().
ffs_balloc() will always allocate a new buffer or leave it as NULL,
so coverity is wrong here, we're not using a freed argument.
2006-04-10 22:01:06 +00:00
bouyer
a4181a9049 If we brelse ibp, set ibp to NULL, to avoid reusing it later in balloc()
or in our code at the next iteration.
Coverity ID 2706
2006-04-10 21:50:18 +00:00
perseant
07ebfab840 Optimize the free list search a little more; in particular use words
instead of bytes for the index, and never search below fs->lfs_freehd.

Fix a bug in the previous version of the search (an erroneous assumption
that ino_t was signed).

Free the bitmap when we unmount the filesystem.
2006-04-10 21:20:19 +00:00
perseant
017f856cba Don't leak vnode references if we fail to lock a vnode in lfs_flush_pchain().
Also fix another (probably only academic) simple_lock protocol error.
2006-04-10 21:17:21 +00:00
rpaulo
38619605fc Add new files from 0.4.8 that we won't need. 2006-04-10 20:43:00 +00:00
christos
4bb7462638 PR/33231: Anraud Degroote: Miscellaneous cleanups in the route code:
- use of 0 instead of NULL
    - questionnable macros
2006-04-10 19:06:37 +00:00
jmcneill
23049d4c58 Use the current VESA mode's RGB info to setup 15/16/24/32bpp modes
properly.
2006-04-10 18:44:11 +00:00
perseant
fbf75b2bf7 Correct a locking bug in the recent pager optimization. 2006-04-10 18:42:48 +00:00
garbled
78fba760a5 de-__P, minor formatting nits, bump version. 2006-04-10 18:40:06 +00:00
garbled
6f63c9c5a1 Remove unused fd.c and video.c files. 2006-04-10 18:01:44 +00:00
garbled
7c00973093 Clean up the bootloader a little bit. Get rid of some unused code,
set the makefile to build the bootloader without the DB_MONITOR stuff by
default, as it is primarily for debugging.  Reduces bootloader size by
about 8k.
2006-04-10 17:58:59 +00:00
pavel
3b08981d4d In rev. 1.98, the ioctl method of the (g)sip drivers was optimized for
SIOCSIFFLAGS: it compares the new flags with the old flags and avoids
reset if there are only certain changes. This was done to fix PR 29126.

It does not take into account, though, that there is other state which
can change and SIOCSIFFLAGS is called to inform about it.  Namely,
if_capenable, ec_capenable and ec_nvlans. For all three, the _init
method must program the hardware specially. Not doing it resulted in:
- VLAN frames getting truncated
- hw checksumming not working
- outgoing VLAN frames not being tagged when they should
- incoming VLAN frames being treated as untagged.

Fix by keeping all the old state in the softc and initializing the
hardware if any of it changes.

Tested on gsip. Also tested by Nino Dehne and Martin J. Laubach
on sip, thanks.

Fixes PRs 32900 and 33216.

Approved by martin@ .
2006-04-10 16:37:22 +00:00
chuck
02ff9e80b9 fix .Xr to invalid man page that i put in by mistake 2006-04-10 16:20:46 +00:00
chuck
d09fe2c467 modified man(1):
- avoid double slashes when displaying man pages (got tired
   of '/usr/share/man//cat1/man.0').
 - got rid of __P() while working on it.
 - incorporate some of my old notes explaining how manpath works into the
   comments of the code itself.
 - renamed some of the vars so that the code is consistent throughout
   (and hopefully clearer and easier to understand)
 - fixed relative man paths for multiple man pages (man did a chdir()
   on the first man page it had to format --- this broke any remaining
   relative path man pages left to process).   save old directory and
   fchdir() back to it after formatting.
 - improved doc on "man -h" which does more than just whatis(1) [e.g.
   "man -h fopen" prints the required include files and the prototypes
   rather than just the one-liner you get with whatis(1)]
 - manconf.c now fills in the "len" length field in the TAG/ENTRY
   structures (man now uses len).

revise man.conf file reading stuff to return error on failure in
addentry/gettag (fka getlist) rather than just err()ing out.   this
allows man(1) to call cleanup and delete its tmp files rather than
just leave them floating.  revise other apps using this code
(makewhatis, apropos, catman, whatis) to expect this.  also remove
__P on updated files.
2006-04-10 14:39:06 +00:00
simonb
f7a378cb65 Fix some comment grammar nits. 2006-04-10 14:20:48 +00:00
chuck
82ad9348f2 rework the wording in these man pages (mainly in man.conf.5) based on
some old notes I found to make it clearer and easier to understand
how the man stuff works (hopefully!).
2006-04-10 14:02:57 +00:00
onoe
ec94ced902 Move "opt_maxuprc.h" from init_main.c to kern_proc.c, as the definition
of maxuprc has been moved to kern_proc.c (rev. 1.80).
2006-04-10 11:16:22 +00:00
simonb
a65c1d2e41 Fix a couple of typos in some comments. 2006-04-10 04:13:58 +00:00
simonb
a8b3022a42 Tab Police. 2006-04-10 03:36:03 +00:00
dbj
a015786b0d the root directory of non fat32 filesystems is stored in a special area.
a couple of corner cases can cause it to fail to write out that area
after it performs repairs.
2006-04-10 03:25:11 +00:00
simonb
4338faf3d6 Unwrap a not-too-long-line. 2006-04-10 03:07:40 +00:00
bouyer
c2c545c188 Move xenkernfs_init() back in hypervisor.c so that /kern/xen/privcmd can
also register properly.
2006-04-09 22:14:13 +00:00
yamt
539544d937 ffs_gop_size: revert a problematic part of 1.78.
problems reported by Kouichirou Hiratsuka and Jukka Salmi on current-users@.
2006-04-09 21:59:35 +00:00
bouyer
4ac2bb53f4 start xenbus support for domain0: allocate the page and the event channel,
and export theses via /kern/xen/xsd_mfn and /kern/xen/xsd_port.
2006-04-09 21:39:42 +00:00
christos
857164eeb5 Coverity CID 2536: Clarify the error path further. 2006-04-09 20:01:40 +00:00