Commit Graph

84679 Commits

Author SHA1 Message Date
mike
6a9f30910e Cast return values of sizeof() to int so they can be printed with %d.
The size of this struct is unlikely to ever grow beyond what an int
can represent.

Noticed by:	alpha tinderbox
2003-01-06 04:33:46 +00:00
obrien
245822d35f Need to prototype strsuftollx() to quiet a warning. 2003-01-06 04:09:20 +00:00
obrien
c5fa1fb790 Make the "nbsd_20030105" import build. 2003-01-06 03:03:53 +00:00
obrien
a5e5d8a2c1 This commit was generated by cvs2svn to compensate for changes in r108760,
which included commits to RCS files with non-trunk default branches.
2003-01-06 02:26:00 +00:00
obrien
d6438e004a NetBSD files needed to build LukeM's ftpd src as taken from the NetBSD CVS repo.
The "portable" release of this is just lagging way too far behind
what is in NetBSD's base.
2003-01-06 02:26:00 +00:00
marcel
007da5a53d Move ia64_sapics and ia64_sapic_count from interrupt.c to sapic.c
and declare them extern in interrupt.c. This eliminates the need
for ia64_add_sapic(), which is called from sapic.c.
While here, reformat ia64_enable() in interrupt.c to improve
indentation and add a sysctl (machdep.apic) to dump the I/O APIC
entries currently programmed into all I/O APICs. The latter can
help analyze interrupt problems.
Note that the sysctl is not intended as a userland (software)
interface. It may be changed in the future to include counters
so that vmstat -i can make use of it. It may also be removed...
2003-01-06 02:09:08 +00:00
silby
a2f9918dd0 Ooops, use the full name of XL_FLAG_EEPROM_OFFSET_30
Noticed by:	Niels Chr. Bank-Pedersen <ncbp@bank-pedersen.dk>
2003-01-06 01:55:12 +00:00
peter
1d946ebfc2 Move the itm reload to a single place rather than having two identical
copies of the reload.  Note that we use the precomputed itm_reload value
so that we can avoid a division in the kernel.  The ia64 cpu does not
have integer divide, so this would have been done by a floating point
operation.
2003-01-06 01:53:55 +00:00
marcel
584a6a5f1c Replace the hardcoding of 255 as the clock interrupt vector with
CLOCK_VECTOR and define it as 254, not 255. Vector 255 is already
in use as the AP wakeup vector on the HP rx2600.

This needs to be made more dynamic. The likelyhood of vector 254
being in use is pretty small, but we already have code to assign
vectors to IPIs (see sal.c) and it's preobably better to have a
centralized "vector manager" that hands out vectors based on
some imput (like priority).
2003-01-06 01:39:25 +00:00
peter
af85e6b2d6 Explicitly have the timecounter init happen after the cpu_initclocks is
called.  Otherwise (depending on a non-deterministic sort), the timecounter
code can be initialized before the clock rate has been set (on ia64) and it
assumes hz = 100, rather than the real value of 1024.  I'm not sure how much
gets upset by this.

Glanced at by:	phk
2003-01-06 01:01:08 +00:00
marcel
8c2352be36 Enable pppctl(8) on ia64. 2003-01-06 01:00:26 +00:00
marcel
e9cd0e2e14 Port libc_r to ia64. We need to do things slightly different
because we have 2 stacks per thread: the regular downward
memory stack and the irregular upward register stack. This
implementation lets both stacks grow toward each other. An
alternative scheme is to have them grow away from each other.
The alternate scheme has the advantage that both stack grow
toward guard pages. Since libc_r is virtually dead and we
really want the *context stuff for thread switching, we don't
try to be perfect, just functional.
2003-01-06 00:56:23 +00:00
silby
27381a0d45 Add support for the 3c555 miniPCI chipset.
Submitted by:	johannes <johannes@paradise.net.nz>
PR:		46603
MFC after:	3 days
2003-01-06 00:46:03 +00:00
marcel
89da141f5e Manually inline handleclock(). There's only a single caller and
handleclock itself is trivial.

While here, replace (itc_frequency+hz/2)/hz with itm_reload for
consistency. There's now a single place where we determine the
ITM reload value.
2003-01-06 00:38:35 +00:00
silby
4b029c13b0 Add two MII_SETs to provide a bit more time between operations in
xl_sync; this appears to be necessary with certain systems.

Requested by:	Michael Class <michael_class@gmx.net>
2003-01-06 00:36:13 +00:00
marcel
95f59f22f7 Count interrupts as soon as possible. This makes sure interrupts are
counted even when there are no handlers.
2003-01-06 00:25:31 +00:00
obrien
8f4f539c28 Merge our .Nm changes into the nbsd_20030105 import. 2003-01-06 00:20:26 +00:00
obrien
c9e7985f5a Import of LukeM's ftpd taken from the NetBSD CVS repo on 5-Jan-2003.
The "portable" release of this is just lagging way too far behind
what is in NetBSD's base.
2003-01-06 00:06:49 +00:00
obrien
084ff294f9 This commit was generated by cvs2svn to compensate for changes in r108746,
which included commits to RCS files with non-trunk default branches.
2003-01-06 00:06:49 +00:00
tmm
9db57e5cdf Build pppctl on sparc64, now that we have libc_r. 2003-01-05 22:38:58 +00:00
tmm
425245353b Build libc_r on sparc64, it should work now. 2003-01-05 22:37:54 +00:00
sam
f49b27d477 correct pkthdr length calculation for ipv6 echo packets; after moving a packet
header with M_MOVE_PKTHDR one should not reference the packet header in the
original packet; in this case the code was assuming that m_adj would alter
m_pkthdr.len which stopped happening because M_MOVE_PKTHDR removes the
M_PKTHDR bit from m_flags

Submitted by:	Bill Fenner <fenner@research.att.com>
2003-01-05 22:37:36 +00:00
tmm
3c69015b49 Add MD definitions for sparc64. This is based on work by des. 2003-01-05 22:37:03 +00:00
tmm
7089000c6c Add an implementation of _atomic_lock for sparc64. This was submitted by
des; I tweaked it slightly by extending the membar and making it match
the style of the rest of the sparc64 assembler code.
2003-01-05 22:23:11 +00:00
tmm
6e68a2b1ca Rewrite longjmp() and _longjmp() to directly restore the saved frame,
instead of unwinding the call stack. This makes them usable to switch
stacks, e.g. for libc_r.
Do not save the frame pointer in setjmp() and _setjmp(), it is not needed
any more.
Rename _longjmp() to ___longjmp(), with a weak alias to _longjmp(), like
the other architectures did.
2003-01-05 22:17:32 +00:00
marcel
d16b835650 Don't hardcode the address of the local (S)APIC (aka processor
interrupt block). We use the previously hardcoded address as a
default only, but will otherwise use whatever ACPI tells us.
The address can be found in the MADT table header or in the
LAPIC override table entry.
2003-01-05 22:14:30 +00:00
tmm
e40f9005a3 Rename siglongjmp() to __siglongjmp(), with a weak alias to siglongjmp(),
like the other architectures do.
2003-01-05 22:10:06 +00:00
phk
97ae520f5d Fix cut&paste bug which would result in a panic because buffer was
being biodone'ed multiple times.
2003-01-05 22:01:08 +00:00
marcel
b94ae4e3db Bump the number of interrupts from 65 to 257. This is a waste of
space most of the time, but handles machines with lots of I/O
(S)APICs. We cannot make this more dynamic without breaking the
interface with vmstat. Hence, we need to fix the interface first.
2003-01-05 22:00:19 +00:00
marcel
1116de1ec0 Handle 3-digit interrupt numbers (vectors). While here, change the
name of unused entries from "intr XXX" to "#XXX". This makes it
easier to debug interrupt problems, because vmstat can be hacked
more easily to dump all interrupt entries that are in use and not
those that have had interrupts.
2003-01-05 21:48:33 +00:00
hrs
c8e8679738 - Merge the following from the English version:
1.2   -> 1.3  	hardware/sparc64/Makefile

- Add new translations and activate them:

	(new) -> 1.1  	hardware/pc98/Makefile
	(new) -> 1.1  	hardware/pc98/article.sgml
	(new) -> 1.1  	hardware/pc98/proc-pc98.sgml
2003-01-05 21:46:31 +00:00
jake
258636782b rl(4) works on sparc64 now. 2003-01-05 21:41:22 +00:00
marcel
d692da2da6 Make all memory I/O addresses (explicitly) 64-bit. Memory mapped
devices aren't necessarily mapped within 4GB. I/O port addresses
are offsets into the memory mapped I/O port space, which is not
larger than 16MB. No need to convert those to 64 bit types.
2003-01-05 21:40:45 +00:00
jake
4b596ebb02 Tweaks to make if_rl work on sparc64.
Mostly submitted by:	tmm
Tested on:		i386, sparc64
2003-01-05 21:36:59 +00:00
marcel
260320dd29 Provide a null-implementation for bus_space_unmap, like i386.
bus_space_unmap is required for puc(4).
2003-01-05 21:34:05 +00:00
se
6f580108ee Add support for bzip2ed log files. 2003-01-05 21:32:50 +00:00
hrs
c236864bc2 Add common/dev.sgml as a source forgotten in the previous commit. 2003-01-05 21:31:47 +00:00
hrs
e259f5a6bf - Merge the following from the English version:
1.3   -> 1.4  	hardware/i386/article.sgml

- Add new translations and activate them:

	1.3   -> 1.5  	hardware/Makefile
	1.3   -> 1.4  	hardware/common/hw.ent
	1.1   -> 1.2  	hardware/sparc64/Makefile
	1.2   -> 1.3  	hardware/sparc64/article.sgml
	(new) -> 1.5  	hardware/sparc64/proc-sparc64.sgml

Submitted by:	Hideyuki KURASHINA <rushani@jp.FreeBSD.org>
References:	[doc-jp-work 549]
2003-01-05 21:20:35 +00:00
hrs
19808f983f - Catch up with the English version:
1.3   -> 1.4  	relnotes/i386/article.sgml

- Hook ia64 up to the build:

	1.4   -> 1.5  	relnotes/Makefile
	(new) -> 1.1  	relnotes/ia64/Makefile
	(new) -> 1.1  	relnotes/ia64/article.sgml

Submitted by:	Hideyuki KURASHINA <rushani@jp.FreeBSD.org>
References:	[doc-jp-work 550]
2003-01-05 20:40:43 +00:00
phk
0552c4bec8 Convert VOP_STRATEGY to VOP_SPECSTRATEGY in the generic getpages and
the pager input for small filesystems.
2003-01-05 20:32:03 +00:00
hrs
28a91c5db9 Merge the following from the English version:
1.6   -> 1.8  	early-adopter/article.sgml

Submitted by:	Hideyuki KURASHINA <rushani@jp.FreeBSD.org>
References:	[doc-jp-work 548]
2003-01-05 19:28:05 +00:00
phk
06eb9ef336 Don't override the vop_lock, vop_unlock and vop_isunlocked methods.
Previously all filesystems which relied on specfs to do devices
would have private overrides for vop_std*, so the vop_no* overrides
here had no effect.  I overlooked the transitive nature of the vop
vectors when I removed the vop_std* in those filesystems.

Removing the override here restores device node locking to it's
previous modus operandi.

Spotted by:	bde
2003-01-05 19:14:44 +00:00
alc
9b01bac020 Allocate bogus_page with VM_ALLOC_WIRED. (Previously, bogus_page's
allocation incremented the global count of wired pages, but not the
page's own wire count.  This inconsistency was introduced in
revision 1.230.)
2003-01-05 18:46:13 +00:00
mike
8e212c0671 Avoid casting pointers to int and using %x to print them.
Noticed by:	alpha tinderbox
2003-01-05 16:23:49 +00:00
simokawa
36f295a49d Reduce diff to RELENG_4. 2003-01-05 14:58:45 +00:00
fenner
dde73f1de4 Use in_addr_t for the right size of an IPv4 address, and copy into
an unaligned destination using bcopy instead of an assignment.

Submitted by:	Hartmut Brandt <brandt@fokus.gmd.de>
PR:		sparc64/46729
2003-01-05 14:05:24 +00:00
fenner
24aad6f8c0 Fix alignment problems -- the embedded v4 address is guaranteed to
be only 16-bit aligned, so only do byte operations to compare with it.
2003-01-05 14:03:26 +00:00
alfred
fac9f38e79 In sodealloc(), if there is an accept filter present on the socket
then call do_setopt_accept_filter(so, NULL) which will free the filter
instead of duplicating the code in do_setopt_accept_filter().

Pointed out by: Hiten Pandya <hiten@angelica.unixdaemons.com>
2003-01-05 11:14:04 +00:00
phk
dc4b3da26a Don't take the detour over VOP_STRATEGY from spec_getpages, call our
own strategy directly.
2003-01-05 10:03:57 +00:00
phk
759be6dc01 Split out the vnode and buf arguments to the internal strategy worker
routine instead of doing evil casts.
2003-01-05 09:55:26 +00:00