152388 Commits

Author SHA1 Message Date
bjh21
7b50d90366 When processing RASes, only pay attention to, and change, the PC parts of R15,
leaving the PSR bits alone.  Necessary to make regress/sys/kern/ras/ras1 pass.
2006-10-15 12:45:32 +00:00
yamt
72fc92b729 ffs_alloc: remove an assertion which is no longer true. 2006-10-15 12:23:56 +00:00
tsutsui
fec9e58b4d In vge_newbuf(), don't adjust packet length twice by m_adj(9)
in case of __NO_STRICT_ALIGNMENT. We can adjust m_data directly
since it's allocated by MCLGET(9) just above.
(though the length is not used anyway)
2006-10-15 11:52:36 +00:00
martin
a5cb9c8ff7 PR lib/34801 from David A. Holland: "static" comes first in declaration. 2006-10-15 10:55:01 +00:00
tsutsui
76a3c671ce Umm, remove a DELAY() added in previous. It seems to cause another problem. 2006-10-15 10:54:15 +00:00
tsutsui
2412a17a18 On sgimips (R5000 O2), it seems that the first EEPROM read data
right after vge_reset() could be corrupted. For workaround, add a
dummy EEPROM read in vge_reset() so that MAC address is properly
set on the machine.
While here, add a DELAY() in busy loop in vge_read_eeprom().
2006-10-15 10:33:25 +00:00
tsutsui
4751084399 Oops, use correct dmamap to sync DMA descriptors.
Found by DIAGNOSTIC code in sgimips/bus.c:_bus_dmamap_sync_mips3().
2006-10-15 09:37:27 +00:00
dsl
0195907f3d Output all debug trace output through 'debug_file' defaulting to 'stdout'.
(Almost all the debug output went there, but some went to stderr.)
Split the parsing of -d (debug flags) out into its own routine.
Allow the output filename to be changed by specifying -dF<file> to create
a log file, or -dF+<file> to append to it. <file> may be stdout or stderr.
Also change so that -d-<flags> acts on <flags> locally but doesn't copy
them to MAKEFLAGS so they aren't inherited by child makes.
I'm not 100% happy with the command line syntax for the above, so they are
currently undocumented.
2006-10-15 08:38:21 +00:00
dyoung
a42ff4b405 Make SIOCALIFADDR work for adding IPv6 addresses: initialize the
lifetime of the addresses to infinity (ND6_INFINITE_LIFETIME).

Nobody squealed when I proposed this on tech-net.
2006-10-15 07:00:44 +00:00
dyoung
ca38b620b0 Two bug fixes:
If gre_socreate1() cannot find out the socket's address, exit with
an error.  Before, it could exit *without* an error.

If gre_thread1() finds that it is without a valid socket (i.e., so
== NULL) but the configuration is "unchanged" (in initial state),
force reconfiguration.  This prevents a crash when we try to bring
up a GRE over UDP interface whose UDP endpoints have never been
specified.
2006-10-15 06:36:54 +00:00
dyoung
755be14a30 Cosmetic: join lines to conserve vertical space. 2006-10-15 06:28:53 +00:00
tsutsui
78ca0f3f54 Don't add `-I${NETBSDSRCDIR}/sys' to HOST_CPPFLAGS to pull
necessary target system headers (<fs/unicode.h> and <fs/cd9660/iso.h>)
because system headers for the host (like <sys/stat.h>) are also pulled
from there and it causes build errors if target src tree is different
from installed one on the host.
Instead, copy the necessary system headers for host's programs into
${.OBJDIR} first.

Problem reported from Geert Hendrickx, and there is no particular comment
on tech-toolchain.
2006-10-15 04:24:11 +00:00
uwe
4fcce87c8c Replace __INTR_MASK and swap dance to load PSL_RB (and doing stc/ldc
twice in the process) with code that just uses mov.l to get the bits
to clear and set in SR.

Use proper local labels.  Add rcs id.  G/c unused includes.  Add .size
2006-10-15 02:31:00 +00:00
uwe
92dc06bfcf Don't include <machine/intr.h> in asm sources. 2006-10-15 02:11:21 +00:00
uebayasi
008312679d A missing period.
Reviewed By:	wiz
2006-10-15 01:53:41 +00:00
dogcow
37bb4f935a do the #ifndef lint dance for __RCSID; also, include the appropriate
headers if cross-building the program in tools/.
2006-10-15 01:16:31 +00:00
christos
9c32e391e9 strlcpy off by one errors (from gdamore) 2006-10-15 01:10:00 +00:00
uwe
e81532e95c Remove vestigial {,e}intr{names,cnt} symbols, vmstat no longer needs them. 2006-10-15 00:25:48 +00:00
itohy
b1d32ad8f3 white space police 2006-10-15 00:00:00 +00:00
itohy
65b52f68a1 Add ATAPI Pioneer (info from Linux) and ATA TDK (I have one)
as exceptions of string byte order.
Add string byte order shuffling for big-endian platforms.
2006-10-14 23:54:14 +00:00
uwe
71ee5d56f8 Protect miniroot initialization code with #ifdef MFS 2006-10-14 23:51:17 +00:00
dogcow
8cf357b535 Add NetBSD tag, add bsd.subdir.mk include. 2006-10-14 23:38:40 +00:00
uwe
8514c96f9a Recognize SH2E from new binutils (map to sh3e vector). 2006-10-14 22:20:06 +00:00
bjh21
bafb9c4f84 The SEC uses the same page latch for both ROM and RAM, so we should arrange
to reset it to 0 on shutdown so that RISC OS gets to see the start of the
ROM.
2006-10-14 21:47:11 +00:00
christos
48314d6d96 memset the whole struct addrinfo, instead of trying to figure out if we
have a pad member or not.
2006-10-14 21:45:29 +00:00
bjh21
cb9637bcff Make regress target depend on the test program so as to ensure it gets
compiled.
2006-10-14 21:23:01 +00:00
christos
4ce31f7c8c PR/34818: rad at twig dot com: Recognize solaris door files. 2006-10-14 21:14:02 +00:00
christos
dac81217a4 glue in the lint regression tests now that they work. 2006-10-14 21:10:53 +00:00
christos
e578e35910 Fix c99 initialization issues. Now the regression tests work. 2006-10-14 21:08:50 +00:00
smb
f182d6d2ee Fix argument order 2006-10-14 21:05:40 +00:00
bjh21
c08721e416 Make regress target depend on the test program so as to ensure it gets
compiled.
2006-10-14 20:57:10 +00:00
bjh21
00fc4b5639 This doesn't panic any more, so run it automatically. 2006-10-14 20:42:47 +00:00
bjh21
a9e02c7638 Correctly calculate fault addresses for instructions like:
ldr	rX, [rY, rZ, ror #16]
and even:
	ldr	rX, [rY, rZ, rrx]
Why anyone would want such an instruction is beyond me, but it's nice not to
panic if they do.  Also this makes regress/sys/arch/arm/abort-fixup pass.
2006-10-14 20:39:21 +00:00
tsutsui
2b6030cf82 Note vge(4) on big endian. 2006-10-14 20:25:49 +00:00
tsutsui
a674247cab Add vge at pci and ciphy at mii. Working on my Apus2000. 2006-10-14 20:08:07 +00:00
tsutsui
657cf77ed2 - use MGETHDR() and MCLGET() rather than m_gethdr() and m_clget()
- KNF, ANSIfy, remove register decls
- some more cosmetics
2006-10-14 19:53:51 +00:00
tsutsui
607772f8e4 - call bus_dmamap_sync() properly (sigh)
- merge vge_dma_map_rx_desc() and vge_dma_map_tx_desc() into callers
- declare DMA descs volatile
- remove unused macro/declarations
- bzero -> memset
- some more cosmetics
2006-10-14 19:10:35 +00:00
christos
8056b71c34 more __unused 2006-10-14 18:59:57 +00:00
christos
a2161fece4 sprinkle __unused. 2006-10-14 18:57:06 +00:00
christos
e7acb44bcf Allow escaping of the separators using a double backslash 2006-10-14 18:53:11 +00:00
christos
c04db80c0b mention that we can now escape ,'s and whitespace using a double \\ 2006-10-14 18:52:39 +00:00
bjh21
2121e75b3f When forking a new LWP, if a new user stack pointer is provided, use it.
Necessary to make regress/lib/libc/clone pass.
2006-10-14 17:51:37 +00:00
tsutsui
4ee87b9180 - use correct dmamap size for TX/RX DMA descriptors
- use __NO_STRICT_ALIGNMENT directly rather than local VGE_FIXUP_RX
- no need to use BUS_DMA_ALLOCNOW
- remove unneeded members from softc

XXX: Is vge_fixup_rx() really more efficient than memmove(9),
XXX: or allocating a new buffer and memcpy(9) into it?
XXX: Anyway, vge(4) is not recommended for non-x86 hosts at all
XXX: because it requires copying buffers by CPU on RX.
2006-10-14 16:45:46 +00:00
tsutsui
cd07b37a00 Umm, set Ethernet address into softc properly. 2006-10-14 15:53:23 +00:00
gdamore
1f351906f2 Forgot to commit this file when adding SPI support to Atheros. 2006-10-14 15:33:23 +00:00
xtraeme
7cf1cb802e Detect FFSv1 partitions with fragsize/blocksize greater than
2048/16384.
2006-10-14 13:22:34 +00:00
tsutsui
63bc3bee0c - fix eeprom read function so that MAC address can be read correctly
on big endian machines
- add some missed byteswap functions for DMA descriptors
2006-10-14 11:29:15 +00:00
bjh21
b78535679e Use ADDR_BITS_REMOVE on return addresses pulled from stack frames un
arm_unwind_pc().  This makes stack backtraces on acorn26 work correctly
(assuming you've done "set arm apcs32 0" first).
2006-10-14 10:42:53 +00:00
yamt
a7dbf2d5e5 uvm_loanbreak: transfer dirtiness of the old page to the new page,
rather than blindly mark it dirty.  fix a part of PR/33513.
2006-10-14 09:23:56 +00:00
yamt
61934cf2b4 uvm_vnp_setsize: put back v_size assignment after uvn_put.
PR/34147 from Juergen Hannken-Illjes.
2006-10-14 09:20:35 +00:00