Commit Graph

47846 Commits

Author SHA1 Message Date
wrstuden
716d3ae08f In vcount(), when getting rid of unused aliases, don't vgone one which
has VXLOCK set - it's already being vgoned, most likely by one of our
callers. If we call vgone, we can end up sleeping against ourself
with VXLOCK set - we'll start the race for root.

Pointed out by Love <lha@stacken.kth.se> on tech-kern. Analysis from
Artur Grabowski <art@openbsd.org> via Love.

Should resolve PR kern/13077
2001-06-26 15:51:06 +00:00
bouyer
90d0e67408 Add a XS_CTL_SILENT_NODEV flag: if the sense info is "not ready, medium
not present" don't print any message but still return ENODEV.
Use this in cd driver to allow open of character raw partition even if
the drive is empty (older drives fails at LOAD_UNLOAD time, newer
ones fail at TEST_UNIT_READY time).
2001-06-26 15:32:02 +00:00
matt
6bad4f04a0 Record any stack growth. This fixes a serious problem with core dumps.
Without this change, coredumps will only contain one page of stack
regardless of how many pages of stack the process actually has.
2001-06-26 13:00:18 +00:00
bouyer
f47d097cf5 Make it compile with SCSIPI_DEBUG 2001-06-26 12:46:56 +00:00
bouyer
e27abfaddf Make it compile with SCSIPI_DEBUG 2001-06-26 12:19:49 +00:00
jdolecek
142a3390df two more 2001-06-26 09:36:40 +00:00
jdolecek
a91872d1cf ntfs_readdir(): use NTFS_ROOTINO instead of ip->i_number for '..' entry
XXX it's not correct either way
2001-06-26 09:36:06 +00:00
jdolecek
61c37aef21 Allocate the struct dirent in ntfs_readdir() via MALLOC(), rather than
on stack.
2001-06-26 09:24:36 +00:00
onoe
65f0069f5b restore awi_power() to reenable awi after resume.
... forgot why it is disabled...
2001-06-26 08:41:19 +00:00
thorpej
93c03c9726 - Implement a real pmap_kenter_pa()/pmap_kremove().
- Use pools for pmap structures and pv_entry structures.
- Remove a bunch of splvm()/splx(), no longer needed now that
  pmap_kenter_pa() and pmap_kremove() are as they should be.

Mostly from Chuck Silvers.
2001-06-26 00:31:32 +00:00
chris
b8ceed365f Improve the vac_me_harder function, it is now slightly faster, however pmap_enter_pv is also now slightly slower, so they appear to balance out.
Note that I've some ideas in the works on how to improve the pv handling, so the slow down is short term only.

Also added non-advertising licence and copyright to myself and richard.
2001-06-25 23:22:38 +00:00
eeh
55e676fb15 Remove another unused file. 2001-06-25 23:07:03 +00:00
nathanw
493f55e596 A little space->tab fixup. 2001-06-25 22:56:18 +00:00
thorpej
c0b03b60e7 Really only need uvm_extern.h. From Chuck Cranor. 2001-06-25 22:08:52 +00:00
eeh
47b3df529a Remove unused file. 2001-06-25 21:28:03 +00:00
thorpej
7a1408c38b Deal with different `memsize' convention on new PMON revs. 2001-06-25 21:25:07 +00:00
jdolecek
26d45c1101 Back off the sendit()/recvit() change, some have problems with it 2001-06-25 20:46:11 +00:00
thorpej
498641fc7e Print more BONITO rev. info. 2001-06-25 20:15:57 +00:00
thorpej
1111f1d461 Add some macros to decode the BONITO revision register. 2001-06-25 20:15:03 +00:00
jdolecek
1b87473851 linux_getifhwaddr(): use strncmp() to find out if if_name starts with 'eth',
it's more readable that way
2001-06-25 19:55:02 +00:00
jdolecek
d865180393 sys_connect(): fix the call to FILE_UNUSE() so that it's done on return, rather
than immediatelly after getsock() call
2001-06-25 19:46:50 +00:00
jdolecek
7f7c60e827 Add 'kernsa' parameter for sendit()/recvit(); if nonzero, msg->msg_name
is supposed to point directly to struct mbuf or struct sockaddr in kernel
space as appropriate, rather than being a pointer to memory in userland.

This is to be used by compat/* when emulation needs to wrap
send{to|msg}(2)/recv{from|msg}(2) and modify the passed struct
sockaddr.
2001-06-25 19:24:02 +00:00
jdolecek
42b64d9f91 ntfs_readntvattr_plain():
Previous revision mistakely removed fix for DIAGNOSTIC "getblk: block size
invariant failed" panic, incorporated in rev. 1.5. The problem there
has been that depending on 'off', the code did bread() of 512 and after that
1024 bytes for same 'blkno'. Fix this differently than in rev. 1.5 -
if 'off' would bump the read over to next device block, trim the read to
end on block boundary and read rest in next loop iteration. This seems
to fix the problem, and avoids the performance hit rev. 1.5 incurred.

Fix bug in code handling holes for reads via read(2) - a variable
was incremented instead of decremented.
2001-06-25 18:33:14 +00:00
thorpej
e26fe5cc01 Compute the VM_* constants directly, rather than hard-coding
them (with the formulas in comments).
2001-06-25 16:28:48 +00:00
thorpej
99db7959b4 Include <uvm/uvm.h> rather than <uvm/uvm_param.h> directly. 2001-06-25 16:24:31 +00:00
onoe
3e2b22f383 Fix keyid bit position of encrypted packet to make non-first key usable. 2001-06-25 12:11:59 +00:00
onoe
4fe2f5eda7 AWI_DEBUG only:
awi_dump_pkt dumps packet before encryption in transmit.
2001-06-25 12:09:51 +00:00
onoe
b383383c20 Fix capability information in association request to reflect ESS/IBSS mode.
This fix is required to interoperate with Cisco's access point.
2001-06-25 12:06:14 +00:00
onoe
ed965d38ff add more capability information and status from IEEE802.11b 2001-06-25 12:02:53 +00:00
bjh21
27a2f91b72 Add sc_flags to seeq8005_softc, and put a flag in it. 2001-06-25 11:38:28 +00:00
wdk
98f7903dd8 Don't reprogram SCC registers unless the values have changed.
Some CMOS Z85C30 SCC's (as used in the SGI Indy and Mips Magnum 3000's)
reset the baud rate generator when a new prescaler is loaded - despite
what is documented in the datasheet.

Avoids "character glitch" problems when line discipline characteristics
are changed at the start of the login process, or during a ftp session
on the /dev/console device.

Tested on -sgimips, -mipsco and -alpha platforms
2001-06-25 08:30:11 +00:00
enami
ffd45d10e3 Invert the logic in last commit so that it actually works. 2001-06-25 06:44:41 +00:00
matt
c12370b691 Don't include -mno-pic on gcc 2.95 2001-06-25 05:12:01 +00:00
onoe
d38786d61f fix printf to DPRINTFN inside FW_DEBUG 2001-06-25 04:52:26 +00:00
matt
33fb36075d Add a flag to the softc to prevent recursion in ifstart 2001-06-25 04:46:28 +00:00
onoe
a9f2f7b41b add stubs for wiconfig(8). 2001-06-25 04:43:33 +00:00
onoe
1761d48452 cleanup unnecessary include files. 2001-06-25 04:29:19 +00:00
simonb
f285587c4e Fix typo in emac0 base address. 2001-06-25 01:49:15 +00:00
chris
407440a6b3 Add a pmap_map_ptes function to map another process page table entries into the current pmap (similair to pmap_pte) but this allows multiple use of it, rather than repeated calls of pmap_pte for pte, map_ptes returns a pointer to the va where the entries were mapped so it can be reused ptes can be found by indexing into it.
Update some of the functions that use pmap_pte to pmap_map_ptes.

Note that there's a dummy macro for pmap_unmap_ptes, this is because at some point locking will be needed, so we need to be able to unlock them.

Performance gain seems to be minimal, however long term it should help improve things.

This is similair to the i386 pmap_map_ptes, however it's based on a version from Richard Earnshaw.
2001-06-24 23:21:04 +00:00
briggs
cec5a93a27 Include powerpc/spr.h. 2001-06-24 20:43:36 +00:00
martin
74f0920eda Take into account the two byte PPP protocol discrimator following the PPPoE
header when calculating the MTU. Ooops...

Thanks to Mario Kemper for noting this.
2001-06-24 20:35:50 +00:00
itojun
77a4124f7d the documents are out of sync with the latest situation. remove them. 2001-06-24 19:40:35 +00:00
deberg
e917e9ed35 spelling 2001-06-24 17:49:47 +00:00
nonaka
afd99dc0b2 Add ahc(4), fxp(4), rtk(4) 2001-06-24 17:40:07 +00:00
wiz
e18583d6a8 Adapt to linux emul trap change. 2001-06-24 17:38:28 +00:00
pk
fda9cb9936 Avoid unused variables if RASTERCONS_FULLSCREEN is defined. (see PR#13231) 2001-06-24 15:47:45 +00:00
bjh21
7acb229356 Sync with GENERIC. 2001-06-24 10:36:09 +00:00
bjh21
ea6baf5775 Add dtide, hcide, oak and atapibus, since these all seem to work now. 2001-06-24 10:34:26 +00:00
wiz
15223234d7 Fix some typos in comments. 2001-06-24 10:18:13 +00:00
chs
908aa6ff3d remove "machine vmstat" command, since "show uvmexp" does the same thing. 2001-06-24 07:32:20 +00:00