enami
b42b2c8323
In soreceive(), don't call sopendfree() if MSG_DONTWAIT is set
...
since it may sleep. nfsrv_rcv() tries to do its jobs in softintr
handler as far as possible.
2002-05-07 08:06:35 +00:00
uwe
440409e641
Delint a bit.
2002-05-07 06:45:22 +00:00
gmcgarry
d9248c05c1
FPSP required. Noted by Michael Wolfson.
2002-05-07 06:17:10 +00:00
gmcgarry
918cdbbb79
Make more featureful.
2002-05-07 06:07:30 +00:00
uwe
58789acb68
Delint. Add /* CONSTCOND */. Add parens to macro argument to avoid
...
interesting interaction between cc -C and comma inside a comment after
macro definition.
2002-05-07 05:56:47 +00:00
uwe
41e6fbc398
Delint somewhat.
2002-05-07 04:52:49 +00:00
thorpej
a19e4685f7
Make CLKF_INTR() slightly less broken. The previous definition always
...
tested true if the CPU was running in the kernel at the time of the clock
interrupt, therefore all such time (kernel and idle) was counted as interrupt
time. The new definition simply punts on trying to count interrupt time,
which allows us to see kernel and idle time.
2002-05-07 04:01:59 +00:00
thorpej
3a3df0d1d2
Fix reading values mapped in P1 via /dev/kmem (problem uncovered by
...
uch's new pmap).
2002-05-07 03:28:25 +00:00
matt
e5555e5c26
Change struct ipqe to use TAILQ's instead of LIST's (primarily for TCP's
...
benefit currently). Rework tcp_reass code to optimize the 4 most likely causes
of out-of-order packets: first OoO pkt, next OoO pkt in seq, OoO pkt is part
of new chuck of OoO packets, and the OoO pkt fills the first hole. Add evcnts
to instrument tcp_reass (enabled by the options TCP_REASS_COUNTERS). This is
part 1/2 of tcp_reass changes.
2002-05-07 02:59:38 +00:00
uwe
2baa6f8e86
Drop SUN4_PGSHIFT and SUN4CM_PGSHIFT. They are already known to .S
...
files from sys/param.h. The problem is that lint stubs are generated
with -C (keep comments) and gcc complains about macro redefinition,
since "assym.h" doesn't have the comments that "sys/param.h" has.
2002-05-07 02:38:44 +00:00
enami
c4e1385f55
Fetch the right page from a file even if it is mapped from middle of it.
...
This makes `tail -<N> <FILE> | cat > file' correctly, where <FILE> is
a regular file larger than 10Mbytes (makes tail to map part of file)
and <N> is big enough to produce output larger than 8kbytes (makes pipe
to use page loan facility). Problem reported by FUKAUMI Naoki on japanese
local mailing list.
2002-05-07 02:29:52 +00:00
simonb
91a4b7da7f
Use "NOMAN=" instead of "MKMAN=no"; per lukem.
2002-05-07 02:13:51 +00:00
simonb
79cc6dcb79
Remove a "NOMAN="; Makefile.booters now has MKMAN=no.
2002-05-07 02:04:26 +00:00
simonb
67c33ffcda
Remove two shadowed variables, one of which was set to what it was
...
shadowing(!) and the other a temporary variable (as was it's shadow).
Code generated with "gcc -O2" is the same before and after.
2002-05-07 02:02:41 +00:00
uwe
c38dba996a
lint target depends on ${LINTSTUBS}, not on (nonexistent) ${KERNLINTSTUBS}.
2002-05-07 02:00:17 +00:00
uwe
8107633e20
bus space methods should be "static __inline__", not "extern __inline__".
...
Otherwise an unoptimized kernel cannot be linked. Reviewed by pk.
2002-05-07 00:37:47 +00:00
eeh
2a4ecb6335
Add a flag for ofpci to let psycho chose between pci and ofpci.
2002-05-06 22:41:10 +00:00
eeh
d87653c0d2
Switch to ofpci.
2002-05-06 22:34:40 +00:00
eeh
91c28a3626
Add code to attach ofpci.
2002-05-06 22:29:22 +00:00
chris
c419c08421
Regenerate for Netgear FA411.
2002-05-06 22:28:18 +00:00
chris
b72d0938bb
Add in Netgear FA411.
2002-05-06 22:26:48 +00:00
eeh
ba4db702d5
Recognize `ofpci' as a PCI bus.
2002-05-06 22:20:57 +00:00
eeh
19fcb9e555
Fix printing during attach and get rid of pci_cd that's provided by the linker.
2002-05-06 22:20:07 +00:00
eeh
24954ac8ae
Add ofpci_make_tag().
2002-05-06 22:18:51 +00:00
eeh
2ec18b07b9
Provide pci_cd if needed.
2002-05-06 22:12:43 +00:00
eeh
822aeae880
Note ofpci and ofppb.
2002-05-06 22:11:50 +00:00
jdolecek
05d0665f1c
rename memory_disc_size to md_root_size, so that kernels without
...
MEMORY_DISK_ROOT_SIZE option link
also make local md_root_size size_t
XXX is the load_memory_disc_from_floppy() stuff actually still being used?
2002-05-06 21:18:25 +00:00
eeh
1805506872
Add ofpci and ofppb.
2002-05-06 19:48:05 +00:00
eeh
e60dcd0a0b
Add ofppb to match ofpci.
2002-05-06 19:40:20 +00:00
eeh
509fa464af
Add the ofpci driver.
2002-05-06 19:39:51 +00:00
eeh
5d47d866f7
Only put interrupts into the list for that interrupt level if the handler
...
is not shared. Otherwise put the shared interrupt dispatcher in the list.
2002-05-06 19:19:48 +00:00
bouyer
f23186dae7
Don't return an error for "Not Ready To Ready Transition (Medium May Have
...
Changed)" and "Power On, Reset, or Bus Device Reset Occurred" senses, if
we're trying to open the device.
2002-05-06 13:43:57 +00:00
takemura
8178b68188
Added ukphy to use USB ethernet adopters.
2002-05-06 13:42:29 +00:00
lukem
b26614a4af
s,<dev/sun/sun_boot.h>,<sys/bootblock.h>,
2002-05-06 13:35:17 +00:00
lukem
3777b83a3f
<sys/bootblock.h> is a better name than <sys/bootinfo.h>
2002-05-06 13:32:19 +00:00
lukem
e8bbb685d9
Replace <dev/sun/sun_boot.h> with <sys/bootinfo.h>, which is intended
...
to be more generic than ``bbinfo definitions for Sun-based systems''.
Other platforms can store bbinfo-style information here, and possibly
other platform-specific boot information that needs to be accessible
by foriegn platforms in tools such as /usr/sbin/installboot.
2002-05-06 05:27:53 +00:00
enami
59a79c7928
Remove wrong assertion in previous commit.
2002-05-06 03:20:54 +00:00
uwe
73843c4a73
Comment change only. Update the version of GENERIC this config is
...
synced with.
2002-05-06 02:04:14 +00:00
lukem
e27890b7d9
fix previous more correctly; MAXBLOCKNUM was replaced by SUN68K_BBINFO_MAXBLOCKS
2002-05-06 01:25:11 +00:00
ad
5d6cd5914c
Put back a missing brace.
2002-05-06 00:48:58 +00:00
enami
8876669f4c
Since npages may includes number of pages behind us, we can't use it to
...
update current offset. Instead, use the last page in the run of pages
to calculate new offset.
2002-05-06 00:42:22 +00:00
enami
e6513c283e
Stylistic change; introduce new local variable and use it instead of
...
sprinkling different expression to test if we're pagedaemon.
2002-05-06 00:18:15 +00:00
enami
cfa571e2e2
The per nfsnode n_commitlock is a sleep lock, but we can't sleep if
...
PGO_LOCKED getpages request. So, just make the lock fail and tell
the caller that there is no pages available if we can't acquire it.
The caller will call us again soon without PGO_LOCKED. Reviewed by chuq.
2002-05-06 00:07:51 +00:00
gmcgarry
5a1f9fc69c
400-series machines only have DIO framebuffers. From discussion
...
with Michael Lorenz and Bernd Sieker.
2002-05-05 22:55:49 +00:00
jdolecek
f1a07a4001
no manpages here
2002-05-05 22:09:05 +00:00
jdolecek
093d8bdbdd
Put the contents inside #ifdef _KERNEL, similarily to mac68k one,
...
so that the innards are not exposed to userland.
2002-05-05 22:07:59 +00:00
jdolecek
628a2b8665
Get ctrlsp.S via .PATH directive, rather than adding full path
...
to SRCS. This should fix build problem with ro source tree.
2002-05-05 20:38:48 +00:00
jdolecek
9eed164863
remove redundant (and wrong) main() prototype
2002-05-05 20:11:37 +00:00
tsutsui
92896ac2a1
Add a null asm statement in adb_read_date_time()
...
to avoid wrong reordering by gcc-2.95.3 with -fgcse.
XXX Should we disable -fgcse everywhere?
2002-05-05 18:36:03 +00:00
tsutsui
87ebd3218c
Backout previous. It is not timing problem, but gcc optimization bug.
2002-05-05 18:29:06 +00:00
jdolecek
8b225b8ff7
also don't make the machine symlinks for 'clean' target
...
move the CLEANFILES update out of the .if, so that the files get removed
for 'clean' or 'cleandir'
2002-05-05 17:11:41 +00:00
chs
e926e6ec99
use the correct size when zeroing an array.
2002-05-05 17:01:41 +00:00
chs
dcc6963777
for softdep vnodes, always write together the pages for any block that
...
might have a dependency , since the accounting doesn't work otherwise.
fixes PRs 15364 16336 16448.
2002-05-05 17:00:06 +00:00
jdolecek
f2f12a240b
Update to md(4) changes: memory_disk_size is now md_root_size, and
...
type is size_t
2002-05-05 16:26:30 +00:00
chs
988df8394c
look in the right flags field for PQ_INACTIVE.
...
make uvmpd_scan_inactive() return void since its return value is ignored.
2002-05-05 16:26:17 +00:00
jdolecek
db6fc29f1c
avoid unnecessary use of MAXBLOCKNUM (which is not defined here)
2002-05-05 16:02:24 +00:00
jdolecek
4dd6651e00
CLEANFILES should be set regardless of target
2002-05-05 15:57:15 +00:00
jdolecek
b9308c4120
also don't do the machine symlinks for 'cleandir' target
2002-05-05 15:42:26 +00:00
jdolecek
806100bb55
Don't make the machine symlinks for 'cleandir' target either. This
...
should fix read-only source builds.
XXX Perhaps the condition should be changed to
XXX .if make(depend) || make(all) || make(dependall)
XXX similarily to bsd.kmod.mk?
2002-05-05 15:30:05 +00:00
bouyer
58e5d90faa
Don't disable TARF_TAG when the 1010 workaround is active, otherwise
...
the target won't do tagged queuing again after e.g. a bus reset.
Just report to scsipi that we can't do tagged queuing.
2002-05-05 15:23:22 +00:00
bouyer
df3d2c7ac3
If periph->periph_callout is already active, don't freeze the periph again:
...
scispi_periph_timed_thaw() will be called only one time anyway.
2002-05-05 15:16:30 +00:00
isaki
9c4195c510
libsa/Makefile: Fix rules to create symlinks on read-only source tree.
...
{boot,libsa,mboot}/Makefile, Makefile.booters:
move that common rule to Makefile.booters
2002-05-05 11:46:29 +00:00
martin
9f680534b0
Add strtoul.
2002-05-05 11:23:24 +00:00
martin
9ccc186245
Add PCMCIA support (for nell at sbus and pci cardbus bridges)
2002-05-05 11:22:19 +00:00
bjh21
caff9d0e7e
Change the various targets to look more like their libsa counterparts.
...
I think this'll help on read-only source trees.
2002-05-05 10:02:17 +00:00
bjh21
505c2b63d1
Re-arrange "machine" magic so it's in the same place as on i386. This seems
...
to help things happen in the right order (I smell a missing dependency).
2002-05-05 10:01:26 +00:00
thorpej
27f38656ef
Add missing const.
2002-05-05 08:23:03 +00:00
thorpej
80303e7e64
Add .register directives to appease newer gas.
2002-05-05 08:15:15 +00:00
thorpej
e9bb69ab48
Add .register directives to appease newer gas.
2002-05-05 06:07:42 +00:00
thorpej
ca83c89dd4
A statement must follow a label.
2002-05-05 06:01:28 +00:00
takemura
65b0c92cb8
Added cast '(u_int16_t *)'.
...
4th arg of bus_space_read_multi_2 and bus_space_write_multi2 shuld be
u_int16_t *.
2002-05-05 03:19:26 +00:00
thorpej
9a88d576c1
hme_init(): call mii_mediachg() to make sure the current media is set.
2002-05-05 03:02:38 +00:00
scw
132a9c91d5
Make sure main() has a prototype and a return type of "int".
2002-05-04 22:05:29 +00:00
bjh21
ca9a3c5b44
<bsd.hostprog.mk> and <bsd.prog.mk> don't play nicely together. Since
...
<bsd.hostprog.mk> includes <bsd.files.mk> anyway, drop <bsd.prog.mk>.
2002-05-04 21:56:50 +00:00
kleink
85e25e7fe2
While I'm here: <sys/exec_elf.h> -> <elf.h>.
2002-05-04 20:47:48 +00:00
kleink
23a8bf785e
Provide MBR_PTYPE_PREP and MBR_FLAGS_ACTIVE locally, if not available.
2002-05-04 20:46:23 +00:00
kleink
2b298aa1d3
Add some recent prep devices.
2002-05-04 20:42:25 +00:00
pooka
ca3ea88b7a
add mcclock
2002-05-04 20:06:49 +00:00
bouyer
8e978787e8
Keep track of the current SCSI mode (SE/HVD/LVD) and don't start PPR
...
negotiation if it's not a LVD bus.
Remove write to SIOP_STEST0, it's bogus and I don't know why it's there at
the first place.
2002-05-04 18:43:22 +00:00
briggs
69403fe32b
Remove unreferenced file.
2002-05-04 18:23:35 +00:00
bouyer
3dc7dba078
It seems that the 1010-33 has a bug: it sometimes generate spurious SCSI gross
...
errors for narrow transfers after a reselect. FreeBSD sym driver has a comment
about this, but their workaround (disable SCSI gross error reports) doesn't
work for me. Instead dissallow disconnect if the target is not wide
(FreeBSD doens't allow disconnect until the target has been fully probed, which
is why they may not have noticed my problem).
2002-05-04 18:11:06 +00:00
bouyer
56aff7332d
Add 1010 only SCSI gross error disable bits.
2002-05-04 17:51:52 +00:00
bouyer
50bb653982
More debug printfs.
2002-05-04 17:51:16 +00:00
kleink
c1477b6161
Add some comments to the CPP conditionals controlling the trap macro
...
definitions, to ease navigation somewhat.
2002-05-04 17:19:25 +00:00
ad
df9895c1cb
Bump IOPL_MAX_SEGS to 16 in line with other Ethernet drivers, and in one
...
spot replace it with the capped value learned from the board.
2002-05-04 16:43:26 +00:00
martin
8ff591e85d
Add missing prototype for compat_43_netbsd32_sigsetmask.
2002-05-04 12:54:03 +00:00
bjh21
228c4dd3c6
Replace the "machine" logic with something stolen from
...
i386/stand/Makefile.booters. This might make builds with a read-only
source tree happier.
2002-05-04 12:25:00 +00:00
chris
6c4ac1de6e
Implement a proper delay routine for footbridge based systems. Note that
...
until the footbridge is attached we still have to rely on a loop. This
uses TIMER_3 running at 100Hz.
Sadly this doesn't appear to fix the tlp problems, which either means that this
delay routine is not as accurate as it should/could be or tlp is still broken.
2002-05-04 10:04:42 +00:00
takemura
7cd3e3bad5
Fixed line order. It was strange.
2002-05-04 09:37:24 +00:00
takemura
519f3fbad5
Fixed PC Card slot support.
2002-05-04 08:12:18 +00:00
manu
83c4aab4e2
bug for bug emulation of IRIX: on some device, including
...
/dev/usemaclone, fchmod returns 0 on faillure, and libc
depends on that behavior.
2002-05-04 07:45:05 +00:00
takemura
a9e34d1ccf
Added lib/libsa/files.c to avoid link error.
2002-05-04 07:40:59 +00:00
gmcgarry
2a622dde25
Pull in <bsd.own.mk> for definition of ELF2ECOFF.
2002-05-04 07:26:11 +00:00
takemura
28389b6cb5
Fixed debug messages.
2002-05-04 05:13:28 +00:00
rjs
8394f5575a
Rename cache clean area variables from sa110_* to sa1_*.
2002-05-03 21:28:11 +00:00
scw
caf7ed0a69
main()'s return type should be `int', not `void'.
2002-05-03 20:48:34 +00:00
bouyer
b3f8d22993
Back out previous. It has issues with multiple dumps to one tape using
...
/dev/nrstx, as pointed out by Matthew Jacob.
My problem is probably related to mt using /dev/nrst0 instead of /dev/enrst0
by default.
2002-05-03 20:41:17 +00:00
briggs
01cc8143e4
Bump symtab space.
2002-05-03 19:52:36 +00:00
thorpej
35fd50c116
Switch to esiop by default (again); it is fully-baked enough to use
...
in production now.
2002-05-03 19:35:53 +00:00
thorpej
da9accb616
Don't define _LP64 here.
2002-05-03 18:27:41 +00:00
thorpej
cd3aa5df12
Revert revision 1.525.
2002-05-03 17:58:28 +00:00
thorpej
8606fff875
Don't define _LP64 here.
2002-05-03 17:56:29 +00:00
thorpej
9cbd451a98
Revert revision 1.20.
2002-05-03 17:55:55 +00:00
thorpej
510cbd8934
Revert revision 1.3.
2002-05-03 17:52:17 +00:00
thorpej
9b846773b6
Revert revision 1.20.
2002-05-03 17:51:10 +00:00
thorpej
c66b5e6e38
Revert revision 1.23.
2002-05-03 17:50:19 +00:00
rjs
6812acf29c
Remove CPU_SA110 option.
2002-05-03 16:50:51 +00:00
rjs
94bb29decc
Add correct use of cpu types for SA1100 and SA1110.
2002-05-03 16:46:52 +00:00
rjs
767d5585e0
Use processor specific versions of ARM cache control functions for SA1100
...
and SA1110 instead of using SA110 ones.
Rename common StrongARM functions from sa110_* to sa1_*.
Reviewed by Jason Thorpe.
2002-05-03 16:45:21 +00:00
nathanw
f9de3e788b
Make pci_conf_print() dump the device-dependent header in userspace, too.
2002-05-03 16:08:36 +00:00
lukem
b933e511b1
nuke installboot.old / bootxx combo (the old "primary bootstrap with
...
hardcoded blocks of secondary bootstrap"); it was only used by the
distrib ustarfs stuff, and that now uses usr/sbin/installboot and ustarboot
2002-05-03 15:36:52 +00:00
kent
551d40fc9e
Regen
2002-05-03 15:20:29 +00:00
kent
f1810f8df7
Add the following:
...
Vendor
Sanwa Supply
Audio-Technica
Product
Audio-Technica ATC-HA4USB USB headphone
I/O DATA USB-SSMRW and USB-SDRW
Logitech WingMan Formula Force GP (GT-Force) and TrackMan Wheel
Microsoft TrackBall Explorer
Roland UA-3
Sanwa Supply JY-DV9USB gamepad
Sony PS2 keyboard, PS2 keyboardhub and PS2 mouse
Yamaha RP-U200
2002-05-03 15:19:15 +00:00
drochner
3c9ad6abb6
make the LEDs work with both channels active, some cleanup and
...
simplification
2002-05-03 14:12:59 +00:00
augustss
dd51b8be28
Regen.
2002-05-03 12:46:41 +00:00
augustss
a7586eb6dc
Add Sandburst.
2002-05-03 12:46:11 +00:00
rjs
37685e09df
Add sa11x0_context_switch and sa11x0_drain_readbuf.
...
Reviewed by Ben Harris and Jason Thorpe.
2002-05-03 12:43:53 +00:00
takemura
0d9fe6e48c
Enabled USB support for MC-R700.
2002-05-03 11:45:04 +00:00
takemura
9582b7c775
Enable USB support for MC-R700.
2002-05-03 11:37:48 +00:00
mycroft
3f47c5b658
Clean up some dead code.
...
Combine nway_reset() into nway_auto().
2002-05-03 08:48:12 +00:00
takemura
f8cb4c37a0
Fixed debug print.
2002-05-03 07:31:23 +00:00
mycroft
a5f6bd3b57
5) Be more liberal in blasting SIATXRX and SIASTAT in nway_auto(); in
...
particular, make sure that all the SIASTAT_ANS bits are in the right state
so we don't do something inane.
Still doesn't actually bring the link up properly, but at least it negotiates
most of the time, and does it a little faster.
2002-05-03 06:56:20 +00:00
mycroft
b3bd4ab122
More internal Nway issues:
...
1) Do not call tlp_sia_update_link() in Nway mode, and do not look at SIASTAT
in any other place that nway_status(), where we first check that it's valid.
In other places, look at IFM_ACTIVE after having call nway_status().
2) Eliminate stupid MII_MEDIACHG calls, and arrange for nway_service() to
update status on every call.
3) Nuke the synchronous case of nway_auto() from orbit.
4) Do not call nway_statchg() when using manual configuration; tlp_sia_set()
does everything we need.
2002-05-03 06:54:37 +00:00
mycroft
1489c15507
Fix multiple problems with 2114x internal Nway:
...
1) Set OPMODE_TTM in the default tsti_opmode, so that nway_status doesn't
blow up and report the wrong media type when statically configured. (This
code is a hack.)
2) Do not set IFM_ACTIVE (i.e. ignore SIASTAT_LS*) when in auto-negotiation
mode and negotiation has not completed (per 21143 manual).
3) Do not clear auto-negotiation mode; otherwise the chip will not
renegotiate on a link failure.
With these changes, 10/100 selection is more stable, and auto-negotiation
comes up with the right status and detects link, but the link does not work
unless it's hardwired. More work is needed.
2002-05-03 05:41:46 +00:00
thorpej
b8e4c037bd
De-obfuscate somewhat; define and use register bit constants, etc.
2002-05-03 04:42:08 +00:00
rafal
13c470a169
R4600 and R5000 count registers count at half-cpu-speed as well.
2002-05-03 03:50:11 +00:00
simonb
13bc33a766
Fix off-by-one error in delay(). Fix from Charles Hannum in ARM code,
...
pointed out by Rafal Boni.
2002-05-03 03:36:51 +00:00
thorpej
2a46fa85a8
Update for recent changes to the ARM pmap. From Hiroyuki Bessho,
...
PR 16617.
2002-05-03 03:32:54 +00:00
thorpej
403f667b5a
Handle platforms that don't provide stream methods.
...
From Hiroyuki Bessho, PR 16617.
2002-05-03 03:30:48 +00:00
thorpej
860fe83065
Add support for the Intel PXA210 and PXA250. From Hiroyuki Bessho, PR 16617.
2002-05-03 03:28:48 +00:00
thorpej
5573190305
Add the CPU_XSCALE_PXA2X0 option. From Hiroyuki Bessho, PR 16617.
2002-05-03 02:43:19 +00:00
rafal
4cebb807c9
Cosmetic change.
2002-05-03 01:51:38 +00:00
rafal
2eece4af5f
Update copyright dates.
2002-05-03 01:49:21 +00:00
thorpej
46a3731866
Move the CPU/clock/memory-related options to std.dreamcast, since
...
they are constant across all Dreamcast systems.
2002-05-03 01:36:02 +00:00
eeh
8da818b968
__LP64__ -> _LP64
2002-05-03 01:34:48 +00:00
eeh
80ef33c4c1
Back out previous.
2002-05-03 01:22:30 +00:00
rafal
c92f3647a4
Fix up clock interrupt accounting for the sgimips port -- make sure
...
to schedule clock interrupts at a fixed interval, rather scheduling
the next one based on the time of the arrival/servicing of the previous
clock interrupt. Also, pick up a trick from the sbmips port to convert
a division in ip22_clkread to a multiplication, since those are much
cheaper -- the details of that are described in Simon's commit (see
Message-Id: <20020306073437.1D2A8B004@cvs.netbsd.org>). Thanks to
Jason Thorpe and Dominic Sweetman's "See MIPS Run" (where I found
mention of this very subject while looking for something totally un-
related! 8-) for the clue about the source of the timekeeping problems.
For the IP32, where we have no clock-calibration code yet, use the CPU
frequency provided by ARCS instead; it beats a hard-coded value!
As an added bonus, most of the CPU-clock related stuff is now collected
together in cpu_info_store, rather than as a collection of unorganized
global variables.
2002-05-03 01:13:54 +00:00
thorpej
654768f185
Let the sosend_loan() path be selected at run-time; patch the variable
...
use_sosend_loan to enable/disable it. The SOSEND_LOAN kernel option
now causes it to default to 1.
2002-05-03 00:35:14 +00:00
eeh
b6537138f9
Use _LP64 insteadl of __alpha__ to determine if we're generating 64-bit
...
binaries.
2002-05-03 00:27:45 +00:00
eeh
89e107d917
Regen.
2002-05-03 00:22:16 +00:00
eeh
edc73e0d53
Move the copyout out of ntp_adjtime1 and into the syscall wrapper.
2002-05-03 00:22:15 +00:00
eeh
679cac37b9
Regen.
2002-05-03 00:22:15 +00:00
eeh
9bd29db83b
Use #if defined(_LP64) to determine if we're generating 64-bit binaries,
...
not #if defined(alpha).
2002-05-03 00:20:56 +00:00
thorpej
a487a4b57a
Bump the number of Tx DMA segments from 8 to 16 (the zero-copy socket
...
code sometimes sees more than 8).
2002-05-03 00:18:31 +00:00
thorpej
317ab784d9
Bump the number of Tx DMA segments from 8 to 16 (the zero-copy socket
...
code sometimes sees more than 8).
2002-05-03 00:07:02 +00:00
eeh
be9ab3e5db
Provide _LP64 definition if we are generating LP64 binaries.
2002-05-03 00:06:55 +00:00
thorpej
5173cfae8a
Bump the number of Tx DMA segments from 7 to 15 (the zero-copy socket
...
code sometimes sees more than 7).
2002-05-03 00:04:07 +00:00
rjs
9646735a82
Enable CPU_CLASS_SA1 for SA1100 and SA1110.
2002-05-02 22:57:36 +00:00
rjs
2aae453976
Make it compile when VERBOSE_ARM32 is defined.
2002-05-02 22:47:09 +00:00
mycroft
47c99ba59e
Fix off-by-one error in delay().
2002-05-02 22:01:46 +00:00
rafal
ab8f2fbc01
Add interrupt counter for Seeq interrupts; also, make sure to reset back to
...
"recieve only my frames & broadcasts" and clear the ALLMULTI flag if we have
no multicast addresses in our list.
2002-05-02 20:31:19 +00:00
rafal
1a73d72d3b
If we handle multiple events from the zs chip in one interrupt, don't count
...
that as multiple interrupts.
2002-05-02 20:26:49 +00:00
martin
d1a8d9aaa3
Sync layer 3 B-channel accounting with layer 2.
...
Sprinkle some update_controller_leds() calls to places that change this
state.
2002-05-02 18:56:55 +00:00
wiz
851d26f9a9
Make sure the machine symlink is there in the dependall step.
2002-05-02 18:54:32 +00:00
wiz
aa4109feb4
Add machine symlink to CLEANFILES.
2002-05-02 18:35:02 +00:00
wiz
8015e58333
Since loadfile_machdep.h isn't installed anymore, link the mmeye include
...
directory into ${.OBJDIR} and find the header file there.
2002-05-02 18:30:46 +00:00
rafal
e65d64e370
Since we don't have code to drive the L2 cache on R4600/R5k processors,
...
disable the L2 cache so at least things work (albeit more slowly) on
the SC versions of those chips. Tested on a R4600 Indy and a R4400
Challenge S.
2002-05-02 18:00:40 +00:00
thorpej
7a49fee765
Add some experimental page-loaning for writes on sockets. It is disabled
...
by default, and can be enabled by adding the SOSEND_LOAN option to your
kernel config. The SOSEND_COUNTERS option can be used to provide some
instrumentation.
Use of this option, combined with an application that does large enough
writes, gets us zero-copy on the TCP and UDP transmit path.
2002-05-02 17:55:48 +00:00
wiz
f7a47b635a
Remove #ifdef RC7500 defines.
2002-05-02 17:25:31 +00:00
manu
494d226a5d
Added GETSHMASK command to prctl(). This is incomplete, we do not really
...
keep track of the shmask yet. (It could go in p->p_emuldata)
2002-05-02 17:17:29 +00:00
martti
6f5d858e4b
Fix compilation problems
2002-05-02 17:13:27 +00:00
martti
e74092de02
Upgraded IPFilter to 3.4.27
2002-05-02 17:11:37 +00:00
thorpej
efb8222642
Fix error reporting in the bus_dmamap_load_mbuf() routines.
2002-05-02 16:50:39 +00:00
kleink
ba482b3950
* On the 601, obliterate all BAT entries when returning from kernel to
...
userlevel; this is necessary due to the 601, unlike other 6xx, having
no concept of separated Valid_user vs. Valid_supervisor for BATs.
* When crossing the kernel/userlevel boundary, have platform-provided
hooks set up the two fixed BAT entries, and possibly additional
segment registers to redeem the 601's BAT limitations.
Both of the above are only built if the $MACHINE provides these hooks,
sparing others the pain.
2002-05-02 16:47:49 +00:00
uch
eb330e618b
add Jornada680/690 US-keymap. patch by uwe.
2002-05-02 16:38:02 +00:00
uch
4499275017
remove obsolete header file (shbvar.h)
2002-05-02 16:34:57 +00:00
thorpej
84fbb01984
Fix a comment.
2002-05-02 16:34:47 +00:00
thorpej
c115365b50
* Deal with errata on the i82542 and i82543 chips: The size of the
...
transmit and receive descriptor rings is limited to 256 descriptors.
So, set the if_snd queue length to 256 to let the upper layers queue
lots of packets, and let the driver handle up to 32 of them at a time.
(We should probably make this change to most Ethernet drivers, since
it actually saves some resources.)
* Increase the number of Tx DMA segments from 8 to 16.
* Clean up the way we count "how many times did I get a packet with N
DMA segments".
* Add a missing htole32() in wm_tx_cksum().
* Don't set both RS and RPS in the last Tx descriptor of a packet; just
use RS.
* Add some more information to the watchdog message.
2002-05-02 16:33:27 +00:00
briggs
cf294f8f84
Ensure that b_bufsize is set to a range covering the buffer in vndstrategy().
...
This addresses kern/16570 where using the raw vnd device with a file backed by
NFS was failing due to bp->b_bufsize being 0.
2002-05-02 16:25:23 +00:00
thorpej
b094ff415f
Change the semantics of mbuf external storage "ext_free" routines
...
so that they're more useful for arbitrary types of external storage:
* Add an "mbuf *" argument to (*ext_free)(). If non-NULL, (*ext_free)()
is expected to free the mbuf itself. This allows (*ext_free)() to use
the mbuf for bookkeeping (e.g. deferring the work to a helper thread).
If the "mbuf *" argument is NULL, we are assumed to be in a context
which is safe for performing the destructor operation *now*.
* Adjust MEXTREMOVE() and MFREE() routines for above change.
* Update "ade" and "ti" drivers for new semantics.
2002-05-02 16:22:43 +00:00
thorpej
74e2ee8d5c
Define __NO_STRICT_ALIGNMENT.
2002-05-02 16:11:28 +00:00
nonaka
ed9081de2a
Added IBM Personal Power Series 830 IDE controller support.
2002-05-02 15:17:56 +00:00
nonaka
2ff13751ce
Use PLATFORM_*
2002-05-02 14:58:36 +00:00
nonaka
b9fc6ff617
rename reset_ibm_generic() -> reset_prep_generic().
2002-05-02 14:48:27 +00:00
nonaka
b5a1a9284b
Added dump residual data routine.
2002-05-02 14:44:17 +00:00
nonaka
925a022a1d
use ext_intr_ivr, too.
2002-05-02 14:38:41 +00:00
nonaka
c79479ac8d
Added dump residual data routine.
2002-05-02 14:36:42 +00:00
enami
e54e7305a2
- Fix more and more white space nits.
...
- ANSIfy the last K&R function definition in this file.
2002-05-02 13:38:57 +00:00
martin
9b693d4bca
Remove a local declaration shadowing the global "int statint", thus
...
preventing the latter to be initialized properly.
Patch from adam@lebsack.com in PR 16608.
2002-05-02 13:01:45 +00:00
ad
4137ec18e8
Fix pasto.
2002-05-02 12:44:31 +00:00
bouyer
7de8483ff0
Regen: move a few things around to save a few JUMP.
2002-05-02 12:37:50 +00:00
bouyer
41af47376f
Move a few things around, to save some JUMP.
2002-05-02 12:37:19 +00:00
bouyer
1d5fb5d90e
If we get a Unit Attention Not Ready To Ready Transition (medium may have
...
changed) sense, and the periph was not open, then ignore the error.
2002-05-02 12:36:23 +00:00
thorpej
d105d4c056
Move call to sched_unlock_idle to later in the context switch to
...
eliminate a race where another processor could grab the outgoing
process before we were done saving our state into it, with predictable
results.
Bug spotted on i386 by Frank van der Linden <fvdl@wasabisystems.com>.
2002-04-30 16:05:13 +00:00
uch
f1447dc5d6
add BUFFALO LPC3-CLT Ethernet Adapter.
2002-04-30 13:14:38 +00:00
uch
f1967f2bb2
regen.
2002-04-30 13:13:48 +00:00
uch
07c3f6d008
add BUFFALO LPC3-CLT Ethernet Adapter
2002-04-30 13:12:33 +00:00
tsutsui
8b87191ece
Add _rtt(), which is called by panic() in libsa/panic.c,
...
which is useed from ustarfs.c.
2002-04-30 13:10:56 +00:00
tsutsui
68d3a4f0ee
Add ustarfs ops.
2002-04-30 13:09:05 +00:00
tsutsui
2d9bb7f94e
Add getchar().
2002-04-30 13:08:01 +00:00
martin
ea0ec5a299
Do not mask/unmask interrupts on IPAC to clear the interrupt status.
...
It is unclear if this realy is needed and if, on which type of cards. I
haven't run accross a card that needs it yet. This may have been just
a copy & pasto from the ISAC interrupt handler carried over to IPAC.
2002-04-30 12:56:51 +00:00
ragge
96d4c35119
Don't try to probe for dz11 on 4000/90, may corrupt the flash rom (?).
...
Suggested by Hugh Graham <hugh@openbsd.org>.
2002-04-30 12:33:32 +00:00
tsutsui
27c8560138
Make sure whole DPRINTF()s are actually disabled on normal build.
...
It seems compiler does not remove text strings in while(0) statement
on its optimization.
2002-04-30 01:07:26 +00:00
nonaka
d58ba5a7b5
Regen. (Added two IBM devices.)
2002-04-29 18:21:32 +00:00
nonaka
1a570698f4
Added two IBM devices.
2002-04-29 18:18:29 +00:00
martin
75a925b327
"if (debug)" some log messages not signaling real errors but happening
...
in normal operation.
2002-04-29 16:29:29 +00:00
manu
27cb16e028
sproc: Correctly interpret NULL stack and stacklen when shared vm space is not
...
requested
2002-04-29 16:01:12 +00:00
bouyer
c85510bdd7
Factor out initialisation of t_msgout.count
...
clear scntl4 in sdtr/wdtr negotiation
2002-04-29 15:45:05 +00:00
bouyer
1a268e6df1
Add a missing esiop_script_sync(), and debug messages improvements.
2002-04-29 15:44:16 +00:00
manu
36b681f651
Added a void framework for usync_cntl(), which is another undocumented IRIX
...
system call.
2002-04-29 14:40:23 +00:00
martin
8853536066
Patches from Matthias Drochner, slightly modified by me:
...
Remove the clear-the-irq-after-enabling it dance (which had bad side
effects on some cards). Instead disble the ISAC receiver when we have
interrupts disabled. Adjust the interrupt handler to properly deal with
subtle differences of the ISAC implementation in IPAC chips.
2002-04-29 13:42:42 +00:00
tsutsui
8f9d2b8500
Add a delay() in adb_read_date_time() so that my Apus2000 can get
...
correct date in inittodr().
2002-04-29 10:15:29 +00:00
mrg
86477819ce
regenerate.
2002-04-29 09:55:11 +00:00
mrg
0ce90a9fef
build the netbsd32_compat* objects into libcompat.a, so they are available
...
to emulations not just netbsd itself. rename the compat_10 functions to
match everything else. fixes a problem reported by julian coleman.
2002-04-29 09:53:39 +00:00
uch
7eaf6db5bd
remove #if 0 #endif
2002-04-29 09:33:30 +00:00
uch
01eebf7a36
KNF.
2002-04-29 09:32:56 +00:00
rafal
e9ca49cdee
Fix nasty crashes on IP22 machines with console running at 38.4kbps (which
...
generally translates to "high interrupt load") -- the old code re-enabled
interrupts in the machine-specific hardware interrupt handler causing the
handler to be re-entered, possible multiple times. Could lead to kernel
stack overflows, and all sorts of mysterious crashes/hangs as a result.
While here, fix up the IP32 interrupt handler code to also not re-enable
interrupts.
Thanks for ideas/comments go to Chuq and Stephen Ma.
2002-04-29 02:06:14 +00:00
thorpej
7be035e7c7
Only print console messages about SIGSEGV and SIGILL if the
...
kernel was built with DEBUG.
2002-04-29 01:54:11 +00:00
enami
cb3d9867b6
Log who invoked the s[ug]id program. Tested by mozilla.
2002-04-28 22:35:19 +00:00
mjacob
85fc807bc1
suggestion from Jason: have (in non-verbose boot case) card type printed out
...
on same line as attachment line.
2002-04-28 21:32:14 +00:00
manu
adc1ff6c40
Added pread() and pwrite()
2002-04-28 20:23:21 +00:00
manu
fc1efb9ee8
Use stack rlimit for the stack size, and not the current stack size. This
...
avoids requestion 2*rlimit on second sproc call.
2002-04-28 19:42:13 +00:00
manu
c2f72d8d1c
Updated PR_GETNSHARE and added PR_TERMCHILD
2002-04-28 17:56:53 +00:00
briggs
98ec565a96
Catch up with 1.5 branch... Allow nvram device to be omitted from kernel
...
configuration. Fix noted by Izumi Tsutsui <tsutsui@ceres.dti.ne.jp> and
problme noticed by Louis Guillaume <lguillaume@berklee.edu>.
2002-04-28 17:55:47 +00:00
manu
3568060679
Implements IRIX sproc(2) and friends.
...
There may be a problem with stack size overflow in this implementation
2002-04-28 17:21:58 +00:00
uch
6d338ff407
Use "#define<tab>", white space nits.
2002-04-28 17:10:32 +00:00
msaitoh
c67dc60a0a
add missing postsig() call.
...
I don't know whether this is true fix or not.
2002-04-28 12:51:14 +00:00
msaitoh
ccc0ee640f
add missing softintr_establish() call.
2002-04-28 11:38:48 +00:00
wormey
b487c11bb6
Supply missing "flags" keyword.
2002-04-28 06:19:45 +00:00
enami
88ee31f5b9
Fix the return value of logioctl() for unhandled ioctl; return EPASSTHROUGH
...
instead of -1. Fix suggested by Andrew Brown.
2002-04-28 04:13:51 +00:00
thorpej
fe11f8da0b
Use MEXTADD() rather than open-coding it.
2002-04-28 01:00:26 +00:00
thorpej
dc12059c9e
Use M_READONLY() rathern than testing to see if ext_free is set
...
or MCLISREFERENCED().
2002-04-28 00:54:41 +00:00
thorpej
143be0a01b
Use M_READONLY() rathern than a home-grown M_SHAREDCLUSTER().
2002-04-28 00:53:34 +00:00
shin
37b76b7ea4
(forgot to commit this file...)
...
* make kloader optional.
* default value of kernel path is KLOADER_KERNEL_PATH.
* options KLOADER_KERNEL_PATH can override kernel path.
* when bootstr is passed (RB_STRING), use it as kernel path.
2002-04-27 23:24:55 +00:00
enami
9a9bf29bcf
A loop to expand file descriptor table and retry is move from fdalloc()
...
to caller. So, no longer need to loop in fdalloc().
2002-04-27 21:36:50 +00:00
enami
a58680a4e2
KNF.
2002-04-27 21:31:41 +00:00
shiba
a26fd009c9
Add IDE drive support.
...
Note:
(1) Character device major number chages to 49 from 48(in my original
code). So it is necessary to rebuild device files.
(2) Must use Booter 2.0.0a10 or later.
(3) Default mode is cpu busy wait. It is defined by flags 0x1000.
It will be more slow than before.
No flags means hardware interrupt mode. But it might be able to
get no interrupts.
Support machines:
(1) Quadra 630 series
(2) PowerBook 150
Non tested machine:
(1) PowerBook 190 series
Approved by: briggs
2002-04-27 19:29:08 +00:00
bouyer
027861788c
Regen: use a u_int32_t in script RAM to pass flags between script and driver.
2002-04-27 18:47:31 +00:00
bouyer
eea7ef4c53
Use a u_int32_t in script RAM instead of the SEM bit in ISTAT to pass flags
...
between script and driver. This allows more than one flag, and is easier to
manage (we almost can't read/write istat outside of the irq handler).
2002-04-27 18:46:49 +00:00
bouyer
b66175fa2b
Regen: implement done command ring.
2002-04-27 17:40:19 +00:00
bouyer
5387f035d3
Implement a ring for the completed commands. This avoid a (problematic only
...
if error occurs after status is collected) race condition
when using the status byte to detect completed commands (a command descriptor
could be recycled before the device disconnected), and make the
interrupt routine handling completed commands more efficient (no need to
scan target * lun * tag array any more).
2002-04-27 17:39:51 +00:00
ichiro
4e89501466
add CPU ID of IXP1200 network processor
2002-04-27 15:50:59 +00:00
shin
0201440bd2
* make kloader optional.
...
* default value of kernel path is KLOADER_KERNEL_PATH.
* options KLOADER_KERNEL_PATH can override kernel path.
* when bootstr is passed (RB_STRING), use it as kernel path.
2002-04-27 12:36:47 +00:00
chris
8480bd8390
Correct typo.
...
Remove tabs, !Edit on Risc OS shows tabs as [09] by default.
2002-04-27 10:48:13 +00:00
tsutsui
d60ade3462
Install bbinfo.h.
2002-04-27 10:20:38 +00:00
tsutsui
9f51b11c37
Use a magic structure with a magic number instead of using nlist(3)
...
for installboot(8) to patch proto bootblocks.
(This is a preparation to migrate MI installboot.)
2002-04-27 10:19:57 +00:00
enami
064142edd8
Use ETHER_HDR_LEN instead of 14.
2002-04-27 02:38:47 +00:00
thorpej
9054daca3e
* Instrument tcp_build_datapkt().
...
* Remove the code that allocates a cluster if the packet would
fit in one; it totally defeats doing references to M_EXT mbufs
in the socket buffer. This drastically reduces the number of
data copies in the tcp_output() path for applications which use
large writes. Kudos to Matt Thomas for pointing me in the right
direction.
2002-04-27 01:47:58 +00:00
perseant
76d2795556
Make exported LFSes not panic on the first file create.
2002-04-27 01:00:46 +00:00
thorpej
2ddda24f28
53c1010 chips are ultra3, not ultra2.
2002-04-26 19:44:52 +00:00
thorpej
bfd9280083
Issue a CPWAIT sequence after enabling the MMU to make sure
...
it's really enabled.
2002-04-26 18:01:21 +00:00
ad
9a25612703
Regen.
2002-04-26 14:21:28 +00:00
ad
fda5e53ba0
Oops, add more IDs used by aac_pci.c.
2002-04-26 14:20:59 +00:00
msaitoh
271b97bb3b
add SH4 Processor Version Register
2002-04-26 11:56:02 +00:00
msaitoh
f6bf722a2e
fix around PTR and PDR
2002-04-26 10:22:53 +00:00
thorpej
e2a2842013
Keep track of which DMA window was actually used to map the
...
request (not always the passed in DMA tag if we try direct-map
and then fall back to sgmap-mapped). Use the actual window
when performing dmamap_sync and dmamap_unload operations.
Fixes DMA resource leak on systems with 2G+ RAM. Thanks to
Matt Thomas for help debugging this.
2002-04-26 04:15:18 +00:00
enami
6335b88f05
We don't need to re-activate page in genfs_putpages() when GOP_WRITE returns
...
ENOMEM (temporary memory shortage) since it is already handled in
uvm_aio_aiodone() for both async/sync case. Discussed with chuq.
2002-04-26 03:57:31 +00:00
ad
77e08f053a
Add a driver for Adaptec FSA RAID controllers, as often found in Dell
...
servers. Based on the FreeBSD/OpenBSD versions.
2002-04-26 02:05:07 +00:00
kleink
07f08f3f5f
Convert to use libsa byteorder interfaces.
2002-04-25 23:30:26 +00:00
thorpej
8bd36dc909
Make a comment describe what the code actually does.
2002-04-25 23:23:23 +00:00