Commit Graph

50911 Commits

Author SHA1 Message Date
rearnsha 3444679bb4 Define BOARDTYPE in the Makefile so that the target-specific
Makefile fragment (to be added shortly) can DTRT based on the
board we are building a kernel for.
2001-10-27 16:12:33 +00:00
rearnsha dfab106e99 Add Integrator files. 2001-10-27 16:10:12 +00:00
rearnsha cd6b6b2576 Pick up arm/psl.h if not NEWINTR. 2001-10-27 16:08:16 +00:00
rearnsha 5431825a48 Add code to support machines that don't use NEWINTR. 2001-10-27 16:07:45 +00:00
rearnsha 267e45bb0f Temporary file, until such time as the integrator is made to
work with NEWINTR.
2001-10-27 16:06:57 +00:00
rearnsha a6fe9fcb48 Include arm/pci_machdep.h. 2001-10-27 16:06:15 +00:00
rearnsha 4d7eb9deff Fix a comment. EV boards don't always use a Footbridge. 2001-10-27 16:05:03 +00:00
augustss 546b6e4434 Cosmetics. 2001-10-27 13:52:57 +00:00
jdolecek 5d461f21ee Update freebsd_sigcontext to what FreeBSD currently uses, and save/restore
%fs/%gs as appropriate.

XXX Note that the new sigcontext uses the new sigset_t instead of old
int sc_mask. The new FreeBSD sigcontext doesn't contain any backward
compatibility sc_mask, so basically old FreeBSD application making
use of sigcontext are hosed. This can't be fixed in NetBSD compat code.
2001-10-27 12:26:29 +00:00
jdolecek 36b128126e change obsolete comment
both freebsd_aout and freebsd_elf were confirmed to work, install them
2001-10-27 12:11:17 +00:00
jdolecek 899455e34e freebsd LKM works too 2001-10-27 12:10:02 +00:00
jdolecek a24e94e460 Move the compat_util.c handling to lkm/compat/Makefile.inc. The users
are expected to set COMPAT_UTIL_OVERRIDE to preferred emulation name
prefix.
Use this for compat_freebsd and compat_linux LKMs.
2001-10-27 12:09:34 +00:00
jdolecek 9f2548a603 Regen:
Hook in minherit(2), fhstatfs(2), fhopen(2), fhstat(2).
Adresses kern/8622 by Paul Shupak.
2001-10-27 10:02:57 +00:00
jdolecek 084e319b3f Hook in minherit(2), fhstatfs(2), fhopen(2), fhstat(2).
Adresses kern/8622 by Paul Shupak.
2001-10-27 10:00:55 +00:00
jdolecek dab7dee0f2 Add a comment regarding the ELFOSABI_FREEBSD thing,
and reformat the condition a bit to avoid nested if
2001-10-27 09:50:22 +00:00
ichiro 8f9f77356d add entry ELSA XI-800 CF wavelan card 2001-10-27 08:16:17 +00:00
ichiro 3fc98e32f6 regen 2001-10-27 08:15:22 +00:00
ichiro bfc10c9a50 add ELSA CF wavelan card
XI-800
2001-10-27 08:05:21 +00:00
shin 4843675231 fix virtual alias problem in pmap_copy_page().
to eliminate virtual alias, source page should also be flushed.
fixes PR/13587.
2001-10-27 05:44:45 +00:00
chs a54f8441f8 in cache_lookup(), if we get a cache hit but then fail to vget() the found
vnode, we should not attempt to remove the namecache entry.  this is because
vget() can sleep (eg. if VXLOCK is set because the vnode is being reclaimed),
and so multiple threads can end up in this context at the same time.
if this happens, each thread ends up removing the cache entry, but
the code to remove the entry assumes that the entry is still valid.
so we should just leave the (now stale) entry in the cache.
if another thread finds the entry again before it is reused,
that thread will notice that the entry is stale and remove it safely.
fixes PR 14042.
2001-10-27 04:53:38 +00:00
msaitoh 32b3143333 Fix incorrect kernelmode check in INTRENTRY macro.
Broken INTRENTRY causes CPU reset when sigaltstack is used.
2001-10-27 03:46:19 +00:00
augustss 14fc12f3b4 Cosmetics. 2001-10-27 00:39:29 +00:00
augustss b609967aa7 Don't enable/disable kbds that belong to a display; they are always enabled. 2001-10-27 00:35:48 +00:00
augustss 48673c604a Having a display does not preclude the mux from being open. 2001-10-27 00:34:57 +00:00
matt c62d330ad1 Netwinder's MACHINE_ARCH is arm, not arm32. 2001-10-26 23:21:31 +00:00
augustss 49c2ea7a87 Compare against coreect value to determine if we belong to a mux. 2001-10-26 20:48:47 +00:00
augustss eadca0dfa3 Remove TODO list. 2001-10-26 20:45:05 +00:00
augustss a5d3f7530d Small rearrangement and more error checking. 2001-10-26 20:36:27 +00:00
augustss 6d55fe438e Change a debug message. 2001-10-26 20:35:55 +00:00
augustss 17ba384efc s/usbd_alloc_report_desc/usbd_read_report_desc/ 2001-10-26 17:58:21 +00:00
augustss dc901ef1f3 Compare pointer with NULL instead of using them as a condition. 2001-10-26 17:53:59 +00:00
tron 8aa847844a Don't try to probe PCI mode on kernels without PCI support. Patch suppied
by Rob Windsor in PR port-i386/14364.
2001-10-26 17:07:28 +00:00
augustss 53adfd4111 Add Via KT266 as an ATA100 controller. 2001-10-26 10:38:12 +00:00
shin e003f33738 remove " in assignment of ENDIAN.
fixes mipseb link breakage.
2001-10-26 08:25:54 +00:00
jmc 6d536163de Change defaults for kernel compiles. Default all to USETOOLS?=no and have
the etc Makefile override that by putting USETOOLS into $.MAKEOVERRIDES
This way the default for kernel compiles is still to use the installed
toolchain instead of depending on $TOOLDIR. $TOOLDIR can be used by
simply adding USETOOLS=yes to the command line as usual.

Adjust each ports template to set the default no setting and also pull in
bsd.own.mk if they weren't already to ensure they'll build correctly
with the new toolchain setup.
2001-10-26 06:45:33 +00:00
lukem 6f39841c03 - pull in ufsmount.h after inode.h, because the latter pulls in
quota.h which the former needs, and this makes the usage consistent
  with other files anyway
- expand the details in a few panic strings
2001-10-26 06:37:55 +00:00
lukem 99147a7648 remove #include <ufs/ufs/quota.h> where it was just to appease
<ufs/ufs/inode.h>, since the latter now includes the former.  leave the former
in source that obviously uses specific bits of it (for completeness.)
2001-10-26 05:56:06 +00:00
lukem d0dc904dae this needs <ufs/ufs/quota.h>, so pull it in 2001-10-26 05:46:57 +00:00
lukem a9439165d0 rename inclusion protection define from _QUOTA_ to _UFS_UFS_QUOTA_H_ 2001-10-26 05:44:29 +00:00
itojun 8008d16e68 avoid divide-by-zero when the specified bandwidth is less than 8bps.
OpenBSD PR: kernel/2150
2001-10-26 04:59:18 +00:00
enami 5bd379b1b2 Fix size of iospace; it's not 2 but 4, since two 16bit wide registers at
offset 0 and 2.
2001-10-26 04:22:25 +00:00
mycroft a79508e9d8 Regen. 2001-10-26 03:47:47 +00:00
mycroft ff3d1952b4 Disambiguate Orbit symbols. 2001-10-26 03:47:31 +00:00
mycroft 4f05bf08da Regen. 2001-10-26 03:29:02 +00:00
mycroft 0b572b9434 Add a different ID for the Kensington Orbit. 2001-10-26 03:28:03 +00:00
augustss dddb1ab51d Add some conditional compilation so we can have atapibus, but not scsibus. 2001-10-25 23:56:02 +00:00
eeh 11f7f986bd Fix bugs in previous. 2001-10-25 23:07:50 +00:00
augustss e0ec4407e6 Better debug messages. 2001-10-25 22:43:24 +00:00
eeh 5c34145ba7 _LP64 -> EXEC_ELF64 2001-10-25 22:03:38 +00:00
bouyer b495351fbf Commit changes I posted to tech-kern on Oct 14, which makes the ethernet part
of my Xircom RealPort Ethernet 10/100 + Modem (REM56G) work.
The modem part is still not usable (this would need some PCMCIA magic that
I don't know how to do; see my message to tech-kern on Oct 07).
Change to pcmcia_cis.c from OpenBSD.
I checked that this doesn't break a 3com 3C562D (ethernet+modem) which I
also have.
2001-10-25 20:20:24 +00:00
augustss 59121d58f5 Change back to have a wseventvar in the softc for event sources. This
way the effect of FIOASYNC survives close()/open().  Later versions
of XFree86 relies on this bug/feature.
Also add some more debug stuff.
2001-10-25 14:46:41 +00:00
augustss 437bf56d24 Fix pasto. From Andreas Johansson <ajo@rockstorm.se>. 2001-10-25 13:45:16 +00:00
augustss 8076bdb790 Regen. 2001-10-25 13:43:56 +00:00
augustss c6f7926716 Add Logitech Cordless Desktop Optical. 2001-10-25 13:43:30 +00:00
mrg 5f1e48b312 lets play catch up with thorpej.rototiller 2001-10-25 13:28:21 +00:00
shin a9df6b6421 make this compile without WSDISPLAY_COMPAT_RAWKBD. 2001-10-25 13:19:41 +00:00
kleink 3a3c243c62 Tidy up a little, to be like other ports. 2001-10-25 12:26:18 +00:00
augustss d148d21082 Regen. 2001-10-25 11:57:44 +00:00
augustss bee35a9613 Add some VIA KT266 numbers. 2001-10-25 11:57:15 +00:00
augustss 12cafbf382 Regen. 2001-10-25 11:17:46 +00:00
augustss 78bed7c076 Remove Inc, Ltd, AB, Gmbh, etc. to be consistent (and save a few bytes). 2001-10-25 11:17:18 +00:00
augustss bcab1556e8 Regen. 2001-10-25 11:04:36 +00:00
augustss 782a2cd1cc Add Olympos C-700. (From FreeBSD) 2001-10-25 11:04:18 +00:00
haya 3aee8d644f Prevent hang-up when a CardBus card is removed during the card is working. 2001-10-25 10:02:12 +00:00
augustss ea0061b951 Change reset sequence to get status change bits set right on startup. 2001-10-25 02:08:13 +00:00
augustss 61406d282b Force BIOS out of the game by setting the LEGSUP register to its default
value.
2001-10-25 01:46:26 +00:00
matt 920cfb5205 Add "Red Black +" balanced binary tree routines to libkern. These provide
O(log(N)) insertation, deletion, and lookup times.  However, unlike most
red-black implemenations, this one does no additional memory allocations.
2001-10-24 22:40:56 +00:00
augustss 8c7d06c6f9 Add commented out match level feature. 2001-10-24 22:31:04 +00:00
augustss 3c51e46294 Regen. 2001-10-24 21:49:07 +00:00
augustss 5bd2b33be2 Add a PS/2 adapter. 2001-10-24 21:48:38 +00:00
augustss 78ed7b801d If there is no pckbc, but there is a ukbd, try using the latter as console. 2001-10-24 21:05:17 +00:00
augustss 1f93717101 Some more paranoia tests when entering the interrupt routine. 2001-10-24 21:04:04 +00:00
augustss 80d988187f If we are the console and we have DDB then events must not be delivered
from the interrupt routine since this will enter the USB interrupt
processing recursively during polling.
Now ukbd can be used as console keyboard for DDB!
2001-10-24 21:02:18 +00:00
thorpej 678788904a Memory map and system registers for the Firepower ES, MX, LX, and TX
systems.
2001-10-24 20:36:44 +00:00
augustss adca9c589f More debug. 2001-10-24 20:20:03 +00:00
leo 56252d5449 Small changes to the boot system:
- Install boot.atari in both / and /usr/mdec. It looks good to have a
   spare copy soemwhere...
 - Add '/boot.ata' as a last resort bootname.

All per discussion with Simon Burge, Matthew Green and Soren S. Jorvang.
2001-10-24 20:12:57 +00:00
thorpej 163bd42722 Per request of mrg@netbsd.org, use MACHINE_ARCH of "sparc" for 32-bit
sparc64 kernels, thus defaulting to using the 32-bit "sparc" target
toolchain.
2001-10-24 19:12:18 +00:00
thorpej 36703ab375 Clean up the 32-bit vs. 64-bit kernel configuration stuff:
- Put all options necessary to build a 64-bit kernel into std.sparc64-64,
  which can be included after std.sparc64.
- Change the logic used to enable 64-bit kernels.  The kernel Makefile now
  uses an LP64 make variable, and explicitly sets compiler flags and linker
  scripts to generate 32-bit or 64-bit kernels.
2001-10-24 18:49:38 +00:00
soren 3715322bb3 Determine PCI config mode before the ACPI probe; some methods need
to access PCI configuration space early.
2001-10-24 15:53:04 +00:00
augustss 9e06709975 Clear wskbd_console_device when console keyboard is detached. 2001-10-24 15:44:50 +00:00
thorpej d213444bc5 Need to install intr.h. 2001-10-24 15:33:17 +00:00
augustss 5c2ee5ebed Make sure interrupt pipe is closed when detaching console keyboard. 2001-10-24 15:31:06 +00:00
augustss 97d4315865 Better debug message. 2001-10-24 15:30:17 +00:00
augustss 2f1f0a1702 Major rototilling of the wsmux code. No user visible changes (except that
many bugs have been fixed).
Changes:
The wskbd, wsmouse, and wsmux are now "sub-classes" of wsevsrc, which is
a source of ws events.  This make the structure of those drivers a little
more uniform.
Many bug fixes involving adding and removing devices from muxes.
When a kernel is configured without wsmux there will now be none (unlike
before where you got a console mux anyway).
The kernel now compiles with all combinations of ws devices present.
2001-10-24 14:07:31 +00:00
bjh21 a9c8e8ab15 We set MACHINE_ARCH to "arm" on arm26 now. 2001-10-24 13:53:24 +00:00
itojun eecba85f88 no tcp_fasttimo any more. PR 14333 2001-10-24 09:37:00 +00:00
itojun 73f4e5001f more whitespace sync with kame 2001-10-24 06:36:37 +00:00
billc 8b2a9cd42c NEWPMAP fixes that I missed committing. 2001-10-24 06:26:10 +00:00
itojun c7e6405a34 remove unused codepath (unifdef -UUDP6) 2001-10-24 06:04:08 +00:00
itojun 7bbe09e1d4 it may fix PR14124. 2001-10-24 05:56:49 +00:00
shin 2239512d8c make this compile with -DDEBUG_FIND_PCIC. 2001-10-24 04:09:23 +00:00
augustss 1c11481abf More null pointer checks in dump routine. 2001-10-24 00:42:05 +00:00
thorpej 9b17b651ee Regen; Add product IDs for the Powerhouse Systems PowerPro and PowerTop
PowerPC system controllers.
2001-10-24 00:19:21 +00:00
thorpej 7bbddedbbd Add product IDs for the Powerhouse Systems PowerPro and PowerTop
PowerPC system controllers.
2001-10-24 00:18:49 +00:00
thorpej d9756b0f59 Regen; more Intel Gig-E fixup, and add Intel i82544 IDs. 2001-10-24 00:14:47 +00:00
thorpej 1d548d2778 More Intel Gig-E ID fixups, and add Intel i82544 Gig-E IDs. 2001-10-24 00:13:41 +00:00
mjacob d0c3b71a47 tra-la, another QLogic f/w funny- this time with the 2300.
If we get a completion status of RQCS_QUEUE_FULL, it means
that the internal queues are full. Other QLogic boards set
the QFULL SCSI status. But *nooooooooooo*, not the 2300.
2001-10-23 23:21:00 +00:00
thorpej d1550cb938 For systems (like the briQ) that don't have a "/cpus", look for
CPUs in the OFW top-level.
2001-10-23 22:52:14 +00:00
thorpej 9fd244e195 No need to explictly set MACHINE any more; config(8) does it. 2001-10-23 21:24:18 +00:00
reinoud d3340e7db2 Add a pretty lame LOWMEM configuration ... it has the basic interfaces in it
but lacks the podulebus completely; this might be a good starting point for
small memory machines.

Most stuff is disabled but commenting it for easy adding.
2001-10-23 21:21:59 +00:00
pooka bbee62e254 declare variable used only with BLINK inside #ifdef BLINK to avoid
unused variable warning
2001-10-23 20:59:42 +00:00
thorpej 90a2bc2cf7 For MIPS kernel Makefiles, don't set ENDIAN in std.${MACHINE}. Instead,
explicitly set MACHINE_ARCH to the appropriate thing.  Makefile.mips will
then set all of the internal variables it needs to accordingly.
2001-10-23 20:40:00 +00:00
thorpej 693eff0e2e No need to set MACHINE now that config(8) sets it. 2001-10-23 19:55:56 +00:00
thorpej 9e91d48638 This file only set MACHINE, which is now set by config(8); delete it. 2001-10-23 19:52:49 +00:00
thorpej 2a073cf8d0 Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
2001-10-23 19:42:16 +00:00
thorpej ba217c4196 Set MACHINE_ARCH explicitly in Makefiles for which it is constant.
Also, since config(8) now explcitly sets MACHINE, there is no need
to do it here in the Makefile.
2001-10-23 19:26:41 +00:00
thorpej 2c5ebcddfb Use MACHINE, not TARGET_MACHINE. 2001-10-23 18:57:32 +00:00
augustss d9f173b146 Make it compile with debug on. 2001-10-23 17:58:15 +00:00
thorpej a2bf3bc31b Pull in <bsd.own.mk> to get the correct toolchain definitions for
the USE_NEW_TOOLCHAIN case.
2001-10-23 17:32:35 +00:00
christos 8101253d41 KNF. 2001-10-23 16:43:33 +00:00
christos 9c0bd73ac9 PR/14332: Shingo WATANABE: Regognize new ELFOSABI_FREEBSD branded executables. 2001-10-23 16:41:36 +00:00
mjacob 8dd789d511 Comment out some redundant initializations to zero. 2001-10-23 16:24:33 +00:00
rearnsha 4ea0954941 Make sure the compile directory doesn't get purged by cvs updates 2001-10-23 13:35:10 +00:00
itohy 361bb97359 Support panpot on OPL3. Now this device is a stereo instrument. 2001-10-23 13:09:43 +00:00
itohy 4ad7b15d39 Add more MIDI control change numbers. 2001-10-23 13:07:09 +00:00
thorpej 52b15119b0 Add the correct model string for the Total Impact briQ. 2001-10-23 04:19:34 +00:00
thorpej 42e835d381 Clean up the NetBSD/ofppc boot loader:
- Garbage collect some cruft that doesn't apply to the ofppc port.
- Make our OFW-friendly alloc.c more like the libsa alloc.c
- Generally reduce some differences where we can between this
  boot loader and the NetBSD/macppc boot loader.
- Use libsa's loadfile().
- Fix DDB symbol loading -- Add a magic number after the args string
  so the kernel knows the symbols are there, provide both ssym and
  esym, and make sure all these values are aligned to a 4-byte boundary.
- Add support for MS-DOS file systems.
2001-10-23 03:31:25 +00:00
thorpej 506d233170 Add machine-dependent defns for libsa's loadfile(). 2001-10-23 03:02:03 +00:00
thorpej dc1a120d26 ofwr_init(): don't clobber r7 -- early startup code needs it to find
DDB symbols.
2001-10-23 02:59:09 +00:00
thorpej 718fdfe48f Add support for fetching DDB symbols from the boot loader. This requires
changes to the boot loader (forthcoming).
2001-10-23 01:36:32 +00:00
thorpej 624e16931f Begin the task of splitting up the ofppc port into common code
and platform-specific code, similar to how the Alpha port is
split up.
2001-10-22 23:01:17 +00:00
kleink 38c46d1f11 Sprinkle some __restrict into <sys/socket.h>. 2001-10-22 20:59:02 +00:00
jdolecek 7a27cbb4a3 De-__P()ify. Suggested by Lennart Augustsson. 2001-10-22 20:31:26 +00:00
kleink d4c0d0f2a2 Add a sockatmark(3), the 1003.1g wrapper around SIOCATMARK. 2001-10-22 17:53:43 +00:00
mrg 3059c66d8f fix a typo in the previous 2001-10-22 16:47:43 +00:00
bouyer 6721892796 Forgot to add __attribute__((__packed__)) to one hardware structure. 2001-10-22 16:45:28 +00:00
mrg c4f3ffd5e7 increase the value of _HME_NDESC from 32 to 128. it reduces the noise the
driver makes due to various bad status conditions.
2001-10-22 16:45:20 +00:00
thorpej 6817ae639c Fetch the platform name earlier, so we can determine what kind of
system we're running on earlier.
2001-10-22 16:44:03 +00:00
mrg 1578242c1a use _KERNEL_OPT so this can be built as an LKM. 2001-10-22 16:43:55 +00:00
mrg b8aa5aa437 sync with reality:
options BLINK
	options AUDIO_DEBUG
	audiocs at ebus
	audio at audiocs
2001-10-22 16:42:44 +00:00
mrg 35a5f0448e add a note about keeping this file in sync with the sparc64 conf.c. also
add some unused code for the pci bus device.  (hi uwe!)
2001-10-22 16:40:47 +00:00
bouyer da77194a02 We can't have XS_CTL_DATA_OUT and XS_CTL_DATA_IN at the same time.
Pointed out by Bernd Ernesti.
2001-10-22 16:16:00 +00:00
mrg 195bc7aef4 clean up for fd changes. 2001-10-22 15:19:55 +00:00
thorpej 63a4b630bb CPUs attach to mainbus now. 2001-10-22 14:47:44 +00:00
thorpej 783ea940e5 Various things that make OFW-driver kernels work on my Firepower LX MP
again:
- Special-case the attachment of CPUs, and logically attach them to
  "mainbus", attaching them before any other devices.  Otherwise,
  CPUs would be found very late in the game on my Firepower.
- Sanity check the timebase-frequency property, printing a warning if
  it's not the same on each CPU.
- Pass the correct CPU ID to cpu_attach_subr().
- Fetch the platform name from the OFW root node.  We can key off this
  later when we implement support for native drivers in the ofppc port.
- Use a table of "special" toplevel OFW nodes ... we skip these nodes
  during the device configuration phase.  This generally includes the
  "options", "packages", etc. nodes.  Inspired by sparc & sparc64 ports.
2001-10-22 14:46:08 +00:00
thorpej 2bc9b4e2be Remove hack to skip OFW nodes which don't correspond to devices. These
are generally only at the toplevel of the OFW tree, and are best handled
by the code that configures the toplevel (which often needs special
handling anyway).
2001-10-22 14:36:55 +00:00
takemura addd2cfb92 Remove junk line, which I inserted in last commit. 2001-10-22 13:44:05 +00:00
mrg da8425b96f clean up ebus:
- kill dead dma code
	- remove icky self->dv_parent casts

audiocs @ ebus doesn't crash anymore, but it doesn't appear to work
yet either...
2001-10-22 08:09:46 +00:00
mrg 8243634795 this has moved to dev/ebus 2001-10-22 08:04:56 +00:00
mrg bf444e34ac kill a dead driver. the floppy driver will be shared with sparc anyway... 2001-10-22 08:03:01 +00:00
mrg 997fe9c917 use <dev/ebus/ebusreg.h> 2001-10-22 08:00:12 +00:00
mrg abcb6203a8 implement `options BLINK' for sparc64 for ebus & sbus. tested on a U2
(sbus) and a U5 (ebus).
2001-10-22 07:31:41 +00:00
mrg f9358dee8b use <dev/ebus/ebusreg.h> 2001-10-22 07:06:20 +00:00
thorpej 458af13ace If we get a secondary CPU on a non-MP kernel, bail out early
and print a message about why.  This prevents the primary CPU's
cpu_info from being scribbled over w/ secondary CPU info.
2001-10-22 01:45:51 +00:00
mjl 51a4b6098f Add ST15150N to quirk table, as per PR/13817. 2001-10-21 23:25:04 +00:00
mjl bea8701ec4 Add Corega PCC-TD, as per PR/14161 2001-10-21 23:18:50 +00:00
mjl bd2ba73f5b Regen 2001-10-21 23:17:37 +00:00
mjl cb19665fbc Add Corega PCC-TD, as per PR/14161 2001-10-21 23:16:48 +00:00
jmc 97deb18c10 Wrap ifdef's cleaner so wsmouse_[add|rem]_mux only get pulled in if NWSMUX > 0. 2001-10-21 23:04:57 +00:00
thorpej 102249430c Use <bsd.own.mk> so that the right thing happens when building a
kernel w/ USE_NEW_TOOLCHAIN.
2001-10-21 21:13:11 +00:00
thorpej d1e191d848 Reserve one descriptor at the end of the ring as a termination point,
to prevent the producer index from getting confused.
2001-10-21 20:45:15 +00:00
thorpej 74c571e033 Normalize the sparc64 kernel Makefile. 2001-10-21 19:46:16 +00:00
simonb 52680e72d6 Remove two cases of:
#endif		<- from an #ifdef _KERNEL

	#ifdef _KERNEL
2001-10-21 19:24:43 +00:00
thorpej 5f6fd54ec7 Add a config flag (0x02) that can force DMA to be *disabled* on
chipsets for which it would otherwise be enabled by default.
2001-10-21 18:55:14 +00:00
thorpej 132fdb30e6 Make the various timing, etc. tables const, and add the __unused__
attribute to them, just in case something other than the pciide driver
proper needs to pull in the header.
2001-10-21 18:49:19 +00:00
martin 5eb2c7d064 Install i4b_rbch_ioctl.h, it is needed i.e. for userland PPP.
Requested by Brian Somers.
2001-10-21 17:02:06 +00:00
simonb d7357337e0 Fix typo, noted by Artem Belevich. 2001-10-21 15:09:36 +00:00
bjh21 9eca213216 Since arm26 uses ELF, set MACHINE_ARCH to "arm". 2001-10-21 14:19:34 +00:00
takemura b9f6f9619d - Added auto detection for BCU device no.
- Added clock mask unit register definition.
 - Reset child devices and set clock mask.
2001-10-21 09:38:10 +00:00
isaki 3c63a64cab Change 3 glyphs according to SRAM flags (0xed0059),
when ITELOADFONT ioctl is issued.
2001-10-21 03:46:30 +00:00
chs 6bc926aa9e in pool_drain(), call pool_reclaim() while we still have interrupts blocked
since the pool in question might be one used in interrupt context.
2001-10-21 00:06:05 +00:00
chs dcd9e4a1ee add some missing spinlocks. 2001-10-21 00:04:42 +00:00
bjh21 fccfe9fb92 Don't call Debugger() unless the kernel has DDB. 2001-10-20 22:15:02 +00:00
mjacob 033f1aaf8d Update to latest 12160 initiator firmware. 2001-10-20 21:52:24 +00:00
mjacob 5522109c39 Protect against deranged fabric nameservers that spit out 10000 identical
port numbers.
2001-10-20 18:37:54 +00:00
thorpej 8f0b837cd4 gem_init(): Don't call gem_mii_statchg() directly. Instead, call
gem_mediachange().  This will cause gem_mii_statchg() to be called
by the MII layer with the correct MII media state, so that speed
duplex parameters will be set properly.
2001-10-20 18:25:52 +00:00
mjl a9ec452d57 Add Corega PCCB-11, as per PR/14298 2001-10-20 15:31:25 +00:00
mjl 8e7e3408b5 Regen. 2001-10-20 15:29:04 +00:00
mjl 259caf9257 Add Corega PCCB-11, as per PR/14298 2001-10-20 15:28:45 +00:00
simonb e1f5fbd944 Fix a tyop in a comment. 2001-10-20 13:47:09 +00:00
billc 5c078bc6e7 Total Impact BRIQ kernel config 2001-10-20 08:32:24 +00:00
billc b3a54fcf2e just set MACHINE and include powerpc/param.h - non-NEWPMAP ofppc kernels boot now. 2001-10-20 08:27:12 +00:00
billc 60a9daa74c Get check for CPU type right. 2001-10-20 08:23:49 +00:00
billc c67bf6b4de Fix cpu check to actually work. 2001-10-20 08:22:58 +00:00
billc c22d12260d update for NEWPMAP 2001-10-20 08:22:29 +00:00
billc 0b357f290a FCS check and padding for minimum size Ethernet packet 2001-10-20 08:19:47 +00:00
jmc 51e607ae23 Add nb_progname so this will compile on older NetBSD systems that will be
upgrading to -current via the new toolchain build process eventually.
2001-10-20 06:14:30 +00:00
simonb d9e75e198e Fix typo in mmap hander. 2001-10-20 05:56:35 +00:00
matt bd61b6ad50 Make tcp_outflags & tcpstates const. 2001-10-20 03:19:41 +00:00
matt fa2b333dc7 Make the two MTU tables const and change their type to u_int (one was int
and one was u_long!).
2001-10-20 03:18:17 +00:00
fvdl cbc00e701a Until early last year, the i386 port had 256M of kvm, and the max.
amount of kvm used for buffers was set at 70%, some 188M. Then
the total amount of kvm became 1G, and the amount for buffers
thus became some 716M. This is really too much, and some
device drivers want to map quite a bit of kvm these days.

So, cap it at 384M, which gives each buffer a little over 8k (the
default FFS blocksize) physical in an 1G physram configuration.
2001-10-20 00:17:47 +00:00
uch ce86c1446b increase maxusers (8->16) 2001-10-19 17:17:19 +00:00
scw f6e6d32172 Use the entry-point returned from the first call to loadfile()
instead of the one from the second call (which has a non-zero
offset included in it).

Fixes port-mvme68k/14292 from Ken Seefried.
2001-10-19 17:09:16 +00:00
nathanw 48bdb0d067 Match printers that report their interface as IEEE 1284 in addition to
bidirectional.
2001-10-19 15:30:25 +00:00
shin 003fcedca1 cosmetic change. 2001-10-19 05:47:40 +00:00
itojun 07b78861d0 sync with kame:
fixed the value of the prefixlen in the sadb_address structure.
when pfkey message relative to SA is sent, the prefixlen was incorrect.
2001-10-19 01:57:20 +00:00
bjh21 3506931511 Make sure that PT_STEP is defined for userland, even though we don't
support it in the kernel yet.  If we don't do this, GDB arbitrarily
assumes we wanted it to be 9, which is silly.

In the kernel, leave it undefined so that sys_process.c doesn't
generate code for it.
2001-10-19 00:18:20 +00:00
phil ff3d710817 Sharks run coda just fine. Get it here so it is easy to recompile
a kernel with coda support.
2001-10-19 00:12:24 +00:00
eeh 3def251af0 Disable __PCI_DEV_FUNCORDER since it's now badly borken. 2001-10-18 23:47:16 +00:00
bjh21 4cc9dbf11c When dumping debugging information on a fault, don't disassemble at the PC
if that was where the fault happened.  This should make it possible to
continue after prefetch aborts.
2001-10-18 22:53:39 +00:00
eeh 6272e8b2ef Implement bus_space_mmap(). 2001-10-18 22:25:31 +00:00
matt 1ebf8505b2 Add ETHERTYPEs for MPLS (Unicast & Multicast). 2001-10-18 21:29:19 +00:00
bjh21 d3d2d8bdd7 Recognize GDB's default breakpoint instruction (as of GDB 5.0), in addition to
the instruction we used with GDB 4.x.  The new instruction has the advantage
of fitting the pattern that ARM recommend using for instructions that need to
stay undefined.
2001-10-18 21:26:21 +00:00
thorpej e45efd967f Deprecate the "m_act" alias of "m_nextpkt" (m_act is a historical
name), and just use m_nextpkt everywhere.
2001-10-18 20:17:24 +00:00
jdolecek d9e921bd84 Fix obviously wrong printf() format in pci_intr_establish() failure case.
Pointed out by Chuck Silvers.
XXX This has compiled without a warning for me - what's up?

Add sc->sc_dev.dv_xname in another failure printf()
2001-10-18 19:15:38 +00:00
jdolecek a8fcba2901 Fix compilation on Alpha with ARP_DEBUG.
Fixes kern/6440 by R. C. Dowdeswell
2001-10-18 19:00:38 +00:00
rearnsha 81fc80144a Add a comment describing the logic implemented by pmap_vac_me_harder. 2001-10-18 18:15:56 +00:00
jdolecek d520fe96ee add emuxki 2001-10-18 17:45:15 +00:00
uch 6d5ecdc1dd add playstation2 port 2001-10-18 17:38:36 +00:00
rearnsha b5a8c6922a On processors that support both write-through and write-back cacheing
(eg ARM920), the mode in which the processor operates is governed by
the use of both the PT_C and PT_B bits:

	PT_C=1,PT_B=1 -> Write-back
	PT_C=1,PT_B=0 -> Write-through

To support this define pte_cache_mode (initialized to PT_C|PT_B) and
use that when enabling cacheing for a page.
2001-10-18 17:06:14 +00:00
rearnsha 7de86d9ccd With a diagnostic kernel, printing out a message each time we fail
to allocate a L1 pt is often enough to bring the system to its knees:
so make the messages PDEBUG(0,...).

However, even with this step having more than a small number of
processes searching for a L1 pt can still be enough to bring the system
down, since they all run at high priority and sleep for very little time,
thus blocking out user code from completing.  So implement an exponential
backoff when waiting for a page table, so that we don't hog the CPU when
memory is scarce.

Tested by running a make of the C compiler with "gnumake -j30" (and plenty
of swap space).
2001-10-18 16:50:30 +00:00
rearnsha d447073383 Fix pmap_vac_me_harder to take into account pages that are mapped
into both kernel and user space.

Fixes port-arm32/13998.
2001-10-18 16:32:40 +00:00
uch a6952fe242 add device name used by playstation2 (gsfb, sbus, smap, spd) 2001-10-18 16:18:45 +00:00
wiz 7c90b959da Fix check in device open.
Patch by KUROSAWA Takahiro in kern/14289.
2001-10-18 16:08:05 +00:00
uch 448082e1e0 remove conf.h from install header list. 2001-10-18 15:41:15 +00:00
rearnsha bc8cd3375d Support for ARM9. 2001-10-18 15:19:58 +00:00
thorpej 5d51f988c6 Yet more cruft removal. 2001-10-18 15:19:21 +00:00
thorpej 62577b1c53 Remove more cruft left over from copying bits of other drivers. 2001-10-18 15:09:15 +00:00
rearnsha c14090e8fa Add support calls for ARM9.
Where ARM9, StrongARM and XScale share the same function, rename it
as armv4_XXX.
2001-10-18 14:10:07 +00:00
rearnsha 0dbc5bbfab Add CPU_ARM9 to opt_cputypes.h 2001-10-18 14:03:43 +00:00
uwe bfa2f82c18 Minor cleanup. Garbage-collect unused declaration of comsoft() now
that sparc has generic soft interrupts.  In softnet() - return
immediately if netisr is zero.
2001-10-18 12:32:25 +00:00
rearnsha 520fd8e5d8 Use 'p15' consistently in all mcr and mrc instructions.
Fix warnings in stm/ldm instructions of get_pc_str_offset.
2001-10-18 10:30:34 +00:00
rearnsha 2c48187673 Don't unmap page 0 when preparing to swap out a process. If the pmap
is shared with another process (as can happen if vfork is being used),
then that other process will end up not having a page 0, which is bad
news indeed, since then there is no way back into the kernel.

Found this using a multi-ice box, so they are useful after all!

This seems to fix pr port-arm32/11921 and (possibly) kern/9859.
2001-10-18 09:26:08 +00:00
itojun 68fbfa26e8 gather stats on raw ip6 socket. sync with kame 2001-10-18 09:12:13 +00:00
itojun 51a9c75998 simplify per-if stats. 2001-10-18 09:09:25 +00:00
itojun ae5499819c reduce diffs with kame (mostly cosmetic).
move IPV6_CHECKSUM processing to sys/netinet6/raw_ip6.c.
constify a couple of places.
2001-10-18 07:44:33 +00:00
thorpej dcd30fd216 Add a missing return statement in an error case, and g/c some
cruft that's not relevant in the PCI world.
2001-10-18 06:29:55 +00:00
thorpej c616253896 Remove some more stuff left over from copying bits of the HME driver. 2001-10-18 06:28:17 +00:00
thorpej d44a5ae87c Remove some unneeded stuff from the gem_pci_softc. 2001-10-18 06:14:33 +00:00
thorpej c559c94a45 Add goo to fetch the MAC address from OpenFirmware on the macppc
port.  Copied from the macppc "gmac" driver, but otherwise untested.
2001-10-18 03:55:07 +00:00
thorpej 285d37822b - The GEM registers are always memory type registers. Don't use a
broken hueristic to determine memory vs. i/o (one should never make
  an assumption that the bus_space_tag_t is a pointer, as this code
  did).
- Fix the "can't map registers" error message.
- Garbage-collect some code that is not relevant to the GEM (which
  was already #if 0'd out).
- Cluster all the SPARC-specific code into one place (will be
  replaced with Properties once that is fleshed out).
2001-10-18 03:48:48 +00:00
thorpej bfda843574 Manipulate the Tx desc pointer as 2 32-bit values, just as
we do with the Rx desc pointer, both for consistency, and
for platforms which don't have bus_space_*_8().
2001-10-18 03:33:33 +00:00
mhitch b216e63487 Use boot arguments to try to determine the boot device. The OSLoadPartition
string, if present, will override the second argument (which may be the
path/kernel being loaded).  This will provide a way to netboot the kernel
and allow the root device be set to a disk partition.
2001-10-18 02:36:33 +00:00
mhitch 6d6ab09e29 Initial boot device determination code: makebootdev() to parse boot command
line parameters, and device_register() to try to match the boot device.  Works
on a Challenge S (and similar machines), but will need more work for other
SCSI adapters.
2001-10-18 02:25:33 +00:00
mhitch 7c6b1c8da0 We have device_register(). 2001-10-18 02:19:54 +00:00
matt cc06635a2c Use correct SRR1 bit in EXC_PGM|EXC_USER fault to catch a trap. 2001-10-18 01:33:48 +00:00
matt f2ceecb472 In pmap_syncicache, preserve the page offset contained in the supplied
physical address.
2001-10-18 01:03:44 +00:00
reinoud 492b11d134 Added the documentation section of arch/arm32 to not let it dissapear.
Can't say for sure ig the interrupts/majors+minors files are still valid
though.
2001-10-18 00:05:00 +00:00
reinoud e8a24b6100 Forgot these ones... and make notice of the move. 2001-10-17 23:58:34 +00:00
reinoud 9bb6db7a85 Major step in creation of arch/acorn32 : remove acorn RiscPC compatibles
and RC7500 from the old arch/arm32 that is gonna be deleted in its whole
soon.

IMPORTANT for RC7500 ... this also removes all RC7500 support .... its a
big pitty but was virtually unsupported allready for a few years and noone
had one... if someone wants to make RC7500 or decendants support undo this
removal and start from here.
2001-10-17 23:53:29 +00:00
thorpej 9b2f51421c Use a pool cache for namei buffers -- it's faster to allocate from
a pool cache than a pool.
2001-10-17 23:33:29 +00:00
reinoud be3168ab71 Sad point .... remove RC7500 support from the iomd directory in the
arch/arm/iomd/* .... the RC7500 isnt really an iomd/vidc machine but has
different video/audio chip and was kind of hardwired/hacked into the other
chip drivers.
2001-10-17 23:28:19 +00:00
matt 747d79ef47 Workaround "../../../.." 2001-10-17 23:21:44 +00:00
reinoud 163c0895bf Bug fix : due to changes in wscons having a wsmux seems mandatory now to
get it compiled...

added the pseudo-device wsmux 1 to ensure this demand.
2001-10-17 22:54:25 +00:00
thorpej 397a84f51a Fix the semantics of __PCI_DEV_FUNCORDER so that they're actually useful:
If __PCI_DEV_FUNCORDER is defined, don't do the song-and-dance to check if
a device is multi-function; machdep code is going to tell us exactly which
functions to probe.

Note this required changing how pci_func_devorder() works in the
sparc64 PCI machdep code; now the "curnode" is assumed to point
to the bus, rather than some function (typically 0) on the device,
just as pci_bus_devorder() makes that assumption.

All this should allow the PCI code to actually locate the second
HME device on a Sun Netra t1, which is at 3,1 -- previously, the
PCI code would have missed it because there is no device at 3,0.

(Sun deserves a brick to the head for this one -- this seems clearly
out of line with the PCI spec.)
2001-10-17 22:16:41 +00:00
thorpej b8c7d53f1c Fix a typo in a DIAGNOSTIC check. 2001-10-17 18:43:04 +00:00
jdolecek 8507456e91 add emuxki (Creative Labs SBLive!) 2001-10-17 18:41:20 +00:00
jdolecek d4df209cbd Add driver for Creative Labs SBLive! EMU10000, possibly also PCI512.
Written by Yannick Montulet (thanks!), with only couple minor touches by me.
2001-10-17 18:39:41 +00:00
ichiro 190ebf4d1f regen 2001-10-17 15:44:50 +00:00
ichiro b45d3009cf add Dallas Semiconductor product
USB-FOB/iBUTTON
2001-10-17 15:44:22 +00:00
itojun 1990d680c4 do not change neighbor cache state on entry timeout,
if the cache entry is for outgoing router.

perform on-linkness check before default router (re-)seletion.

do not play with interface direct route on nd6_rtrequest.

sync a lot of cosmetic changes.  sync with kame
2001-10-17 10:55:09 +00:00
haya 5f75bfa4ba Move some chip initialise code into pccbb_chipinit() function. 2001-10-17 10:25:51 +00:00
itojun dfb1429789 unifdef OLDIP6OUTPUT 2001-10-17 08:23:05 +00:00
chs b5ad35867e fix pmap_changebit() to look for the bit in the page attrs
in addition to any PTEs.
2001-10-17 06:28:16 +00:00
shin b2f579a9a8 add wsmux to build kernel. 2001-10-17 01:34:41 +00:00
shin a125433f3e set & export MACHINE_CPU. 2001-10-17 01:33:47 +00:00
bjh21 5dcc1bbb2d Set the major number of swapdev correctly (it's 0, not 1). This
finally makes pageouts work.
2001-10-16 23:58:29 +00:00
bjh21 07b63ac97a On ELF systems, make intptr_t and uintptr_t long, because Matt says so.
This makes regress/lib/libc/int_fmtio compile.
2001-10-16 20:40:45 +00:00
kleink 7c6ef4a85e Make this capable of being included without pre-requisite headers. 2001-10-16 19:47:44 +00:00
kleink 7c182e37e3 Cosmetical nit-pick. 2001-10-16 18:05:26 +00:00
kleink ac7e78d152 Define caddr_t, gid_t and uid_t via <sys/ansi.h>. 2001-10-16 18:04:14 +00:00
uch d8c8db85ef R5900 support.
COP0_SYNC
	In R5900 mtc0, tlbr, tlbp, tlbwi, tlbwr must be followed by sync.p.
	if defined MIPS3_5900, COP0_SYNC is defined as sync.p. else nothing.
 IPL_ICU_MASK
	mask interrupt directly ICU instead of SR.IM.
	I've added this feature to support software interrupt for R5900.
	and this option may be useful for platform which has cascaded ICU.
2001-10-16 16:31:32 +00:00
kleink 1242c3de72 Make this capable of being included without pre-requisite headers. 2001-10-16 15:52:19 +00:00
uch 07f8f33bb9 R5900 miss-prediction of branch targets for short-loop. 2001-10-16 15:40:53 +00:00
uch 2fa5ea9720 playstation2 port 2001-10-16 15:38:29 +00:00
christos 070d583bb3 PR/14256: Kevin P. Neal: Add quirk for micropolis drive. 2001-10-16 13:33:02 +00:00
tron b7ca23147b Add UDMA/100 support for SiS chipsets 645, 650 and 730. 2001-10-16 08:22:50 +00:00
tron 5858458732 Regen. 2001-10-16 08:15:01 +00:00
tron 7c4f946401 Add host bridges of SiS 645, 650 and 730 chipsets. 2001-10-16 08:14:15 +00:00
tron 40dc031852 Add missing timings for Ultra DMA modes 3 to 5 on SiS hostadapters.
Problem pointed out by IWAMOTO Toshihiro on "tech-kern@netbsd.org".
2001-10-16 08:10:24 +00:00
itojun 7dcf45fbd8 more whitespace/comment sync with kame 2001-10-16 06:24:44 +00:00
chs 4b887dad17 it is with great chagrin that I must fix yet another 64-bit math bug. 2001-10-16 05:56:23 +00:00
itojun 45c8a6a57e remove unused #define. sync whitespace/comment with kame. 2001-10-16 04:57:38 +00:00
minoura 1f7386b8aa #include mulaw.h for converter functions prototypes. 2001-10-16 04:36:56 +00:00
itojun 9bff6fde4c reduce diff with kame. whitespace only 2001-10-16 04:17:54 +00:00
itojun 3594efccf6 on RTM_DELETE, reduce refcnt on rt->rt_parent, to avoid leaks.
from IIJ seil team
2001-10-16 02:42:36 +00:00
msaitoh 61b54edfd4 s/BYTE_ORDER/_BYTE_ORDER/g 2001-10-16 02:07:46 +00:00
augustss 3527006336 Don't use wsmux_getmux() if we NWSMUX == 0. Fixes PR kern/14252.
This is only a stop gap measure until the real wsmux changed get in.
2001-10-15 21:51:33 +00:00
kleink af6ca36a9c Unify sparc{,64} headers once again; restore 32-bit sparc64 ABI. 2001-10-15 21:32:25 +00:00
mhitch f7a303efc6 Machine-dependent loadfile() support for booting. 2001-10-15 21:01:34 +00:00
kleink a84ae73f33 Unify sparc{,64} headers once again; restore 32-bit sparc64 ABI. 2001-10-15 19:49:16 +00:00
minoura 8b99935fc3 Use newvers_stand.sh to record the version. 2001-10-15 16:23:00 +00:00
minoura 9138cb0511 Prepare to set WARNS=2. 2001-10-15 16:13:39 +00:00
minoura 5239a6291a set current_id properly. 2001-10-15 16:07:20 +00:00
itojun 149aafe6ad sync with kame.
net.inet6.icmp6.nodeinfo is now a bitmap (2^0 = ping6 -w, 2^1 = ping6 -a).
give up local if there's mbuf alloc failures.
cope with ".." in hostname.
sync comments/whitespaces.
2001-10-15 11:12:44 +00:00
itojun 91498ffec5 implement IPV6_V6ONLY socket option from draft-ietf-ipngwg-rfc2553bis-03.txt.
IPV6_BINDV6ONLY (netbsd only) is deprecated, but still work just like before.
2001-10-15 09:51:15 +00:00
itojun 99d25b4e8a reduce diff with kame. whitespace changes only. 2001-10-15 03:55:37 +00:00
chs 1c97701b8b fix an uninitialized-variable problem in an error case.
pointed out by Simon Burge.
2001-10-15 00:37:51 +00:00
veego 8d71019a14 Fix a pasto in the last revision. 2001-10-14 21:49:00 +00:00
bouyer 69fff4726e Refuse to register a callback if the completion thread isn't started yet. 2001-10-14 21:17:41 +00:00
bouyer ea29ee7d56 Call siop_morecbd() only when scsipi ask us ADAPTER_REQ_GROW_RESOURCES.
This prevent using bus_dmamem_map() from interrupt context.
Should fix kern/13827.
2001-10-14 20:37:28 +00:00
bouyer a84535fd3e Call ADAPTER_REQ_GROW_RESOURCES from the completion thread, if possible.
This allows HBA drivers to call bus_dmamem_map() safely.
2001-10-14 20:31:24 +00:00
kleink 7dcab228e8 Fix a pasto in the __COMPILER_INT64__-based definition of {u,}intmax_t. 2001-10-14 20:11:11 +00:00
leo 44c167f10d cread.o now comes from libtos.a 2001-10-14 19:47:58 +00:00
leo 09bc53b541 TOS/MiNT needs unistd.h. 2001-10-14 19:47:12 +00:00
leo 0c42421cbe Just use '_bootversion', don't use C_LABEL macros. From RTSL, I found out
that kvm_nlist adds an underscore when the binary format is ELF.
2001-10-14 19:45:53 +00:00
leo d3694f31a7 Change the name of the tertiary boot to /boot.atari. This was a suggestion
from Matthew Green. It would still allow multi-platform boots.
Thus, the second level loader first tries /boot.atari and uses /boot as a
fallback.
2001-10-14 19:43:44 +00:00
christos d9b3639de6 quirk for panasonic adapter. 2001-10-14 19:21:45 +00:00
chs a2e3e57398 initialize the vnode's copy of the size in lfs_ialloc(). 2001-10-14 19:06:16 +00:00
bouyer ce6aaa187a Split channel flags in chan_flags used for communications between
scsipi and HBA, and chan_tflags used for communications between scsipi
and its kernel thread. No functionnal change.
2001-10-14 19:03:43 +00:00
christos bc0ae7328a Regen. 2001-10-14 18:09:42 +00:00
christos 19c27f0e0d add another cdrom. The box says fujitsu, but the guts seem to be panasonic.
Mmm, inbreeding.
2001-10-14 18:09:22 +00:00
manu 948a7fa8ef Fixed some mistakes in signal handling (this is still broken)
Added some code to set linux's uname kernel version to 2.4.0 (usefull for
testing with glibc-2.2). This is currently guarded by a #if 0.
2001-10-14 17:21:47 +00:00
manu abcf0c8406 Fixed a minor problem so that it builds 2001-10-14 17:15:58 +00:00
manu c4210f055f Added Mips 2001-10-14 17:14:07 +00:00
ichiro 9ad1f29f64 The description about soft-reset of WI_PCI_COR was added
and WI_PCI_SOFT_RESET was used.
Cosmetic change.
2001-10-14 12:33:18 +00:00
tron 1e022c27b4 Use UDMA/100 on SiS 735 chipset. 2001-10-14 11:21:10 +00:00
simonb 0fbef69268 Put the storage class first in an array declaration. 2001-10-14 00:39:09 +00:00
chs 5a41496a04 avoid overflow in timeout calculations. 2001-10-14 00:32:33 +00:00
bjh21 83d5fd8043 Make the declaration of get_pc_str_offset() into a prototype. 2001-10-14 00:17:26 +00:00
simonb 2d0469db06 Remove so variables that are only ever set and never referenced. 2001-10-13 23:25:58 +00:00
simonb aaaea89787 Don't initialise the 5th element of some 4 element arrays. 2001-10-13 22:59:16 +00:00
leo 37253bbe6b Add bootxxx 2001-10-13 20:40:43 +00:00
leo 38a9a4d6ff Grr, this file shouldn't have been deleted. I thought I corrected it, in
fact the comments from the commit did not mention it to be deleted, just
'changed'...
2001-10-13 20:26:48 +00:00
leo 75b42ecb12 Bootxx is no longer the last booting stage. It now handles only the
command line options. If NetBSD should be loaded, bootxx tries to load
the raw binary file '/boot' that resides on the same filesystem as the
kernel to be booted. This 3rd level boot is supposed to actually load the
kernel.
2001-10-13 20:22:56 +00:00
leo a9d59a63c5 We need a configurable heap now (that implies we need panic.c too....). 2001-10-13 20:10:02 +00:00
leo 530cee7ec2 3rd level boot 2001-10-13 20:06:57 +00:00
augustss 5da06efad4 Allow for control devices (minor+128) to make it possible to manipulate
muxes that are in use.
Create muxes on demand.
2001-10-13 20:03:38 +00:00
augustss ad74203973 Fix a pasto. 2001-10-13 19:58:35 +00:00
augustss 2efffa7ad7 Fix a (very old) pasto. 2001-10-13 19:56:09 +00:00
leo dc6d9bae0d Add an address for the 3rd level boot. 2001-10-13 19:55:07 +00:00
leo 95d16475fc Arrange include files section in such a way that we can use this code in
the MiNT and NetBSD/libsa environment.
2001-10-13 19:50:36 +00:00
chs 4c1a2f36f8 fix pmap_changebit() to look for the bit in the page attrs
in addition to any PTEs.  fixes PR 14220.
2001-10-13 18:28:10 +00:00
augustss b079ab789b ANSIfy. 2001-10-13 16:05:42 +00:00
augustss 04b1440239 Use memset(), not bzero(). 2001-10-13 15:59:01 +00:00
augustss 82e5e6ab85 ANSIfy. 2001-10-13 15:56:15 +00:00
bjh21 cabab13edd When setting watchpoints, call pmap_update() for each watchpoint, rather
than at the end, since they may be in different pmaps.  This avoids a null
pointer dereference that was causing panics when resuming from DDB on arm26.
2001-10-13 15:17:38 +00:00
ichiro 8bf90d96b4 add entry Intersil Mini-PCI(802.11b)
wi* at pci?
2001-10-13 15:06:12 +00:00
ichiro cbcfff63ec Add Intersil Prism2.5 Mini-PCI wavelan. 2001-10-13 15:00:23 +00:00
bjh21 9202040b70 Treat acorn32 the same as arm32 for the purposes of installing include files.
This is necessary to make the libstdc++ install work with the old toolchain,
since it installs <machine/_G_config.h> into /usr/src/${MACHINE}.  There may
be other dependencies on the Old Way, too.
2001-10-13 14:46:00 +00:00
bjh21 cc037046d6 Don't update referenced/modified bits if a page is entered using
pmap_kenter_pa.  pmap(9) says unmanage mappings don't get referenced/modified
tracking, and this seems to stop me getting a panic while starting up with
root on NFS.
2001-10-13 14:23:31 +00:00
augustss d701e45c14 Two changes to the wsmux code:
* Allow the wsmux used by wsdisplay for the keyboard(s) to be explicitely
  specified with the kbdmux locator.
* Allow keyboards and mice that have a mux to be opened in the regular way.
These changes should be totally backwards compatible.
2001-10-13 13:35:59 +00:00
augustss e557cebfce Add kbdmux locator to wsdisplays. 2001-10-13 13:32:20 +00:00
mrg 8b4596288b when comparing bp->val[] against other types, cast the bp->val[] value to
other type.  this avoids sign extension lossage as "val" is (signed) int.
PR#14212.
2001-10-13 08:25:57 +00:00
ichiro c0e7956031 regen. 2001-10-13 07:44:21 +00:00
ichiro 8afd8ee7a9 add vendor & product ID
Intersil PRISM2.5 Mini-PCI WLAN
2001-10-13 07:43:42 +00:00
chs f013b5beb1 fix pmap_changebit() to look for the bit in the page attrs
in addition to any PTEs.  fixes PR 14197.
2001-10-13 06:18:36 +00:00
uwe a291eed4cc Fix SIGNEX macro: sizeof is in bytes, not bits. 2001-10-13 00:41:49 +00:00
nathanw 7f59122d03 Use @true instead of @${TRUE} in includes-foo targets, since there is no
variable TRUE defined in our makefile system.

This prevents "make includes" from breaking with older bsd.subdir.mk, and is
more consistent with the uses of "true" in the rest of the tree.
2001-10-12 21:05:08 +00:00
haya 727e8d4a04 Bugfix: re-order double buffer only when second buffer exists. 2001-10-12 09:27:23 +00:00
enami de085459c1 Fix printf format. 2001-10-12 07:30:23 +00:00
christos bfe76ac87a Allow userland to pass MNT_IGNORE (from enami) 2001-10-11 16:27:24 +00:00
pooka 3518dc8ed0 * fix thinko in mace_print() to prevent intr with value MACECF_INTR_DEFAULT
from getting printed
* fetch device name from dv_xname instead of using hardcoded value
2001-10-11 15:17:42 +00:00
tsutsui 9ed721dc0a hp300 now uses dev/clock_subr.c. 2001-10-11 15:04:44 +00:00
tsutsui 0c3fd1cf03 Cleanup TOD clock functions:
- Adapt MI functions/structures in sys/dev/clock_subr.[ch]
 - Fix year-2001 problem

XXX Maybe TOD clock should be attached as an independent device.
2001-10-11 15:02:07 +00:00
tron eea6d83f4b Regen. 2001-10-11 14:31:58 +00:00
tron fa5ea802e9 Add host bridge of the SiS 735 chipset. 2001-10-11 14:30:21 +00:00
tsutsui 2853ff9bb9 space -> TAB 2001-10-11 14:01:36 +00:00
augustss 9ba9477c1a Regen. 2001-10-11 12:05:39 +00:00
augustss 9ec0bc09c1 Add Epson 1650. 2001-10-11 12:05:10 +00:00
leo 13a1055e2f Second pass of the bootloader reworking. Everything works from the
TOS/MiNT side now.
2001-10-11 07:07:41 +00:00
briggs 155a79e9a1 Add include dev/wsfont/files.wsfont 2001-10-11 04:14:45 +00:00
briggs 0ac571b1e5 include dev/wsfont/files.wsfont 2001-10-11 03:52:13 +00:00
leo d6d66d6664 Check-point my work on the bootcode. 2001-10-10 14:19:49 +00:00
pooka e45292cb5e panic in cpu_initclocks() if clock device is not attached 2001-10-10 13:24:47 +00:00
mrg 711d4aecaa enable aout lkm on sparc & i386 2001-10-10 12:48:49 +00:00
mrg 41d514fe9a framework to build an EXEC_AOUT module. tested on sparc64. 2001-10-10 12:10:10 +00:00
ad 08632b145a Back out previous - it causes panics. 2001-10-10 09:33:36 +00:00
chs eaa7f39f23 in ufs_balloc_range(), if we extend a fragment and need to write the
fragment synchronously, update the vnode's size before doing the flush.
otherwise we might only write part of the data and cause softdep's
accounting to get out of sync.  fixes PR 14201.
many thanks to enami for figuring out what was going on.
2001-10-10 06:37:53 +00:00
mjacob c0018ebdfe The flow control registers are 16 bits wide, not 32. 2001-10-10 03:41:24 +00:00
augustss a969ff5460 Add a reference counter to avoid blowing away the softc while frobbing
the MII registers.
2001-10-10 02:14:16 +00:00
tsutsui 59e6364fcd Include <machine/bootinfo.h> 2001-10-09 16:03:11 +00:00
imp 407046e784 Resync after the sort 2001-10-09 03:18:37 +00:00
imp e23b40707e Sort in a sane way. This file had become somewhat disordered over
time.  Vendors are sorted by number.  Vendors are grouped
alphabetically, with entries within a vendor's group arranged
numerically.  CIS entries sorted alphabetically by identifier.
2001-10-09 03:17:22 +00:00
is 9bf40ca410 Make the Cyberstorm PPC/ Cyberstorm Mk. 3 driver drive the LED.
Actually, this is added to the siop2_script; should we ever support another
siopng board that does connect something else to GPREG bit 4, we'll have
to move this to C code and make it optional.
OTOH, by then we'll have switched to the MI driver by then.
2001-10-08 21:18:58 +00:00
eeh 0bda325da0 Clear the dmamap inside splhigh() protection. 2001-10-08 19:24:20 +00:00
pooka 4eea26606e read dbaud from ARCS and use that for com rate, not hardcoded 38400 2001-10-08 15:53:07 +00:00
uch db344ecd7b fix PERSONA keymap. patch by KIYOHARA Takashi 2001-10-08 15:35:06 +00:00
uch 3c8a8fb72e HITACHI PERSONA support. patch by KIYOHARA Takashi 2001-10-08 15:34:24 +00:00
simonb 62274f02ea Use ${KERNLDSCRIPT} instead of hard-coded ld script name. 2001-10-08 10:14:41 +00:00
simonb 6048ce9247 Use a separate variable (${KERNLDSCRIPT}) for the name of the kernel
ld script, so it can be used in other places.
2001-10-08 10:14:20 +00:00
mycroft cbd7c4d140 When a pipe was grown to BIG_PIPE_SIZE, we could get in a select()/write() loop
because pipe_poll() and pipe_write() did not agree on when it was okay to write
more data.  Fix pipe_write(), since it seems to be the broken one.
2001-10-08 07:50:17 +00:00
augustss adfbf61e48 Regen. 2001-10-08 03:38:24 +00:00
augustss 3d25ac0f24 Add some more Ethernet adapters (info gleaned from Linux). 2001-10-08 03:37:53 +00:00
chs 640db3a7d0 revert a change that I accidentally included with ubcperf. 2001-10-08 00:22:13 +00:00
augustss 4e23e486b8 Regen. 2001-10-07 22:31:02 +00:00
augustss cafdfc900c Add Epson 640U. From Chris Baird <cjb@brushtail.apana.org.au> 2001-10-07 22:30:33 +00:00
eeh bb99dc52c7 Manage both streaming caches on psycho/psycho+. 2001-10-07 20:30:40 +00:00
bjh21 34666c7150 Set POOL_SUBPAGE to 4096, in a bid to improve memory efficiency. 2001-10-07 12:45:03 +00:00
bjh21 d0844f93bb Add support for allocating pool memory in units smaller than a whole page.
This is activated by defining POOL_SUBPAGE to the size of the new allocation
unit, and makes pools much more efficient on machines with obscenely large
pages.  It might even make four-megabyte arm26 systems usable.
2001-10-07 12:44:06 +00:00
bjh21 e2d7d02aa0 Ensure that arch/acorn32/compile gets created. 2001-10-07 12:20:55 +00:00
itohy 7903b5cda4 fix typo (two -> to) 2001-10-07 10:14:42 +00:00
tsutsui 34cc09d49b Move some sources from SRC_kern to SRC_sa.
They are in both libsa and libkern, but .PATH searches libsa first.
2001-10-07 05:00:28 +00:00
tsutsui 9bd648eb07 Build sa programs with -Os. 2001-10-07 04:50:40 +00:00
tsutsui 1bc09f71dc Pass CPPFLAGS properly so that source files can include <machine/asm.h> . 2001-10-07 01:39:51 +00:00
bjh21 8cdda239fa Basic acorn32 makefile -- the arm32 one with the obvioud transformations
applied.  This is necessary to get kernel headers installed properly.
2001-10-06 22:04:11 +00:00
bjh21 2989551639 vidc.h => vidc_machdep.h, since the latter exists and the former doesn't. 2001-10-06 22:03:02 +00:00
mjacob 6349e2e63a Fix various 2300 GB issues related to chip errata and documentation
misunderstandings. We also now can report our connection rate.
2001-10-06 20:34:49 +00:00
mjacob daf0329c3c Respect QLogic's errata- read BIU_ISR even on the 2300
to see if there's an interrupt (avoids PCI parity errors
which can occur on the 2312 if you access some registers
from the host at the same time the RISC on the 2312 is
accessing them).
2001-10-06 20:33:24 +00:00
bjh21 6b3d54743f Install <machine/pte.h>. 2001-10-06 20:30:02 +00:00
thorpej 5b01f60e5b The bridge driver does all forwarding at interrupt level, and
does not use software interrupts; remove these bridge netisr
hooks left over from a previous incarnation of the bridge code.

Noted by Andrew Brown <atatat@atatdot.net>.
2001-10-06 15:46:33 +00:00
pooka ac8c8ee3fd regen; iPAQ 2001-10-06 15:03:34 +00:00
pooka c70a35c897 iPAQ PocketPC 2001-10-06 15:02:22 +00:00
mrg 65827cfc3c sync with sparc: add cdtty 2001-10-06 14:50:22 +00:00
manu aa5da496fa Added socket operations to Linux Mips emulation 2001-10-06 13:32:58 +00:00
manu 2d38e85044 Implements ATOMIC_SET in linux_sys_sysmips 2001-10-06 13:32:18 +00:00
thorpej a769f31893 soft_splvm() - "block" SPLBIO, SPLNET, and SPLTTY in addition to SPLIMP
and the soft interrupts.  Probably doesn't matter for an all OFW kernel,
since all devices are polling, but done for correctness.

soft_splsoftnet() - make sure to block softclock, as well.  While
you're in the network code at splsoftnet(), you don't want a soft
clock interrupt tripping some network-related timeout and reentering
the network code.
2001-10-06 03:51:48 +00:00
thorpej 16d926c4b8 Use ISACF_IRQ_DEFAULT rather than IRQUNK. 2001-10-06 03:04:01 +00:00
thorpej 6a434bacd5 Don't forget to fill in the DMA tag when attaching the AGP
controller.
2001-10-06 02:51:42 +00:00
thorpej 01b2f9b5c4 Remove and unnecessary cast, and avoid a memory leak in the event
allocation of the GATT fails.
2001-10-06 02:48:50 +00:00
thorpej e797da0ffb Make this match int_mwgwtypes.h (not that that header is really
correct, but they should at least be in-sync -- a PR has been
filed against int_mwgwtypes.h).
2001-10-06 01:21:40 +00:00
oster 525f4a9bed Backout a line that accidentally got included when the .h reorg went in. 2001-10-06 00:47:46 +00:00
reinoud 516521c84f re-add asm.h to get arch/dnard to compile again; it links to the
arch/arm/arm32's asm.h.
2001-10-06 00:27:59 +00:00
thorpej c2a1bef2f3 Create the Tx DMA maps with a size large enough for a jumbo Ethernet
frame.
2001-10-06 00:14:59 +00:00
reinoud 7d4a1addde Initial commit of the splitting off of arch/acorn32 from arch/arm32.
The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
2001-10-05 22:27:40 +00:00
eeh 7fbd726cc8 Stop wscons from conflicting with rcons. 2001-10-05 22:08:28 +00:00
eeh 0e60a3377b Remove bsd_openprom.h, which is only for compatibility with the sparc port. 2001-10-05 21:53:56 +00:00
eeh 2375794907 Make OF_interpret() handle input and output arguments. 2001-10-05 21:52:43 +00:00
eeh c824ea9b57 Remove the property sysctl interface for now. 2001-10-05 19:05:05 +00:00
thorpej 34dbd19c49 Delete this file; nothing includes it, and it is simply an (incomplete)
copy of <dev/pci/ppbreg.h> anyway.
2001-10-05 17:53:36 +00:00
thorpej 0d4d2293bb Minor tidying up of the HME driver attach:
- Print nicer-looking message.
- Use bus_space_subregion() when appropriate, rather than arithmetic
  on a bus_space_handle_t.
2001-10-05 17:49:43 +00:00
oster 035a63f6d3 More #if 0's bite the dust. 2001-10-05 15:41:23 +00:00
simonb 4471b94432 This Makefile.inc is used for building LKMS - add the standard MIPS
kernel compile flags as well as "-mlong-calls" so that calls from the
LKM in KSEG2 work to the kernel in KSEG0.

MIPS LKMs now build and can be loaded with the right Magick command line
args to modload(8).  Changes to modload coming...

Thanks to Chris Demetriou for pointing out the -mlong-calls gcc option
that had been staring me in the face all along.
2001-10-05 15:36:46 +00:00
oster 9d1d665dac Nuke some #if 0 stuff. 2001-10-05 15:33:12 +00:00
pooka aa236892fb include <machine/bsd_openprom.h> to make this compile with RASTERCONSOLE 2001-10-05 15:28:28 +00:00
pooka 40ca91c19c prototype rominterpret() 2001-10-05 15:27:56 +00:00
simonb c63662a13e Multiple include protection. 2001-10-05 15:25:02 +00:00
simonb 1f8636506e Use ".-include" instead of the ".if exists(...) ..." dance. 2001-10-05 15:14:18 +00:00
pooka 527cf2d2b1 use kern.ldscript instead of kern.ldscript.be per new scheme 2001-10-05 14:57:18 +00:00
pooka 8d2fa0f7b6 add cast to u_long before cast to caddr_t make these compile on sparc64 2001-10-05 14:25:15 +00:00
mrg e5f5465184 avoid a memory leak 2001-10-05 13:32:23 +00:00
mrg a5bca05a81 add sio16 support. 2001-10-05 13:32:00 +00:00
pooka 11d8d4dae9 add casts to debug printfs to make this compile on archs where
size_t is of type int
2001-10-05 12:55:24 +00:00
bjh21 25d06cf184 Install net/ieee1394.h the same way we install all the other
link-layer-specific headers.
2001-10-05 12:37:39 +00:00
thorpej 1edcfbbee2 Fix a typo so that /sbin/sysctl compiles again. 2001-10-05 05:46:50 +00:00
simonb bc2ec5e553 Use a single ldscript instead of separate scripts for either endianness;
use command line parameters to ld(1) instead to set the endian format.
Clean up some endian decisions in mips/conf/Makefile.mips.
Wrap some long lines.
2001-10-05 05:03:27 +00:00
thorpej 02d031e24d Fix a typo in a comment. 2001-10-05 02:08:09 +00:00
jmc fd9e0c2d9c It's sys/properties.h. Fix typo 2001-10-05 01:24:05 +00:00
thorpej a5aff000fc Match the UMAX Astra 3400. 2001-10-05 00:31:06 +00:00
thorpej 7853ec7367 Regen; add UMAX Astra 3400 scanner. 2001-10-05 00:24:52 +00:00
thorpej 919f3bb120 Add UMAX Astra 3400 scanner. 2001-10-05 00:24:25 +00:00
hubertf c072a38d4c Add missing comma 2001-10-04 23:36:10 +00:00
eeh b2803e7da0 Install sys/property.h 2001-10-04 19:06:29 +00:00
eeh 37b272cd02 Add kern/subr_prop.c. 2001-10-04 19:05:32 +00:00
eeh b8f825b33b Add sysctl for generic properties. 2001-10-04 19:03:59 +00:00
eeh ade7065ac5 Add M_PROP. 2001-10-04 19:00:44 +00:00
eeh e1bd5ac110 Add generic properties. 2001-10-04 18:56:06 +00:00
oster d00ed4116f Tidy up the #includes a bit. (coulda/shoulda done that with last commit.) 2001-10-04 17:42:29 +00:00
oster 2621bd1124 rf_options.h isn't needed here. 2001-10-04 17:41:17 +00:00
oster aa7a54f593 If rf_options.h needs to be include it, then include it. Don't rely on
another .h file to pull it in.
2001-10-04 17:39:18 +00:00
oster dad0d4578c Nuke a couple of unused extern variable declarations. 2001-10-04 17:31:01 +00:00
oster 32c731329a These have been completely replaced by raidframevar.h and raidframeio.h. 2001-10-04 16:08:51 +00:00
oster e4e898c2e0 Need to recurse into the raidframe subdir too. 2001-10-04 16:04:53 +00:00
oster fe686dfde7 Setup installation mechanism for <dev/raidframe/raidframevar.h> and
<dev/raidframe/raidframeio.h>
2001-10-04 16:04:16 +00:00
oster 765e00d3de Step 2 of the disentanglement. We now look to <dev/raidframe/*> for
the stuff that used to live in rf_types.h, rf_raidframe.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, rf_decluster,h, and a few other places.
Believe it or not, when this is all done, things will be cleaner.

No functional changes to RAIDframe.
2001-10-04 15:58:51 +00:00
mrg c68c2f3692 add new cd18xx, sio16, remove simba for sparc64 2001-10-04 15:56:35 +00:00
augustss 51f55f21bd Alphabetize PHYs. 2001-10-04 15:51:32 +00:00
oster 46a6eb1477 Step 1 of the disentangling of RAIDframe's .h files:
raidframevar.h - contains bits of rf_types.h, rf_layout.h,
rf_netbsd.h, rf_raid.h, and rf_decluster.h.

raidframeio.h - contains the bits needed for doing IOCTL's w/
RAIDframe.

These bits will be visible to userland.
2001-10-04 15:43:57 +00:00
wiz 0eee1a5c64 Give `spurious' all the `u's it needs. 2001-10-04 14:17:28 +00:00
augustss 96528f60d6 Add esl. 2001-10-04 10:43:10 +00:00
is 192ef03e2e Add repulse. 2001-10-04 10:24:59 +00:00
chs dec9f39d8d reduce ramdisk size back to what it was before.
everything fits since tsutsui fixed libhack.
2001-10-04 08:17:41 +00:00
chs 90a3a778a7 when attempting to reclaim a vnode, tell the lockmgr() that it's ok
to just fail if we already hold the lock.  we'll skip that vnode
and try another.  fixes PR 14090.
2001-10-04 05:46:45 +00:00
jmc 60263432a6 Add the fact that SRCS depends on machine. This way the link is always created
Otherwise trying to do make installboot.o will fail
2001-10-04 04:15:17 +00:00
augustss 3d2be4cf9b Fix pasto in type of dev_ioctl method. 2001-10-03 20:48:41 +00:00
bouyer 04dda897ce In cpu_rootconf() use booted_device instead of rebuilding it from bp->dev,
so that a RAID device confgiured with -A root will really be used as root
device.
Discussed on port-sparc s few days ago.
2001-10-03 20:03:29 +00:00
nathanw 586e98e699 Use a value for APMDEBUG_ANOM distinct from APMDEBUG_ATTACH, so that
the debug flag has the originally intended granularity.

From seebs@plethora.net via port-i386/13674.
2001-10-03 18:22:13 +00:00
enami 6e46b6ec2c s/genfs_do_putpages/genfs_gop_write/ in uvmhist. 2001-10-03 14:13:08 +00:00
christos 7e19baba28 protect against traditional macro expansion. 2001-10-03 13:32:23 +00:00
simonb cfd067b21b One copy of <sys/conf.h> will be enough. 2001-10-03 13:14:02 +00:00