Commit Graph

150549 Commits

Author SHA1 Message Date
rumble db8f31d6dd Comment out tl(4) and nsphy(4) (used by the Set Engineering board) as it
appears to have an unresolved problem with bulk transmits.
2006-09-01 03:36:30 +00:00
rumble 67e8288ba5 Remove the 'FIFO Full' hack for interrupt vector 0.
It is unclear that this interrupt fails to latch as int2_wait_fifo()
depends on it doing so and appears to work. Furthermore, we were previously
unconditionally unmasking the interrupt 0 vector, which led to more
'unexpected interrupt' messages on the console, rather than avoiding them.

Approved by sekiya@.
2006-09-01 03:33:41 +00:00
matt 49b2425f19 Use an unsigned int for the blksize on read_cd_capacity. 2006-09-01 03:29:32 +00:00
dyoung 013444d78c Remove the declaration of an unused local variable 'reg'. 2006-09-01 03:24:58 +00:00
matt 4139dfe2aa Move a variable to prevent a "unused" variable warning. 2006-09-01 03:24:50 +00:00
matt 28ee68ae9b Make this compile. The "fixed" bus_space_tag_t is horrible. 2006-09-01 03:24:08 +00:00
matt aa6c194477 Remove an unneeded volatile. 2006-09-01 03:22:58 +00:00
matt fc28199c6e Fix a -Wshadow error. 2006-09-01 03:22:26 +00:00
dyoung 19ce2e4680 Vastly simplify the code that copies an ICMP6 packet to two data
paths: ICMP6 reply path, and socket path.
2006-09-01 02:44:46 +00:00
dyoung cb88bdd489 Re-use macro IN6_IS_SCOPE_EMBEDDABLE(). 2006-09-01 02:25:29 +00:00
dyoung f583dae6cb Restore historical kernel behavior: let an application bind(2) an
IPv6 interface address (e.g., sin6_addr fe80::200:24ff:fec3:4bac
sin6_scope_id 1), set a multicast interface with
setsockopt(,IPPROTO_IPV6,IPV6_MULTICAST_IF,), and sendto(2) multicast
destinations with "wildcard" scope ID, 0, without error EHOSTUNREACH.

Prior to this patch, sendto(2) would exit with EHOSTUNREACH, even
though the scope ID was unambiguously specified both by bind(2)
and setsockopt(2).  This was a bug because it broke old applications.

Thanks JINMEI Tatuya for the patch!
2006-09-01 01:59:56 +00:00
dyoung 9cc1c09a17 Rename gre_softc member sc_sp to sc_soparm to fix NetBSD/alpha
compiles, where some other system header #defines sc_sp.

In gre_ioctl, GREDSOCK case, do not try to delete sc_fp if it is
NULL.

Move GREDSOCK and GRESSOCK definitions to where the other GRE ioctls
are defined.

Remove #ifdef GRESSOCK, it's unnecessary now that the feature is
complete.
2006-09-01 01:34:05 +00:00
matt 0b50c4ad5c Make this compile again (hi xtos!). Switch to C99 structure initializations. 2006-08-31 23:21:54 +00:00
bjh21 1323fd42da This file isn't used any more. 2006-08-31 23:16:28 +00:00
freza fd156a0bc9 * move the "cheating" conditional into unmapiodev() implementation
itself (instead of memio_unmap()), as it differs between OEA and
  ibm4xx.

OK by matt@
2006-08-31 23:14:38 +00:00
freza 8f274ce5a8 * implement unmapiodev(), make mapiodev() aware of ppc4xx_tlb_mapiodev()
* we now don't rely on having console linear-mapped (that was terribly
  broken, really)
* also, this can be used as generic ibm4xx mapiodev()/unmapiodev()

OK by matt@
2006-08-31 22:53:40 +00:00
hubertf 3a3624455e Sync behaviour of sh and ksh dotfiles for new users with those of root.
Addresses PR 32215 by Wouter Schoot
2006-08-31 22:49:55 +00:00
he 0b5587a884 Provide a dummy default for NBPG after including <sys/param.h> to deal
with a build problem for sparc.  The reason is that <dev/tc/sticio.h>
(yes, irrelevant for sparc...) wants NBPG declared, but for sparc user-land
that symbol is not available since sun4/sun4c/sun4m do not all share the
same page size.
2006-08-31 22:41:14 +00:00
hubertf d0b2986f47 Sync order with src/etc/skel/dot.cshrc, no functional change. 2006-08-31 22:33:14 +00:00
rpaulo 481ac4be37 Change PROG to xcvs and PROGNAME to cvs.
Builds xcvs binary but installs using cvs filename.

Another fix for case-insensitive file systems, approved by Christos.
2006-08-31 22:31:45 +00:00
he 276f9c838b Add one more conflicting ioctl set: CLOCKCTL_ADJTIME / TCTRL_MODEM_PWR,
(partially) fixes build problem for sparc.
2006-08-31 22:25:34 +00:00
freza ca97defaa7 * ppc4xx_tlb_reserve(): allocate "reserved" TLB entries dynamically
* ppc4xx_tlb_mapiodev(): resolve pa to va from reserved TLB entries

OK by matt@

XXX we'll keep TLB_NRESERVED defined until we fix explora to use new API
2006-08-31 22:13:51 +00:00
reinoud 037fe176f0 Add shortcut for struct long_ad 's Unique ID hint that covers the lower 32
bits of the targeted files 64 bits Unique ID for recovery purposes.
2006-08-31 21:38:14 +00:00
reinoud 0b228f5987 Fix panic on reading/writing to a (raw) CD device and encountering an
error. It now correctly sets bp->b_resid to the full size of the buffer.
The failed SCSI read/write command allways contains the complete buffer.

When encountering a read (or write) error, the scsipi stack sets the
xs->resid to zero since the command has been accepted by the drive. The
scsi command set does not allow a partial read or write to be performed and
will signal a success or an error.
2006-08-31 21:32:42 +00:00
freza 60d1041835 * add PVR values for Xilinx 405 cores
* don't try to decode vendor-specific PVR, print raw value instead.
* panic() if we see cache wasn't probed, we'd crash later anyway.
* rework the way PVR gets translated to core name.
* while there, normalize printf format ("%s: ...", device_xname(self), ...).

OK by matt@
2006-08-31 21:32:27 +00:00
bjh21 bc3d7ff3c7 My version of scsidm (1.03) seems to section a disk by making a FileCore
file system that covers the whole disk but marking most of it in use somehow.
Make this easier to deal with by detecting an existing RISC iX partition and
displaying its starting cylinder.

This program should really go away and its job be done by sysinst and/or
disklabel, but not today.
2006-08-31 20:59:24 +00:00
reinoud e3b1c755c2 Remove two spurious empty lines in functions 2006-08-31 20:22:34 +00:00
rpaulo 1399def216 Rename TEST/test.c to avoid problems when doing a cleandir on case-insensitive
file systems.
ok'ed christos.
2006-08-31 20:20:38 +00:00
reinoud 055cdf5d13 Fix fencing bug on CD disk size; the comment was wrong, its the *length* of
the device and since we count from zero its equal to the number of sectors
and thus one higher than the last sector.

This fixes the read/write problems on the (raw) device where the last
sector was not readable/writable.
2006-08-31 19:46:54 +00:00
dyoung 8cd106d3d2 Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.
2006-08-31 19:24:37 +00:00
tsutsui a714ccc7c2 volatile void func(decl) -> void func(decl) __attribute__((__noreturn__)) 2006-08-31 19:23:44 +00:00
matt 3d36667ef9 Appease GCC4 by making /* NOTREACHED */ code return 0. 2006-08-31 18:31:59 +00:00
matt 77ef4246de Call unmapiodev when unmapping bus_space to possibly reclaim the VA. 2006-08-31 18:28:47 +00:00
matt 3d324b035e Add unmapiodev(vaddr_t, vsize_t) (to be used by bus_space_unmap) 2006-08-31 18:23:40 +00:00
matt 25159b5f42 Add unmapiodev. 2006-08-31 18:18:17 +00:00
matt 6a157410d2 Increase SYMTAB_SPACE 2006-08-31 18:12:42 +00:00
dogcow 5d399ea343 process_stoptrace is also used by PTRACE; fixes INSTALL_SMALL, GENERIC_TINY,
et al, where KTRACE isn't defined but PTRACE is.
2006-08-31 18:05:21 +00:00
matt 00185e0248 Make these compile again. (#include <arm/ep93xx/epgpioreg.h> and
do the proc -> lwp changeover).
2006-08-31 17:53:19 +00:00
dyoung 7ad81e35ff Remove an extraneous line that snuck into my previous commit. 2006-08-31 17:49:12 +00:00
dyoung 47be766fd3 Add a mode to gre(4) that sends GRE tunnel packets in UDP datagrams.
Fix MOBILE encapsulation.  Add many debugging printfs (mainly
concerning UDP mode).  Clean up the gre(4) code a bit.  Add the
capability to setup UDP tunnels to ifconfig.  Update documentation.

In UDP mode, gre(4) puts a GRE header onto transmitted packets,
and hands them to a UDP socket for transmission.  That is, the
encapsulation looks like this: IP+UDP+GRE+encapsulated packet.

There are two ways to set up a UDP tunnel.  One way is to tell the
source and destination IP+port to gre(4), and let gre(4) create
the socket.  The other way to create a UDP tunnel is for userland
to "delegate" a UDP socket to the kernel.
2006-08-31 17:46:16 +00:00
matt d2fa9e5329 Make cpu_coredump dependent on COREDUMP 2006-08-31 16:49:21 +00:00
matt 34827b737d More PTRACE fallout. 2006-08-31 16:39:13 +00:00
he 3e73ce6bef Protect the include of "opt_ptrace.h" by _KERNEL_OPT. 2006-08-31 15:01:56 +00:00
tron 595808ad47 Don't build "linux_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 14:00:29 +00:00
tron 3a715a0a6f Don't build "freebsd_ptrace.c" anymore. ptrace(2) support is optional now
and we can't tell for the LKM whether the kernel supports it or not.
2006-08-31 13:25:50 +00:00
gson d9fde78727 In -i mode, flush standard output after each line. This is needed to
make the output appear in a timely fashion when redirected to a file
or pipe.
2006-08-31 10:25:04 +00:00
he 29c0c094cc Add linking against -lutil to pick up estrdup(). Fixes evbsh5 build. 2006-08-31 07:18:39 +00:00
matt 5322f324e6 Make this console now that vconsole is done and with GCC4. 2006-08-31 05:11:07 +00:00
xtraeme 6b60608a48 Execute k8_powernow_init() if it's a K8 CPU and is able to change FID/VID
(previously the test was always false).

POWERNOW_K8 now runs in 32-bit mode with amd64 CPUs.
2006-08-31 04:20:21 +00:00
oki a7e68afd48 Regen (for PTRACE). 2006-08-31 00:23:11 +00:00