Commit Graph

82718 Commits

Author SHA1 Message Date
perry 9d7de51394 Add memcmp, memcpy, memmove and memset prototypes, which should have
been here a long time ago.

XXX should this file be un-__P'ed in the new regime? It isn't used in
userland...
2001-07-07 05:15:56 +00:00
tsutsui 6005077f81 bcopy() -> memcpy() (I guess there is no overlap here) 2001-07-07 05:09:43 +00:00
perry 8057ca5380 add new b*() and mem*() man pages 2001-07-07 05:08:19 +00:00
perry e7eca1a183 man pages for b*() and mem*(), noting b*() to be obsolete 2001-07-07 05:05:17 +00:00
eeh b4b1b3f3d7 Replace bzero.S and bcopy.S with memset.S and memcpy.S to make the makefiles
happy.
2001-07-07 04:55:21 +00:00
perry c297defc99 Note explicitly that memcpy does not guarantee good behavior on overlap. 2001-07-07 04:53:52 +00:00
perry 7a31be3198 move the bcopy macro back to generating memcpy.
Here is why:

kernel bcopy and userland bcopy semantics were never the same. bcopy
in the kernel did not traditionally handle overlap.
ovbcopy in the kernel was the traditional "overlapping bcopy".

Lets take a step back here. The point of the macros was to provide
legacy interfaces so we could transition to mem* without disrupting
large parts of the code still being repeatedly merged, like the KAME
merges in net*/. Having purged the last ovbcopy from the kernel,
replacing them all with memmove, we didn't need ovbcopy any more so we
didn't need a macro.

Now, by leaving bcopy as memcpy, we make it clear that if you are
purging bcopys, you should replace them with memcpys. If we used
memmoves everywhere, it would lose very painstaking optimizations made
in the original code during which the ovbcopy/bcopy distinction was
held. Making bcopy into memmove is BAD BAD BAD.

It has been argued we should add an ovbcopy->memmove macro, but that
is precisely what we do not want -- if someone needs ovbcopy, what
they really want to write memmove, not ovbcopy. We don't want NEW code
with ovbcopy, having laboriously gotten rid of it.

In fact, the bcopy/bzero/bcmps in the kernel should all be purged. We
held off on doing net*/ to make the kame merge easier, and similarly
held off on some other places, but the time has come.

Anyway, for all these reasons, bcopy is changed back to memcpy.
2001-07-07 04:14:43 +00:00
thorpej f966c67e8b Remove a bug from the list (jumbo frames are now supported), and
clarify that the SMC9462TX is supported (not the SX -- that board
uses a different chip).
2001-07-07 02:37:34 +00:00
thorpej 9ec2341af3 Add support for jumbo Ethernet frames on the DP83820. 2001-07-07 02:32:38 +00:00
mjacob 0134959e74 If I've told myself once, I've told myself 1000 times- *NEVER* commit
w/o test compiling first. Argh. I nuked one extra line that I shouldn't
have.
2001-07-07 01:44:21 +00:00
thorpej cf65d4738c Add a bunch of Vital Product Data definitions. 2001-07-06 20:20:55 +00:00
chris 4c32798eb8 Implement proper versions of kenter_pa and kremove, I've based them on versions provided by Richard E. 2001-07-06 20:15:13 +00:00
scw 8593b82c71 One less item (h/w assisted soft interrupts) 2001-07-06 20:12:34 +00:00
scw 35110949ce Ditch the `simulated' software interrupt in favour of
hardware-assisted soft interrupts on all boards.
(Note: VMEChip2-less 162/172 not yet tested)

This greatly simplifies the `rei' path and allows
interrupt nesting to be tracked somewhat more easily.

As a result we now have a working CLKF_INTR() macro
and can detect uvm_fault() being called from an interrupt
(although there may still be a very short race detecting
the latter; need to investigate further).
2001-07-06 19:00:12 +00:00
abs 185d31ea9e Do not xref pc(1) 2001-07-06 18:15:36 +00:00
abs dbb36360cf Space after section number in .Xr 2001-07-06 18:13:35 +00:00
abs 9819b7e8e7 space after section number in .Xr 2001-07-06 18:12:02 +00:00
abs 510da333e5 pcmcia(9) not PCMCIA(9) 2001-07-06 18:11:29 +00:00
mcr ddb7c50037 added bridge secondary bus reset macros. 2001-07-06 18:07:16 +00:00
abs 46bc122c3c Do not try to reference dbm(3) 2001-07-06 18:07:15 +00:00
mcr aa7bfea672 split pccbb_intr_route() into seperate function. 2001-07-06 18:06:59 +00:00
mcr c34df0c33d cardbus attachment for PCI-PCI bridges 2001-07-06 18:05:59 +00:00
mcr 90e0ca31dd record handles for memory and io spaces 2001-07-06 18:05:25 +00:00
mcr 97eac1b54c context argument added to pci_device_foreach(). 2001-07-06 18:04:58 +00:00
mcr b44d7d55a5 added some debugging to error message in pci_intr_map(). 2001-07-06 18:04:22 +00:00
mcr 07ba5352f1 extra argument to pci_device_foreach(). 2001-07-06 18:03:47 +00:00
mcr 8c020dd2f7 when fixing up buses, keep track of the parent of each bus,
and the pcitag to access the primary side of that bridge.
2001-07-06 18:03:17 +00:00
mcr 6244484599 added context parameter to pciaddr_resource_{reserve,allocate}
and to pci_device_foreach().
	added new function pci_device_foreach_min().
2001-07-06 18:02:35 +00:00
mcr b76e5c586a added some error checking on return from rbus_new_root_share(). 2001-07-06 18:01:26 +00:00
mcr 74ed6c9ddb new config file for M700 notebook with Cardbus and CBII support 2001-07-06 18:00:50 +00:00
toshii 70e10fb682 Remove bcmp, bcopy and bzero. We don't need them as they aren't
called from asm code, and we shouldn't have them if we don't need them.
2001-07-06 17:35:44 +00:00
thorpej 2861457faf Fix a typo in htosonic32(), pointed out by soda@netbsd.org. 2001-07-06 16:20:07 +00:00
mjacob f0ba6b733c White space cleanup. Fix oopslet about having overlapping loop states.
Handle FW crashes as an isp_async call. Reclaim a missing logging level
bit.
2001-07-06 16:19:10 +00:00
mjacob 3628ea89ae Add some wads more definitions. Add macros for request/response queue
in/out pointer access.
2001-07-06 16:18:08 +00:00
mjacob 70d59a5876 Minor comment update. 2001-07-06 16:17:36 +00:00
mjacob 5089fba315 Defer turning off the no_mbox_ints flag until after the system is ready
for interrupts. Handle FW crashes in outer layer.
2001-07-06 16:17:17 +00:00
mjacob 092afb0ce9 More 2300 support: macroize access to request/response in/out pointers. 2001-07-06 16:16:11 +00:00
mjacob 9386c78f88 Some whitespace cleanup. Initial forcelout support.
Fix longstanding bug where we should have been checking
against Channel B's settings to see whether to apply tag
usage. Oops.

Some more 2300 support- macroize access to request queue in/out pointers.
Firmware crashes now handled in platform outer code via an isp_async call.

If we get a LIP, and we're on a private or public loop, kill off all
active commands as if they had been killed by a 'SCSI Bus Reset'. I've
seen data corruption on commands that complete 'normally' after a LIP.
Bad.
2001-07-06 16:15:38 +00:00
mjacob 48e09f672e twiddle isp_xflist calculation to match more closes isp_pci.c 2001-07-06 16:09:38 +00:00
perry dedadee3db "safe" the macros for bcopy bzero and bcmp, after a request from mrg 2001-07-06 15:59:23 +00:00
tv 6b2a880d3c memcpy(3) is not guaranteed to do overlaps, contrary to this historical
manpage "BUGS" section.  Nuke the entire section.
Addresses PR lib/13370.
2001-07-06 15:11:18 +00:00
jdolecek fc4f1858f0 update 2001-07-06 12:38:40 +00:00
lukem dafe2b38ba freebsd kqueue implementation 2001-07-06 08:01:32 +00:00
skrll c7ba90b340 Don't list uk twice. 2001-07-06 07:45:47 +00:00
chs e185109424 implement pmap_k{enter_pa,remove}() correctly.
other misc cleanup.
2001-07-06 05:57:13 +00:00
chs c844daf5ab use pmap_k* for pagemove().
call pmap_remove() explicitly in vunmapbuf() in preparation for
upcoming UVM changes.
2001-07-06 05:53:35 +00:00
itojun c3740d7821 IP6_EXTHDR_GET0 had no check against m->m_len (noone was using this macro).
sync with kame
2001-07-05 23:41:07 +00:00
tv cc1cf30d01 bcopy() is documented as allowing overlapping memory regions. Define it
in terms of the standard name memmove() to account for this.
Fixes kern/13369 and the redundant lib/13370.
2001-07-05 21:51:10 +00:00
thorpej 583274a82c For product names that include the media in the name, don't bother
saying "Gigabit".
2001-07-05 21:27:31 +00:00
hubertf 9f773decdf fix typo in comment 2001-07-05 20:54:28 +00:00