Commit Graph

61164 Commits

Author SHA1 Message Date
bouyer
65856947c5 Zero out the extra space stolen from mbuf to pad packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN - ETHER_CRC_LEN ?
XXX2 we assume there are enouth space in the mbuf for the padding bytes.
     But other places in the code assumes this already.
2003-01-15 22:10:25 +00:00
bouyer
0a5eae1855 ragge said this chip should autopad, so just remove the check for len. 2003-01-15 22:08:08 +00:00
bouyer
8951e08c3c Hum, ragge said this chip should autopad, so just remove the check. 2003-01-15 22:05:38 +00:00
bouyer
847cb1fa0d Zero out the buffer when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 22:01:57 +00:00
bouyer
ba7f2ad41b Zero out the NIC memory when padding packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 22:00:43 +00:00
bouyer
4199421246 zero out the remaining of last mbuf when padding the packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN-ETHER_CRC_LEN ?
XXX2 we assume there is enouth room in the last mbuf. The code already assumes
     this in other places.
2003-01-15 21:59:02 +00:00
bouyer
fb3e100370 Use a properly zero'd buffer to pad the packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN-ETHER_CRC_LEN ?
2003-01-15 21:56:06 +00:00
bouyer
ab00572d4a Use a properly zero'd buffer to pad the packet to ETHER_MIN_LEN-ETHER_CRC_LEN 2003-01-15 21:53:18 +00:00
bouyer
84c7763ec2 Use a properly zeroed buffer to pad the packet to ETHER_MIN_LEN
XXX should it be ETHER_MIN_LEN - ETHER_CRC_LEN ?
2003-01-15 21:51:47 +00:00
martin
c7d20c39f9 Fix typo - make it compile with DIAGNOSTIC. 2003-01-15 21:38:22 +00:00
pk
5bb3d93538 srmmu_cache_flush: switch MMU contexts in all places where it matters.
(incidentally, this also makes Hypersparc MP machines mostly go).
2003-01-15 16:42:27 +00:00
reinoud
e2dacd3f22 Small typo and add initialisation for the `bank' counter 2003-01-15 16:29:27 +00:00
augustss
16d56c01d2 Regen. 2003-01-15 13:36:23 +00:00
augustss
61f5ebcc50 Add Epson Perfection 2400. From kern/19856, Rob Quinn. 2003-01-15 13:35:55 +00:00
mhitch
7295f9f909 Switch to MI installboot. 2003-01-15 07:25:51 +00:00
thorpej
b9cdec841a Pass the process priority we want to compare to resched_proc(). Restores
resetpriority() behavior.  Thanks to Enami Tsugutomo for pointing out my
mistake.
2003-01-15 07:12:20 +00:00
pk
a458d9f040 Fix compiler warning induced by last change. 2003-01-15 06:57:12 +00:00
chs
0d8f526f58 fix two bugs in my last pmap rework:
- in tlb_flush_all(), don't skip TLB entries with the high bit on,
   I was confused about which MMU register it was using.  it's also fine
   to use the last hardware context.
 - in pmap_create(), don't allocate a hardware context for the new pmap.
   it's unnecessary, and when this would cause us to recycle all the contexts,
   it would result in the current process's context being set to 0
   (ie. the kernel's context).  the current process could then return to
   userspace without going through the context-switch code (and thus without
   having a hardware context reallocated).  this would lead to user mappings
   being entered in the kernel's context later, causing all sorts of trouble.
   add some assertions to catch this kind of thing.
2003-01-15 06:15:05 +00:00
kent
f22fb7c9b8 Fixed a problem that /dev/sound can not be opened in some cases.
auich_set_rate() modified audio_params::sample_rate to actual
sample rate though auich_set_params() rejected sample rates
other than some specific rates.  For example, setting 8000Hz
with auich_set_params() modified sample_rate to 7998Hz in the
case of overclocked AC97 codec, and calling auich_set_params()
again returned with EINVAL because sample_rate was 7998Hz and
auich_set_params() rejected 7998Hz.

For now, auich_set_params() never modify audio_params::sample_rate.
2003-01-15 04:49:35 +00:00
thorpej
c8763685b7 Allow the serial console boot blocks to be built with a specific
console speed, and build some of the more common ones.
2003-01-14 23:53:30 +00:00
thorpej
f6f0dbd011 Stub out LIBCRT0, LIBCRTBEGIN, LIBCRTEND, and LIBC. 2003-01-14 23:51:34 +00:00
pk
9eb63b3b94 statintr: if interrupting code running below IPL_SCHED, call schedintr()
directly, saving the overhead of an extra soft interrupt.
2003-01-14 23:00:59 +00:00
pk
c8226e1ce0 Define spllowerschedclock().
To be used in the same spirit as spllowersoftclock().
2003-01-14 22:58:00 +00:00
pk
d45f77c6c8 Add CLKF_LOPRI() macro that allows a (timer) interrupt handler to determine
whether it is interrupting code running at a given IPL level.
2003-01-14 22:54:53 +00:00
pk
ee7e8274a6 xcall: raise IPL to splsched() to prevent interrupts that take schedlock.
Otherwise we have a locking order problem with schedlock and xmsglock.
2003-01-14 17:30:55 +00:00
pk
18cd92ffe3 (Re)initialise the pmap structure fields that are not preserved on the
pmap pool cache all in one place.
2003-01-14 13:56:07 +00:00
fvdl
5692526bb6 Remove duplicate assignment. 2003-01-14 11:13:25 +00:00
wiz
0bd71f2dbc Recognise tuner on WinTV-GO-FM. From PR 19844 by Wolfgang S. Rupprecht. 2003-01-14 11:09:40 +00:00
fvdl
d928619394 Add a couple more ServerWorks host bridges that explicitly need IO space
enabled.
2003-01-14 10:56:53 +00:00
fair
7b889057b4 Add bktr*, udsbr* and radio* at each;
allocate a major number for radio*
2003-01-14 08:40:53 +00:00
mrg
b45e7ba10d add detach support 2003-01-14 02:23:29 +00:00
tron
a7bc8e6057 Add support for Epson Perfection 1260. 2003-01-13 21:51:30 +00:00
fvdl
28c12bee16 Actually return the number of found PCI interrupt routes in mpacpi_pcircount
(doh). From Wolfgang Solfrank.
2003-01-13 21:14:39 +00:00
bouyer
3075f204fd As pceb pulls in sio.c and sio_pci.c, is also needs the alpha_shared_intr
attribute.
2003-01-13 20:55:14 +00:00
augustss
12a30d35ea Add KGDB (commented out). 2003-01-13 20:48:16 +00:00
augustss
cb7fde57d3 Make it compile on MPC6xx. I'm not sure about MPC40x. 2003-01-13 20:29:34 +00:00
augustss
5e9e39026f Add KGDB hooks. 2003-01-13 20:26:44 +00:00
augustss
fdac9a76f1 Enable nested interrupts. 2003-01-13 20:26:22 +00:00
pk
b50058b483 Broadcast I-cache flush in the `Unimplemented Flush' trap handler. 2003-01-13 20:00:34 +00:00
briggs
5d3fcb5487 Add dmover to the list of SUBDIRs. 2003-01-13 19:49:59 +00:00
pk
b4a1c0f6a0 Reset ddb_cpuinfo when leaving DDB. 2003-01-13 19:44:53 +00:00
pk
167ce8e6d3 Fix stack tracing once again.
Also check for trap frame boundaries when fetching the return address.
2003-01-13 19:44:06 +00:00
tron
ced7282b45 Regen from "usbdevs". 2003-01-13 17:26:33 +00:00
tron
341e2f7441 Add Epson Perfection 1260 scanner. 2003-01-13 17:25:20 +00:00
bouyer
15c016cd08 When padding frames smaller than ethernet minimum size, make sure we supply
a buffer long enouth, with the padding bytes initialised.
Also pad to ETHER_MIN_LEN - ETHER_CRC_LEN, not ETHER_MIN_LEN (padded frames
were 4 bytes too long).
2003-01-13 17:13:10 +00:00
bouyer
4ceef3ad68 For short (< ETHER_MIN_LEN) packets, supply a zero'd buffer for the extra
bytes to make sure the chip won't send random data.
2003-01-13 17:00:18 +00:00
pk
df4b5f766b Remove UNLOCK_XPMSG() before cpu_halt(); it's not compatible with LOCKDEBUG
and it wan't chique in any case.
2003-01-13 16:59:17 +00:00
mrg
8d9571d120 remove cpu_hatched, cpu_hatch_sc and cpu_hatchstack. the first can use
the cpi->flags, the second is unused and the third is also cpi-idle_u.
2003-01-13 15:50:50 +00:00
pk
5642428f4e Use print_nolog() from xcall(), to avoid confounding things even further
by re-entering the scheduling code to wakeup syslog waiters.
2003-01-13 15:01:16 +00:00
mrg
090790c7a7 pull across the quirk table from the wss@pnpbios driver and use it identically.
now wss@acpi works on my dell inspiron 3500.
2003-01-13 13:01:15 +00:00