Commit Graph

52044 Commits

Author SHA1 Message Date
thorpej
a214c3ad3a We haven't done ECOFF for a long time; garbage-collect all the
__ELF__ #ifdefs (thus setting ELF in stone).
2001-12-18 17:12:32 +00:00
bouyer
5938b2bd62 Ops, a Ultra100>=TX2 is always in native mode ! 2001-12-18 16:40:51 +00:00
bouyer
787b934e1e The CMD0649 has 2 truly independant channel. tested by and patch from
Love <lha@stacken.kth.se>.
I suspect this is true for the 648 too; if someone with a 648 and one device
on each channel could test that all works with one_channel = 1, it would
be great !
2001-12-18 16:32:54 +00:00
christos
eebee4d7f8 PR/14795: Christos Zoulas: Fix locking problem on MP systems where
ltsleep() is calling CURSIG() which can call issignal() and issignal()
could not deal with being called from a locked context. This happens
when a process receives SIGTTIN, and issignal() calls psignal() to
post SIGCHLD to the parent.

XXX: It is really messy to have issignal() handle the job control
functionality and the whole signal interlocking protocol needs to
be re-designed. For now this fix (provided by enami) does the trick.
I've been running with this fix for weeks, and atatat has stress-tested
the kernel running ~30 make kernels...
2001-12-18 15:51:52 +00:00
soren
95c864d4f6 Previous was committed by mistake; revert. 2001-12-18 15:50:23 +00:00
yamt
7ae83a7557 use #define<TAB> style.
pointed by enami.
2001-12-18 15:21:13 +00:00
augustss
b2a9a2993d Move utility routine from uirda.c to usbdi_util.c. 2001-12-18 14:50:01 +00:00
ad
6b7cc2a465 Couple more tweaks, probably still not working. 2001-12-18 13:38:48 +00:00
ichiro
214499d236 change routine of device search.
mbe_pcmcia_lookup() is introduced
2001-12-18 11:32:47 +00:00
ichiro
62ddf45f47 regen 2001-12-18 11:23:49 +00:00
ichiro
e59b8e538e add CIS strings of FUJITSU FMV-181,182,182A
delete ITCFJ182A, because FMV-182[A] ID is same as ITCFJ182A.
2001-12-18 11:23:24 +00:00
fvdl
e946e67d2b Introduce M_NEWDIRBLK type. 2001-12-18 10:57:42 +00:00
fvdl
3d8b2ffe36 Bring over fixes from FreeBSD that weren't incorporated yet, mainly
from Kirk McKusick. They implement taking pending block/inode frees
into account for the sake of correct statfs() numbers, and adding
a new softdep type (newdirblk) to correctly handle newly allocated
directory blocks.

Minor additional changes: 1) swap the newly introduced fs_pendinginodes
and fs_pendingblock fields in ffs_sb_swap, and 2) declare lkt_held
in the debug version of the softdep lock structure volatile, as it
can be modified from interrupt context #ifdef DEBUG.
2001-12-18 10:57:21 +00:00
fvdl
e922d091ba Prevent gcc from reordering things such that instructions may fall out
of a range which is protected by spl/splx. Originally proposed by
YAMAMOTO Takashi (yamt@netbsd.org) on tech-kern. This change mirrors
the one done by Bill Sommerfeld on the i386 mp branch.
2001-12-18 10:12:28 +00:00
chs
a8b519c880 unmap loaned pages before dropping the loan. some pmaps aren't
expecting pmap_kenter_pa() to be used to replace an existing mapping,
plus it just seems like a bad idea to keep around mappings of pages
that may be freed and reused.
2001-12-18 08:49:40 +00:00
chs
0d70d731c2 use the new compatibility routines to allow mmap() to work
(in the same non-coherent fashion that it worked pre-UBC)
until someone has time to do it the right way.
2001-12-18 07:51:16 +00:00
chs
40bf5f0e12 add some compatibility routines to allow mmap() to work non-UBCified
filesystems (in the same non-coherent fashion that they worked before).
2001-12-18 07:49:36 +00:00
chs
03dd7ce1e8 when truncating a file, make sure the last block of the file is actually
allocated, since other parts of the code assume this.
2001-12-18 06:50:28 +00:00
thorpej
c285667b3c Add a memory clobber to alpha_pal_swapctx() and alpha_pal_swpipl();
the former affects the address space, and the latter can let interrupt
handlers in to clobber memory.
2001-12-18 04:18:22 +00:00
thorpej
8c8f0f0f82 Disable .loc in macros for now; the new assembler is a lot more
picky about having the file number defined.
2001-12-18 04:15:45 +00:00
itojun
1cad8e6085 reduce white space/cosmetic diffs w/kame. 2001-12-18 03:04:02 +00:00
thorpej
631447bb4a Change some #if 0 to #ifdef VERBOSE_INIT_ARM. 2001-12-18 02:52:00 +00:00
itojun
29064a3fdb remove obsolete #if 0'ed portion. 2001-12-18 01:42:04 +00:00
thorpej
36c9cfea2d Fix constraints in __asm statements (err, again). Kernels compiled
with GCC 2.95.3 work now.
2001-12-17 23:34:57 +00:00
fredette
f838750c17 Fixed a bug where we would always byteswap things,
even on a big-endian machine.
2001-12-17 21:55:13 +00:00
fredette
a366516238 Added ifmedia(4) support. 2001-12-17 18:14:17 +00:00
atatat
5ba4387372 Provide hooks to include the config file(s) in the kernel binary. 2001-12-17 15:40:43 +00:00
bjh21
f2ebadcc6f Ensure that vidc.h gets installed somewhere -- Xarm32vidc needs it to compile. 2001-12-17 15:07:37 +00:00
ichiro
57957526e0 Uoo
Make it compile.
2001-12-17 14:34:37 +00:00
ichiro
1b0449d255 support BREAK function,
keep a value of the last LCR.
2001-12-17 14:31:02 +00:00
ichiro
d5f3329501 In BREAK, the value of LCR is held. 2001-12-17 14:19:39 +00:00
gehenna
7cd101a6ca Introduce the new umass quirk table.
Discussed with augustss.
2001-12-17 12:16:14 +00:00
mhitch
9d4755dd24 Adjust for a.out/ELF conversion program. 2001-12-17 05:49:41 +00:00
mhitch
79193d3408 Changes for building two stage loader, and add support for ELF object
format.
2001-12-17 05:48:09 +00:00
mhitch
4038ed8a29 Select relocatable to bootblock conversion program based on which object
format is being used.
2001-12-17 05:46:52 +00:00
mhitch
5a3ab70cb5 Add some additional conversions for ELF assembler output. 2001-12-17 05:45:08 +00:00
mhitch
29ee3faf63 Change fixed-size buffers to variable, with an option to set the size for
the second stage loader.

Show the number of bytes remaining in the boot file image.
2001-12-17 05:43:40 +00:00
mhitch
e1d8eca622 Update amiga booter to two-stage booter.
First stage is bootxx_ffs (for ffs boot partitions) or bootxx_fd (for bootable
floppy disk).  These locate, load, and execute the second stage loader boot.amiga.
The console screen is created and passed to the second stage loader.

The second stage loader uses loadfile() to load the kernel image, which can
be either a.out or ELF format, and can also be compressed.  It will load a
kernel file from ffs file systems or the ustarfs used on floppy disks.
2001-12-17 05:40:40 +00:00
martin
61eb776b48 Remove yet another spurious (debug?) output. 2001-12-16 23:55:28 +00:00
martin
b2bd90b630 Cleanup softc more completely on "ifconfig down", but only if we are
currently in a connection reestablishement state.

The previouse (incomplete/unconditional) cleanup confused the state machine.
2001-12-16 23:53:31 +00:00
bouyer
a9f41fe33b dd support for the Promise Ultra100TX2, Promise Ultra100TX2v2 and Ultra133
IDE controllers. In part from OpenBSD via ragge, in part from FreeBSD.
2001-12-16 23:35:52 +00:00
oster
3b488c3f27 Fix an off-by-one error when autoconfig is hunting for a free RAID
device in the rare event that the one it wants is already in use.
Thanks to Wolfgang Stukenbrock for noticing the bug and filing the PR.
This fix addresses PR#14862.
2001-12-16 22:57:32 +00:00
thorpej
e53aabcecc Rename weasel.c to weasel_isa.c in preparation for supporting the
PCI version of the Weasel.
2001-12-16 22:35:31 +00:00
thorpej
cf64f893c8 Try again: weasel -> weasel_isa 2001-12-16 22:33:35 +00:00
thorpej
87e8f0c761 Oops, revert previous; it included some other changes there weren't
meant to be checked in.
2001-12-16 22:32:07 +00:00
thorpej
b45e326520 weasel -> weasel_isa 2001-12-16 22:30:26 +00:00
thorpej
cb2d65aaf9 Fix a minor typo. 2001-12-16 22:23:01 +00:00
thorpej
23dfa29697 Add the serial port on the Middle Digital, Inc. PCI Weasel. 2001-12-16 22:22:04 +00:00
thorpej
fd8e4d1653 Regen:
Add Middle Digital, Inc. vendor ID.  Add product IDs for the
Middle Digital PCI-Weasel Virtual VGA, Serial Port, and Control
registers.
2001-12-16 22:00:41 +00:00
thorpej
f7b4a308a9 Add Middle Digital, Inc. vendor ID. Add product IDs for the
Middle Digital PCI-Weasel Virtual VGA, Serial Port, and Control
registers.
2001-12-16 21:59:47 +00:00
fvdl
a3cd944f25 Also correct the attach flags to enable IO space on the ServerWorks
CNB20LE.
2001-12-16 21:33:06 +00:00
gmcgarry
bdfdbd8233 Make this compile with new toolchain. 2001-12-16 20:58:25 +00:00
reinoud
608b11c8f4 Minor bootloader update but most of all updated UnixFS disk selections so
now also other patitions are possible; The scripts `native/wd*' were all
broken !!! Guess Mark Brinicombe had some plans but forgot to subit them...
2001-12-16 20:54:29 +00:00
jdolecek
563ebe0896 our NTFS seems to read Windows 2000 NTFS just fine 2001-12-16 18:29:03 +00:00
thorpej
3bce84cf10 Consider __NO_LEADING_UNDERSCORES__ provided by the new ELF toolchain. 2001-12-16 18:11:12 +00:00
soren
3faa83dcb4 To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
2001-12-16 17:53:17 +00:00
bjh21
d7be12c439 Report a display type of WSDISPLAY_TYPE_VIDC, since we'll probably share
interfaces with the VIDC20 drivers in acorn32 eventually.
2001-12-16 15:15:44 +00:00
ichiro
0a1465a39c handle vendor and product lookup with common routine 2001-12-16 15:11:19 +00:00
soren
dafad2c49b Obsoleted by @@@'s kernel makefile work. 2001-12-16 14:02:46 +00:00
martin
729b826ecd Fix packet accounting (now netstat -i and netstat -ib show reasonable
values).

Implement a secondary connection-reestablishement mode, which is only
entered after (1) we have successfully transfered payload data over this
connection and (2) if initial retries did not reestablish a session.
In this mode we retry (infrequently) forever, until adminstrator stops
us (by "ifconfig ppppoe0 down"). XXX - need to display this mode in
pppoectl.

It is now possible to pull the DSL modems plug for say 15 minutes, plug
it back in again and just wait. The connection will be reestablished within
three minutes.
2001-12-16 11:40:52 +00:00
takemura
3c28255e30 BUGFIX: it gets bus error on Vr4122 and Vr4131 attempting to access
pull-up/pull-down registers if you turn on verbose output.
And moved softc structure definition from vrgiuvar.h to vrgiu.c, which was
needless in other parts of kernel.
2001-12-16 09:58:34 +00:00
ichiro
10c8cdf485 missing Misc Attribute of PCMCIA functions
FUJITSU CF Ether ITCFJ182A supported "Power down"
Power down supply current are 20mA
2001-12-16 06:07:50 +00:00
ichiro
ff638ce5fd support FUJITSU CF EthernetCard
ITCFJ181A

mbe0 at pcmcia1 function 0: Fujitsu J182A Compact Flash Ethernet
mbe0: Ethernet address 00:00:0e:c5:01:ea
2001-12-16 05:44:33 +00:00
ichiro
a4ad95c757 regen 2001-12-16 05:43:16 +00:00
ichiro
dc739ee7b9 add FUJITSU CF EthernetCard
ITCFJ181A
2001-12-16 05:42:46 +00:00
enami
d3efa85632 G/C no longer used saved credential for file i/o. 2001-12-16 04:51:34 +00:00
tsutsui
7d563fd40e malloc() + memset() -> malloc() with M_ZERO flag 2001-12-16 04:17:02 +00:00
tsutsui
20d126a5b4 Fix comments for ref-count of PT pages. 2001-12-16 03:53:21 +00:00
tsutsui
f7312c690f cosmetics (typo, KNF etc.) 2001-12-16 03:41:57 +00:00
gmcgarry
ac1f9fcc8c When attaching as console, unmap the device on failure. 2001-12-16 02:02:05 +00:00
martin
c8006a73d3 Remove some spurious (debug?) output. 2001-12-16 00:55:40 +00:00
bjh21
b17e1abb0f Use the MI DP83905 support for media selection on those cards that use it. 2001-12-16 00:23:59 +00:00
bjh21
7f32875295 if_media support for the DP83905 AT/LANTIC (a souped-up DP8390). 2001-12-16 00:22:43 +00:00
bjh21
2ca506c0ca if_ne_pbus needs the "mx98905" attribute. 2001-12-15 23:48:38 +00:00
fredette
d3a28a576e Rather than using nlist(3), use a magic structure with a magic
number that installboot(8) can search for.  Suggested by cgd@netbsd.org.
2001-12-15 23:09:50 +00:00
fredette
c9e7d7b7ba On the sun2, added support for loading larger kernels,
and pull objects from the libgcc in DESTDIR.
2001-12-15 23:02:34 +00:00
bjh21
7bc474a92b mod() was unused. g/c it. New code should use abs() anyway. 2001-12-15 22:41:44 +00:00
fredette
175ee0ab88 Fixed a bug where we weren't checking for required or
forbidden locators correctly, especially physical addresses.
2001-12-15 22:39:17 +00:00
fredette
9976af904a Remove some devices that aren't needed in INSTALL or RAMDISK
kernels, reenable NFS v3, and enable kernfs in INSTALL.
2001-12-15 22:22:13 +00:00
bjh21
eefdf030c9 Simplify the pixel-clock-rate-setting code, so it always works out the
parameters from first principles rather than using a static table for some
rates.  This makes it work correctly on ARM7500, for which the table was
bogus (ARM7500 has a different refclk from VIDC20).
2001-12-15 22:21:46 +00:00
fredette
74e4ac42de Be sure to mark in the prototype attach args
that a physical address is required for each
device on this bus.
2001-12-15 22:13:11 +00:00
martin
7801c694b0 Enable additional error messages for the discovery phase, clarify some
others. Change one timeout slightly - we need to make all others user
settable.
2001-12-15 20:43:31 +00:00
martin
f19c69323c Make reconnects after LCP keepalive detected an error actually work. 2001-12-15 20:40:37 +00:00
bjh21
7de3bbbbe3 Use the MX98905 bug workaround for EtherN and EtherI cards. 2001-12-15 20:30:06 +00:00
bjh21
c72d5d40dd Add code to support the bugged Macronix MX98905 chip, as used in several
podulebus Ethernet cards.  This replaces the NE2000 memory-access routines
with ones that don't try to transfer more than 255 bytes at a time.

This code should perhaps be merged into ne2000.c, but presumably most NE2000
clones won't need it.
2001-12-15 17:47:34 +00:00
soren
875bff0962 To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
2001-12-15 13:23:20 +00:00
soren
3514260fd4 Regen. 2001-12-15 13:18:10 +00:00
soren
c425f6ea72 Add Cologne Chip Designs ISDN controller. 2001-12-15 13:17:49 +00:00
soren
6a76b36417 Use regular read/writes for stream variant calls. 2001-12-15 12:39:55 +00:00
soren
e324e87ca8 Fix typo in comment. 2001-12-15 12:01:55 +00:00
soren
3022b71f80 Correct copyright header. 2001-12-15 11:45:24 +00:00
soren
df984ecc52 Use bus_size_t's for bus space read/write offsets. 2001-12-15 11:41:09 +00:00
wdk
505a7027b6 Revert back to invalidating cache during BUS_DMASYNC_POSTREAD instead of
during BUS_DMASYNC_PREREAD.

Fixes problem where SCSI bus probe didn't read meaningful identity data.

Technically there should be no difference between invalidating before or
after the DMA, but for reasons known only to the R3000 this fixes the
problem.   Some thought needs to be given to whether there is a performace
difference between these two cases.
2001-12-15 11:33:13 +00:00
wdk
c49454c890 Declare KGDB hook functions. 2001-12-15 11:17:03 +00:00
wdk
b697919ea7 Add bus_dmamap_sync for pre-read and pre-write case. This was previously
left out as it was a no-op on the R3000 processor.  However, recent changes
to the Mips cache ops highlighted we should DTRT in case the MI/MD layer
choses to invalidate the cache ahead of the DMA instead of after it.
2001-12-15 11:11:49 +00:00
chs
ae5b4093b5 when counting PTEs, look at all the segments in a region, not just the first. 2001-12-15 09:00:50 +00:00
explorer
6b9f60a2db install into /usr/include/dev/ir, since Jason made irdaattach look here. 2001-12-15 01:03:28 +00:00
fvdl
e3e7b4bd55 Set np->n_size before calling nfs_vinvalbuf, to avoid recursion
and confusion about the actual filesize. From Matt Dillon's
similar change in FreeBSD.

XXX n_size is really redundant in -current and must die. This commit
XXX is more of a placeholder for a pullup into the 1.5 branch.
2001-12-15 00:32:49 +00:00
augustss
c6df7d4358 Regen. 2001-12-15 00:31:43 +00:00
augustss
385b05e2f9 Add another Altima PHY. From Peter Seebach. 2001-12-15 00:31:03 +00:00