summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Merged from sys/boot/i386/loader/Makefile revision 1.54.nyan2001-10-171-0/+7
|
* Change kern.bootfile when mv'ing the kernelbrian2001-10-171-0/+2
|
* Fixed to process a IPv6 packet when ah transport after esp tunnelume2001-10-171-3/+42
| | | | | | | | should be applied. the SA of AH transport could not be selected from the SAD because of this bug. Obtained from: KAME MFC after: 1 week
* The behavior of SPDUPDATE has been changed.ume2001-10-171-10/+6
| | | | | | | | SPDUPDATE doesn't depend on whether there is a SP or not. This change makes `generate_policy on' of racoon work. Obtained from: KAME MFC after: 1 week
* Bring in latest CSRG revisions to this file:ru2001-10-171-1/+9
| | | | | | | | | | | - Report destination address of a P2P link when servicing routing socket messages. - Report interface name, address, and destination address of a P2P link when servicing NET_RT_{DUMP,FLAGS} sysctls. Part of CSRG revision 8.6 coresponds to revision 1.12. CSRG revision 8.7 corresponds to revision 1.15.
* 64-bit fixes from CSRG.ru2001-10-172-4/+4
|
* Revision 1.32 corresponded to CSRG revision 8.2.ru2001-10-171-1/+1
|
* Revision 1.13 corresponded to CSRG revision 8.4.ru2001-10-171-1/+1
| | | | Revision 1.59 corresponded to CSRG revision 8.5.
* Record the fact that revision 1.39 corresponded to CSRG revision 8.4,ru2001-10-171-1/+1
| | | | and first hunk of revision 1.76 corresponded to CSRG revision 8.3.
* Print 4 per line. To do this, we test against i % 16 == 0 rather than i % 4imp2001-10-171-1/+1
| | | | since that's always true for this loop.
* ToPIC fixes. scale back what we do for functional interrupts becauseimp2001-10-171-1/+2
| | | | | | it appears to break at least the ToPIC 100. Submitted by: Mark Santcroos <marks@ripe.net>
* Back out previous revision. TCBHASHSIZE isn't an option, despite what I'ddes2001-10-172-10/+0
| | | | | been misled to believe by unknown parties. It probably *should* be an option, but the runtime value is controlled by a tunable, which Ought To Be Enough.
* if_index is the highest interface index in the system, not the nextfenner2001-10-171-3/+3
| | | | available index.
* The interface index space may be sparsely populated (e.g. when anfenner2001-10-171-1/+2
| | | | | | | interface in the middle is if_detach()'d). Return (and handle) ENOENT when the ifmib(4) is accessed for a nonexistent interface. MFC after: 14 days
* fix minor bug in kern.minvnodes sysctl. Use OID_AUTO.dillon2001-10-161-1/+1
|
* Make SCSI changer and SES devices standard in generic kernels.mjacob2001-10-166-0/+12
| | | | Reviewed by: ken@kdm.org
* Document TCBHASHSIZE.des2001-10-162-0/+10
|
* Deleted most of npxprobe(), and merged npxprobe1() back into npxprobe().bde2001-10-163-381/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | Use the normal interrupt handler (npx_intr()) instead of a special probe-time interrupt handler, although this causes problems due to the bus_teardown_intr() not actually even tearing down the interrupt (these problems were avoided by doing interrupt attachment for the special interrupt handler directly). Fixed minor bitrot in comments. The reason for the npxprobe()/npxprobe1() split mostly went away at about the same time it was made (in 1992 or 1993 just before the beginning of history). 386BSD ran all probes with interrupts completely masked, and I didn't want to disturb this when I added an irq probe to npxprobe(). An irq (not necessarily npx) must be acked for at least external npx's to take the cpu out of the wait state that it enters when an npx error occurs, so the probe must be done with a suitable irq unmasked. npxprobe() went to great lengths to unmask precisely the npx irq. Running probes with all interrupts masked was never really needed in FreeBSD, since FreeBSD always masked interrupts well enough using splhigh(), but it wasn't until rev.1.48 (1995/12/12) of autoconf.c that all probes were run with CPU interrupts enabled. This permits npxprobe() to probe its irq using normal interrupt resources. Note that most drivers still can't depend on this. It depends on the interrupt handler being fast and the irq not being shared.
* Commit my old fixes for cosmetic bugs in npxprobe() so that they aren'tbde2001-10-163-39/+24
| | | | | | | | | | | | | | | | lost when the buggy code goes away completely: - don't assume that the npx irq number is >= 8. Rev.1.73 only reversed part of the hard-coding of it to 13 in rev.1.66. - backed out the part of rev.1.84 that added a highly confused comment about an enable_intr() being "highly bogus". The whole reason for existence of npxprobe() (separate from the main probe, npxprobe1()) is to handle the complications to make this enable_intr() safe. - backed out the part of rev.1.94 that modified npxprobe(). It mainly broke the enable_intr() to restore_intr(). Restoring the interrupt state in a nested way is precisely what is not wanted here. It was harmless in practice because npxprobe() is called with interrupts enabled, so restoring the interrupt state enables interrupts. Most of npxprobe() is a no-op for the same reason...
* Fix bug introduced by the last commit, the caused some ATAPIsos2001-10-161-1/+1
| | | | devices to fail to proberly initialize at boot..
* Size the number of pv_entries we use to bootstrap the pv_entry allocatordfr2001-10-161-5/+16
| | | | | based on the size of physical memory. This should eliminate the tweaking needed for larger memory configurations.
* Implement linux_chown and linux_lchown. The fchown syscall mapsmarcel2001-10-166-22/+52
| | | | | | | directly to the native syscall, because no filename handling needs to be done. Tested by: Martin Blapp <mb@imp.ch>
* o Change prototype of linux_lchown and linux_chown so that themarcel2001-10-161-6/+5
| | | | | | | | | argument names match those on Alpha. o Map the fchown directly to FreeBSD. Since the old version of fchown is also mapped to the native fchown, give the new one type NODEF. Tested by: Martin Blapp <mb@imp.ch>
* Don't use an uninitialized field reserved for callers in the bio structuretegge2001-10-151-3/+4
| | | | | | | passed to swap_pager_strategy(). Instead, use a field reserved for drivers and initialize it before usage. Reviewed by: dillon
* Try to make Linux socket ioctls work. Up until now they've only *pretended*des2001-10-151-50/+281
| | | | | | | | | | | | | | to work, but haven't really due to subtle differences in structs etc. This is still not perfect (some ioctls are still known not to work, while others haven't been tested at all), but it's enough to get Debian's ifconfig to produce relatively sane output. More work will be needed to get all ioctls (or at least a reasonable subset) working, and to support the Cisco Aironet config tool mentioned in the PR. PR: 26546 Submitted by: Doug Ambrisko <ambrisko@ambrisko.com>
* Explicitly initialize the fpu when SSE is enabled since this notegge2001-10-153-0/+15
| | | | | | longer happens as a side effect of calling npxsave. Reviewed by: peter, bde
* In FreeBSD's ifreq, ifr_ifru.ifru_flags is an array of two chars, while Linuxdes2001-10-152-2/+2
| | | | | defines it as a short. Change that to an array of one short so that FreeBSD's ifr_flags macro will work (it evaluates to ifr_ifru.ifru_flags[0]).
* Set the interface speed back to zero, after ether_ifattach() set itfenner2001-10-151-0/+1
| | | | | to 10Mbps. RFC 2863 says: "For a sub-layer which has no concept of bandwidth, [ifSpeed] should be zero."
* Add a prototype for OF_alloc_phys.robert2001-10-151-0/+1
|
* Fix some warnings.robert2001-10-151-4/+4
|
* Add the FreeBSD/sparc64 boot loader source files.robert2001-10-153-0/+658
|
* catch forwarded ipv6 packets with pfil_hooks for outbound things toodarrenr2001-10-151-0/+34
|
* Add a hack to get around the fact that egcs 1.1.2 (which I'm using to buildbenno2001-10-151-0/+9
| | | | my powerpc kernels on NetBSD/macppc 1.5) doesn't know of the __func__ macro.
* Flesh out cpu_fork() and cpu_set_fork_handler(). This is a work in progress.benno2001-10-152-26/+122
|
* - Correct the type of the argument to delay() so as to not conflict withbenno2001-10-153-3/+4
| | | | | sys/boot/common/bootstrap.h. - Add a prototype for fork_trampoline().
* Make the ofw_reg structure and ofw_alloc_heap 64-bit save.robert2001-10-152-4/+4
|
* Add a Makefile for the sparc64 boot loader.robert2001-10-151-0/+76
|
* Do not include openfirm.h; it is now included by libofw.h.robert2001-10-151-1/+0
|
* - Use the cell_t type definition for Open Firmware arguments inrobert2001-10-151-247/+359
| | | | | | combination with requisite casts as this avoids fatal side effects on 64-bit architectures. - Add the OF_alloc_phys function.
* Don't even attempt to clone host routes.ru2001-10-151-2/+4
| | | | MFC after: 1 week
* - Fill dummy functions with code to read from disk using Openrobert2001-10-152-6/+597
| | | | | | | | | Firmware. - Add a temporary disklabel header to boot off a NetBSD/sparc64 partition. This file can be deleted when we have got a FCode bootblock. The disklabel header was obtained from NetBSD.
* - Include openfirm.h for phandle_t.robert2001-10-151-7/+10
| | | | | - Add some necessary members to the ofwdisk structure. - Add a prototype for ofw_parseofwdev.
* Add a function for parsing an Open Firmware boot path into therobert2001-10-151-3/+29
| | | | ofw_devdesc structure.
* - Add an ifdef guard.robert2001-10-151-3/+6
| | | | | | - Use unsigned types for the (32-bit) Open Firmware device handles to avoid sign extension on 64-bit architectures. - Add a standard type definition for Open Firmware arguments.
* When compiling with SKI support, create the fake memory regionsmarcel2001-10-151-1/+1
| | | | | when either the memory descriptor in the bootinfo is NULL or the descriptor count is 0.
* Whack on this soon to be deprecated driver.mjacob2001-10-153-32/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | What the heck, the OpenBSD version will benefit. 1. Add wx_txint_delay as a tunable (defaults to 5000 now, or ~5ms) and switch to using delayed TXDW interrupts. Since the chip continues to reload the TIDV with this value for each descriptor written back, this allows continued deferral of the actual interrupt until the last packet completes (assuming that 5ms between multiple packets transmitting is reasonable). 2. Add two other SYSCTL entities: hw.wx.dump_stats hw.wx.clear_stats to be used, hackey hackey, to get the watchdog routine to dump/clear the current softc statistics. Usage would be: sysctl -w hw.wx.dump_stats=UNIT to cause the current stats to be dumped for UNIT. 3. Attempt to clean up wx_detach routine so we don't panic. Well, things still panic, but given that the code is just like other NIC drivers, I suspect it's actually something elsewhere, like e1000phy, that's actually blowing up. 4. Skip the entire test for runt packets- after doing somet thinking and experimenting, I believe that the chip only doesn't like it if the whole frame to xmit is < 16 bytes- each TFD can be some fragment of that. This should improve performance a chunk because of all of the (14 byte ETHERHEADER + DATA) mbuf chains. 5. Keep track of total frame length. Try not to xmit an odd byte frame- this is supposed to get around some dumb Cisco switch problems. 6. On the last packet, also set Interrupt Delay && Report Packet Sent (see #1 above) 7. Attempt to do xmit garbage collection *first* in order to avoid setting IFF_OACTIVE if at all possible. MFC after: 1 week
* Add a quirk entry so that the Maxtor 3000LE USB drive will work.scottl2001-10-151-0/+7
| | | | | Submitted by: merry, Randy Bush <randy@psg.com> MFC after: 3 days
* Fix typo.mp2001-10-153-3/+3
|
* Save WIP. Partial rewrite of cpu_switch() and savectx(). This makes it closermp2001-10-155-483/+76
| | | | | | to working but still needs some work to properly switch the full context (such as saving the fpu registers, switch stacks, etc.). Also, remove some dead code that was mixed in.
* Change vmapbuf() to use pmap_qenter() and vunmapbuf() to use pmap_qremove().tegge2001-10-142-30/+48
| | | | | | | This significantly reduces the number of TLB shootdowns caused by vmapbuf/vunmapbuf when performing many large reads from raw disk devices. Reviewed by: dillon
OpenPOWER on IntegriCloud