Commit Graph

102326 Commits

Author SHA1 Message Date
cognet
d0cadd4171 Define uart_sa1110_ops and uart_sa1110_classe in .c files instead of spamming
uart_cpu.h
2004-05-14 13:42:50 +00:00
cognet
80990c1ba8 Define INLINE_LIMIT for arm. 2004-05-14 13:35:46 +00:00
cognet
4e59635f3d Do not attempt to build anything in sys/boot for arm. 2004-05-14 13:34:53 +00:00
cognet
ff1d779bb8 Define MACHINE_CPU for arm. 2004-05-14 13:34:15 +00:00
cognet
7f27f44019 Define iaddr_t and saddr_t for arm. 2004-05-14 13:32:13 +00:00
cognet
548b0bdf38 Use WARNS?=3 for these in the arm case for now, due to toolchain issues. 2004-05-14 13:31:21 +00:00
mbr
c7ec72e256 Add a list of all local changed files. All these files have been taken
of the vendor tree.
2004-05-14 13:29:48 +00:00
mbr
92cae84295 We don't need these files. Add the to the x-list. 2004-05-14 13:28:37 +00:00
cognet
c7efba8262 Implement enough of an uart driver to get serial console working. 2004-05-14 13:26:52 +00:00
eik
7039419a1e -maxdepth and -mindepth are global variables
PR:		66613
Approved by:	ru
MFC after:	3 days
2004-05-14 12:58:13 +00:00
cognet
28d4cf09a1 Import libkern arm specific bits. 2004-05-14 12:28:31 +00:00
cognet
575652b6db Import the openssl conf for arm. 2004-05-14 12:26:51 +00:00
cognet
0408b80554 Import _setjmp.S for arm in libstand. 2004-05-14 12:24:51 +00:00
cognet
7d622826f7 Import libkvm MD file for arm. 2004-05-14 12:24:03 +00:00
cognet
8d4253f968 Arm bits for libpthread. It has no chances to work and should be considered
as stubs.
2004-05-14 12:21:29 +00:00
cognet
b61dd18098 C runtime support for FreeBSD/arm. 2004-05-14 12:19:04 +00:00
cognet
014f12928e Import arm bits for rtld-elf.
Obtained from:	NetBSD
2004-05-14 12:15:51 +00:00
cognet
1c1451c455 Import the softfloat emulation library, needed for FreeBSD/arm right now.
It should become useless when gcc 3.4 will be imported, as libgcc from
gcc 3.4 contains this bits for arm.
2004-05-14 12:13:06 +00:00
cognet
b4ad23e54b Import the FreeBSD/arm libc bits.
Obtained from:	NetBSD
2004-05-14 12:04:31 +00:00
cognet
537b7c6d69 We use __arm__, not __arm32__. 2004-05-14 11:51:22 +00:00
cognet
1a10458b69 Define malloc_pageshift and malloc_minsize for arm. 2004-05-14 11:50:51 +00:00
cognet
23d9a62030 Add config magic for arm. 2004-05-14 11:49:40 +00:00
cognet
0eff817ca2 Import FreeBSD/arm kernel bits.
It only supports sa1110 (on simics) right now, but xscale support should come
soon.
Some of the initial work has been provided by :
Stephane Potvin <sepotvin at videotron.ca>
Most of this comes from NetBSD.
2004-05-14 11:46:45 +00:00
njl
3fa4734a7d Add support for GPE being a package of { reference, gpe bit }.
Rework the ECDT probe to pass all the parameters in a temporary struct.
Note why we are mostly ok evaluating _GLK so early.
2004-05-14 04:17:56 +00:00
wpaul
bc59a88bac Fix a bug which I discovered recently while doing IPv6 testing at
Wind River. In the IPv4 output path, one of the tests in ip_output()
checks how many slots are actually available in the interface output
queue before attempting to send a packet. If, for example, we need
to transmit a packet of 32K bytes over an interface with an MTU of
1500, we know it's going to take about 21 fragments to do it. If
there's less than 21 slots left in the output queue, there's no point
in transmitting anything at all: IP does not do retransmission, so
sending only some of the fragments would just be a waste of bandwidth.
(In an extreme case, if you're sending a heavy stream of fragmented
packets, you might find yourself sending nothing by the first fragment
of all your packets.) So if ip_output() notices there's not enough
room in the output queue to send the frame, it just dumps the packet
and returns ENOBUFS to the app.

It turns out ip6_output() lacks this code. Consequently, this caused
the netperf UDPIPV6_STREAM test to produce very poor results with large
write sizes. This commit adds code to check the remaining space in the
output queue and junk fragmented packets if they're too big to be
sent, just like with IPv4. (I can't imagine anyone's running an NFS
server using UDP over IPv6, but if they are, this will likely make them
a lot happier. :)
2004-05-14 03:57:17 +00:00
jdp
c7b32428e5 Fix a potential stack buffer overflow on systems whose ACPI OEMID
fills its field (6 characters).  In that case the OEMID is not
null-terminated, and the sprintf that was used would copy up to the
next null byte, which could be pretty far away.
2004-05-14 01:29:21 +00:00
cognet
ac45ce4e45 Document the "files" directive.
Reminded by:	jmg
2004-05-13 21:55:53 +00:00
imp
4afbffe528 Add some verbage over the difference between BUS_ADD_CHILD and
device_add_child.  The former calls the latter.

Pointed out by: jhb
2004-05-13 20:54:49 +00:00
imp
3f9316fa55 o Add cautions about multiple adds of the device
o Remove setting the description of the device (that is more properly done in
  probe).
o Remove setting the driver, as it is unnecessary
o Add pseudo code to ensure that the device isn't added to the tree already.
o remove some now unreferenced routines
2004-05-13 20:31:05 +00:00
imp
457fadd69b Add caveats about adding devices in the IDENTIFY context. 2004-05-13 20:29:40 +00:00
imp
e2ffc1ff2b The DEVICE_IDENTIFY man page refers to this, create a dummy one
directing people to device_add_child.
2004-05-13 20:28:18 +00:00
jhb
30499f45c6 Different VIA host bridges use different offsets to their AGP config
registers, so add a register offset array to the softc.  We key off the
device ID to determine which set of register offsets.  Currently the 8385
host bridge used on amd64 is the only bridge to use the AGP3_VIA_*
register offsets and all other bridges use the AGP_VIA_* offsets.  It is
currently unclear if the AGP3_VIA_* offsets are for VIA bridges that
implement AGP 3.0 bridges or just for amd64 bridges.

Submitted by:	Kenneth Culver culverk at sweetdreamsracing dot biz
2004-05-13 20:05:42 +00:00
jhb
f3ceb63567 Split sleepq_wakeup_thread() into two functions. sleepq_remove_thread()
removes a specific thread from a sleep queue.  sleepq_resume_thread()
resumes scheduling of a thread that has been previously removed from a
sleep queue.
- sleepq_catch_signals() just removes a thread from the queue it was just
  added to when a pending signal is found.
- sleepq_signal() and sleepq_broadcast() remove threads from a queue,
  drop the queue lock, and then resume all the previously removed threads.
  This doesn't completely fix the sched_lock <-> sleepq chain LOR, but it
  makes it a little better as we no longer call setrunnble() with a sleep
  queue lock held meaning if setrunnable() tries to wakeup the swapper we
  don't try to lock two sleep queue chains at the same time.
2004-05-13 20:00:43 +00:00
joerg
6afa816370 Add a reference to the URL of the SMBus specification, so the
terminology used in these drivers will become more transparent.

MFC after:	1 week
2004-05-13 19:31:31 +00:00
des
61d04e9a72 Unbreak the build. 2004-05-13 19:15:21 +00:00
scottl
af47db0411 Enable INTR_ENTROPY if the interrupt is not set to INTR_FAST. Remove the
testing and setting of the INTR_ENTROPY macro as it is not needed in
FreeBSD 5.x.

Submitted by:	Alex Vasylenko
2004-05-13 16:02:18 +00:00
bde
9df7f53e5e Fixed some minor style bugs. 2004-05-13 15:59:38 +00:00
ume
5ebe90b6c8 check if the null encryption is supported or not.
Requested by:	bms
Obtained from:	KAME
2004-05-13 15:46:28 +00:00
kensmith
878b7cfef3 Some mdoc fixes.
mdoc help from:	ru
MFC after:	5 days
2004-05-13 13:09:47 +00:00
truckman
944fa5303b Remove extraneous spaces. 2004-05-13 11:33:44 +00:00
truckman
f491804db1 Implement sbc_lockassert() and sb_lockassert() functions to allow
proper locking to be checked at runtime.

Remove sb_lock() and sb_unlock() calls from sb_reset_dsp() because the
latter is called from sb_setup() with the lock already held.  Add a
call to sb_lockassert().

Surround the call to sb_reset_dsp() in sb16_attach() with sb_lock()
and sb_unlock() calls.

Tested by:	Bartek Marcinkiewicz <junior AT p233.if.pwr.wroc.pl>
2004-05-13 11:32:54 +00:00
tjr
4cb4df9e9a Allow encoding modules to override the default implementations of
mbsrtowcs() and wcsrtombs(). Provide a fast implementation for the
trivial "NONE" encoding.
2004-05-13 11:20:27 +00:00
nyan
cf9b81f8d0 MFi386: revision 1.489 2004-05-13 11:17:07 +00:00
nyan
88b67c4314 Move the ichwd to i386 only. 2004-05-13 11:13:55 +00:00
dds
26d163ee42 Make getprotobynumber() calls in FilterCheck conditional on the log
levels by which they are used.  On a typical production setting (no
debug or filter logging) this will save an open/read/close system
call sequence per packet, approximately halving the system overhead
and reducing the overall overhead by 38%.

dd bs=1k count=512 if=/usr/share/dict/web2 |
ssh ppp-linked-host dd of=/dev/null

# time original-ppp -nat -foreground connection
Working in foreground mode
Using interface: tun0
2.822u 2.404s 2:00.31 4.3%    392+496k 8+18io 3pf+0w

# time new-ppp  -nat -foreground connection
Working in foreground mode
Using interface: tun0
2.082u 1.173s 1:26.06 3.7%    379+450k 0+18io 0pf+0w

MFC after:	3 weeks
2004-05-13 09:03:00 +00:00
ru
bf7c1051a7 Record the libssl.so dependency on libcrypto.so. This should
help some ports that depend on libradius that recently gained
the dependency on libssl.  This is also how the stock OpenSSL
build would link libssl.so on FreeBSD.

Prompted by:	kris
OK'ed by:	markm, nectar
2004-05-13 07:51:47 +00:00
kientzle
7297a85d36 Update raw byte count statistic correctly. 2004-05-13 06:38:30 +00:00
kientzle
2642c5f3a4 Add MLINK for newly-added archive_read_extract_set_progress_callback(3). 2004-05-13 06:04:21 +00:00
kientzle
cc26b06728 Add hook for a client-provided progress callback to be invoked
during lengthy extract operations.
2004-05-13 06:01:14 +00:00
tjr
e552f9132c Handle variable argument lists correctly in reply() and lreply().
In particular, do not pass the same va_list to both vprintf() and
vsyslog() without first reinitializing it. This fixes ftpd -d
on amd64.
2004-05-13 05:36:38 +00:00