Commit Graph

39711 Commits

Author SHA1 Message Date
deberg
0d5d0bd93a don't define LIST_FOREACH, it's in sys/queue.h now. 2000-07-20 03:47:56 +00:00
deberg
23f2392b19 don't define TAILQ_FOREACH, it's in sys/queue.h now. 2000-07-20 03:44:46 +00:00
deberg
6d22be08eb add *_FOREACH() and {TAILQ,CIRCLEQ}_FOREACH_REVERSE() macros from
freebsd.  fix some of the comments up top.
2000-07-20 03:36:38 +00:00
jeffs
d8d3c52075 Move masked status and instr into jal cpu_intr delay slot. 2000-07-20 00:43:07 +00:00
mjacob
c47c527343 add some more CTIO flags 2000-07-19 22:19:23 +00:00
mjacob
0615788781 zero result queue entry when done if debugging.
don't do an isp_notify_ack if we're not at run state.
2000-07-19 22:19:00 +00:00
mjacob
93379fb341 fix mislabelled error case 2000-07-19 22:18:02 +00:00
jeffs
5938072101 In FPU excepton code, send SIGILL if no one claims the instruction.
SIGFPE is still delivered where appropriate.
2000-07-19 22:05:02 +00:00
ragge
96122c2884 Do mtpr(0, PR_TBIA), not mtpr(1, PR_TBIA). This has worked on all CPUs
except for KA88.
2000-07-19 21:08:06 +00:00
jeffs
64d555c075 Improve outofworld: to include the vaddr. Removed unused mips3_Set64bit
and an #if 1.
2000-07-19 20:46:00 +00:00
matt
b14e1fbbd4 Tpyo 2000-07-19 20:29:45 +00:00
bjh21
f079e15d48 - Remove asc driver, since it doesn't work
- Reduce maxusers to 2
2000-07-19 19:41:48 +00:00
jeffs
32ee71ac65 Fix stacktrace() to have an 8 byte aligned stack. On our platform previously
it would hang-up.  logstacktrace() actually was the same as stacktrace() so
just make it an XLEAF() for now.  Include some DDB code for KGDB compilation.
2000-07-19 18:56:36 +00:00
jeffs
8b8bf4501b At the start of the kernel, keep the MIPS3_SR_DIAG_BEV setting
on mips3 systems, until the kernel actually hooks the vectors.
This makes it easier to debug early problems if the firmware
has provides an exception handler.
2000-07-19 18:38:41 +00:00
matt
38c659cca5 Include ELF support by default. 2000-07-19 18:29:21 +00:00
matt
8e9ff5814e More ELF changes (a.out still works). 2000-07-19 18:15:01 +00:00
thorpej
9faf26ffb5 This file is obsolsete. 2000-07-19 17:39:57 +00:00
bjh21
8c2ce5b135 New configuration, based on GENERIC, but small enough to fit on a system
with 4Mb of RAM (I hope).
2000-07-19 16:39:30 +00:00
pk
f9e6c9cf42 Fixx off-by-one error in handlereset(). 2000-07-19 16:07:00 +00:00
eeh
6996dd8691 Fix merge problem. 2000-07-19 15:48:25 +00:00
eeh
25f8633edd Add an option to poll the ROM console from hardclock you can break into DDB
even if callouts are disabled.
2000-07-19 15:41:53 +00:00
nathanw
e72ba11928 In cpu_switch(), load value *after* checking that the base register
is not NULL.
2000-07-19 14:00:24 +00:00
nathanw
554019cd4b More printf format munging for off_t: when printing as %lld, cast to long long. 2000-07-19 13:44:24 +00:00
tsutsui
5867f914e8 Add (commented out) "options TCVERBOSE". 2000-07-19 10:42:22 +00:00
mrg
e3fc09812a make myetheraddr() work even if the clock hasn't been setup yet 2000-07-19 10:20:09 +00:00
augustss
00cafd0569 Add MIDI support. From Tatoku Ogaito. 2000-07-19 09:58:45 +00:00
onoe
0ab524f389 moved the check priviledge for SIOCS80211NWID from each driver to ifioctl().
it also fixes the problem that non-priviledged user can change nwid
for wi and ray drivers.
2000-07-19 06:00:39 +00:00
eeh
422e1b7236 Disable interrupt interlock using ih->ih_pending field. Seems to cause
more problems than it solves.
2000-07-19 04:36:42 +00:00
matt
69a9192fb8 We need strncasecmp.c now. 2000-07-19 03:56:38 +00:00
matt
237e784779 ELFify 2000-07-19 03:48:24 +00:00
eeh
625dc5189f Miscellaneous cleanup. 2000-07-19 03:24:07 +00:00
matt
d66b7dcc2d Switch to loadfile instead of exec. Now we can load a.out or ELF kernels. 2000-07-19 02:39:11 +00:00
matt
ad99ca5ed2 use size_t instead of u_int. 2000-07-19 01:02:52 +00:00
matt
ab5d2882a0 Move KA630 definitions from boot/boot/consio.c to here. 2000-07-19 01:01:58 +00:00
matt
15c6bb6dbd ELFify (udiv -> __udiv, urem -> __rem) 2000-07-19 01:01:02 +00:00
matt
732a08c3c3 Put the assembly consio routines in a separate file so it can deal with
a.out/ELF differences.
2000-07-19 00:59:20 +00:00
matt
9b4c867626 Add support for loading a 2nd stage boot in either a.out or ELF.
Add support for loading a 2nd stage boot directly to it's desired address
if possible.
cleanup use of u_int/size_t.
2000-07-19 00:58:23 +00:00
eeh
067b7521b5 Fix PIC bugs. 2000-07-18 22:38:11 +00:00
lukem
b1fcf03d7f freebsd kqueue implementation 2000-07-18 22:11:54 +00:00
jeffs
ddc66457b1 Same change in the kgdb code as was done in ddb:
Move platform db_trap callback from arch/mips into ddb as suggested by
  jhawk.  This callback is used by platform code to manage things like
  watchdogs that should be disabled while in ddb.  Done as a callback
  for processors such as mips that support lots of different systems.
2000-07-18 21:49:08 +00:00
jeffs
9349a51d66 Provide some info on what db_trap_callback() is for in the code. 2000-07-18 20:51:07 +00:00
pk
59a7148fe9 address casts: long -> u_long 2000-07-18 20:19:56 +00:00
pk
db76bf893e Cast pointer to u_long' (not long') for correct results. 2000-07-18 20:15:36 +00:00
pk
602e908589 Correct args usage comment in probeget.
Whitespace cleanup.
2000-07-18 20:14:45 +00:00
pk
1d14ce3842 probeget: 9 -> 0x9 2000-07-18 19:27:57 +00:00
pk
c0e91fb184 If `ih_pending' is set simply return from the trap, don't schedule another
soft interrupt.
2000-07-18 19:25:26 +00:00
ad
7d1b0e5b39 Use device_lookup() and ditch TAILQ sillyness. 2000-07-18 15:27:44 +00:00
onoe
47f692248f add WEP support also for PRISM2 cards.
Corega works fine with WEP, but farallon doesn't work well with WEP for now..
2000-07-18 15:01:55 +00:00
itojun
65d37eff7f correct RFC2367 PF_KEY conformance (SADB_[AE]ALG_xx values and namespaces).
sync from kame.

WARNING: need recompilation of setkey(8) and pkgsrc/security/racoon.
(no ipsec-ready netbsd was released as official release)
2000-07-18 14:56:42 +00:00
onoe
905b4e497f Add support for Corega Wireless LAN PCC-11, and Farallon SkyLINE 11Mb.
Note that Corega card works at 3.3V only, then it requires cardbus code
for now.
2000-07-18 14:53:26 +00:00
onoe
4a2a3bf091 Add Farallon SkyLINE 11mb card as Intersil Prism2
vendor:product of the card is Lucent:WaveLAN, and CIS string shows
	"INTERSIL" "HFA384x/IEEE"...
2000-07-18 14:48:10 +00:00
onoe
0dbbd8cec4 implement new signal syscalls in FreeBSD 4.0-RELEASE, using native syscalls:
sigaction, sigprocmask, sigsuspend, and sigpending.
2000-07-18 14:15:05 +00:00
pk
a49fddc9b3 openfirmware: don't lower %pil 2000-07-18 12:52:56 +00:00
matthias
9cb57a12a7 Change KERNBASE to 0xe0000000 to give more room for KVA. This is the maximum
amount of KVA that is supportable on the ns32532.
2000-07-18 12:45:49 +00:00
soda
36b85ab9c7 hexadecimal constant in "options" value doesn't need quotation. 2000-07-18 11:41:32 +00:00
soda
87b0dd6e6a make PCIBIOS_IRQS_HINT patchable. 2000-07-18 11:37:56 +00:00
pk
34270e85bd Use probeget() in pci_config_read() for the psycho, to avoid bus
faults when probing PCI space.
2000-07-18 11:37:31 +00:00
pk
073e24cd1b Set up register bank sharing bwteen psycho A & B based on matching
physical addresses.  Allocate IOMMU state separately and refer to it
from both psycho_softc's.
2000-07-18 11:35:03 +00:00
soda
52e3dc4e56 use I386_PCI_INTERRUPT_LINE_NO_CONNECTION instead of magic number. 2000-07-18 11:24:09 +00:00
soda
663add1b20 use PCI_INTERRUPT_PIN_MAX and I386_PCI_INTERRUPT_LINE_NO_CONNECTION,
instead of magic number
2000-07-18 11:23:28 +00:00
soda
81858d7c01 - Use PCIBIOS_PRINTV().
- Use PCI_INTERRUPT_PIN_MAX and I386_PCI_INTERRUPT_LINE_NO_CONNECTION
   instead of magic number.

the Following changes are
{Modified with,Approved by} UCHIYAMA Yasushi <uch@netbsd.org>:

 - Do not touch a PIRQ router, if the PIRQ is already routed
   by the BIOS, or no appropriate IRQ is found for the PIRQ.
   The latter prevents a panic on the machine of Frank van der Linden.

 - Do not modify a PCI Interrupt Configuration register,
   if it is already set by the BIOS, even if it is inconsistent
   with the PCI IRQ routing table provided by the BIOS.
   (The PCI Interrupt Configuration register seems to be more reliable
    than the PCI IRQ routing table.)
   This is needed to prevent a incorrect header_fixup() caused
   by the incorrect PIR table on a Panasonic Let's Note AL-N2T516J5.

   Provide "options PCIBIOS_INTR_FIXUP_FORCE" to retain
   previous behavior, i.e. believe the PCI IRQ routing table
   and ignore the PCI Interrupt Configuration register.
   Although I'm not sure this is really needed.

 - Do not modify a PCI Interrupt Configuration register,
   if appropriate IRQ is not found for the link.

 - Move a pciintr_icu_getclink() call and a pciintr_icu_get_intr()
   call from pciintr_link_fixup() to pciintr_link_alloc(),
   and only allocate pciintr_link_map if those calls succeeded.
   This reduces number of calls of pciintr_icu_getclink(),
   and also avoid necessity to validate a clink value in
   ICU's {get,set}_{intr,trigger}() functions.
   The sanity checks are not removed yet, though.

 - Fix uninitialized usage of variable `bitmap' on stage 3
   of pciintr_link_fixup().

 - Remove a member variable `old_irq' from struct pciintr_link_map.

 - Always use 0x%02x for printf format of canonical link value.

 - Use DIAGNOSTIC instead of PCIINTR_DEBUG for really weird situation.
2000-07-18 11:22:36 +00:00
soda
b01ab37ef6 use PCIBIOS_PRINTV() defined in pcibios.h, instead of homegrown DPRINTF(). 2000-07-18 11:18:04 +00:00
soda
698b2b1173 - define pcibiosverbose here, instead of each C source.
- use PIR_DEVFUNC_{DEVICE,FUNCTION}.
2000-07-18 11:15:25 +00:00
soda
0e8343265b - define PCIBIOS_PRINTV() as pcibiosverbose printf() here,
instead of DPRINTF() in each C source.
 - define PIR_DEVFUNC_{DEVICE,FUNCTION}
2000-07-18 11:14:06 +00:00
soda
2f9cb9c128 add several debug printf which can be enabled by PIIX_DEBUG. 2000-07-18 11:10:22 +00:00
soda
9a7e0d82ac - deal with FIRESTAR_PIR_SELECT_PIRQ case on set/get_trigger(),
to prevent a panic on a Panasonic Let's Note AL-N2T516J5.
 - add several debug printf which can be enabled by FIRESTARDEBUG.
 by UCHIYAMA Yasushi <uch@netbsd.org>

 - use I386_PCI_INTERRUPT_LINE_NO_CONNECTION instead of magic number.
2000-07-18 11:07:20 +00:00
soda
b8a6bd6e11 add "#define I386_PCI_INTERRUPT_LINE_NO_CONNECTION 0xff" 2000-07-18 11:00:35 +00:00
soda
c41ca10d33 add "#define PCI_INTERRUPT_PIN_MAX 0x04" 2000-07-18 10:59:04 +00:00
jeffs
f7dacc7a8e Use spl*_noprof routines to raise and lower spl for kernel profiling.
This keeps the SR management more contained in locore, and should
be roughly the same performance as the .text size is less.  Talked
to simonb and he was ok with this change.
2000-07-18 06:25:32 +00:00
thorpej
693ff4c94d PAGE_SIZE -> IOASIC_DMA_BLOCKSIZE in one last place. From Izumi Tsutsui. 2000-07-18 06:14:05 +00:00
thorpej
b91d520dc9 Back out previous. It is no longer needed, as both the Alpha
and DECstation IOASIC drivers clear the appropriate interrupts
in the dispatch routine.
2000-07-18 06:12:33 +00:00
thorpej
ea0cb4c30e Clear the ISDN TXPTR/RXPTR/OVRN interrupt bits here. Based on
a suggestion by Gregory McGarry.
2000-07-18 06:10:06 +00:00
mrg
faaa100d6e #if 0 some dumpsys() debugging messages 2000-07-18 05:18:35 +00:00
mrg
d2626038cd kill dead files. 2000-07-18 04:21:17 +00:00
mrg
040268c10e s/auxreg/auxio/ 2000-07-18 04:17:23 +00:00
enami
84606936fb Fix an obvious typo in comment introduced by previous commit; the instruction
now compares a0 against a1 + a2, not a0 + a2.
2000-07-18 01:20:24 +00:00
jeffs
8e5b35a55a Fix FP exception handling that was recently broken and would not
run src/regress cleanly.  Need to save and restore the frame pointer
for fpemul_sig*().
2000-07-18 00:41:18 +00:00
jeffs
5961b67774 if MIPS3_ENABLE_CLOCK_INTR is defined, set MIPS3_[HARD_]INT_MASK
appropriately.  This supports ports that use the internal clock.
Add 2 diag register defines that are specific to QED processors.
2000-07-17 23:35:13 +00:00
jeffs
0e0c4d24e8 Move platform db_trap callback from arch/mips into ddb as suggested by
jhawk.  This callback is used by platform code to manage things like
watchdogs that should be disabled while in ddb.  Done as a callback
for processors such as mips that support lots of different systems.
2000-07-17 19:57:49 +00:00
pk
1d1b0968f1 IF we're changing hz, change tick accordingly too. 2000-07-17 18:32:25 +00:00
tron
5446d3c92e Don't make assumptions of the actual value of PCI_PMCSR_STATE_D0.
Problem noted by John Hawkinson.
2000-07-17 18:12:00 +00:00
tron
cfae3184d8 Don't clobber bits from 2 to 31 when trying to change the power state.
Problem noted by John Hawkinson.
2000-07-17 17:53:44 +00:00
thorpej
5e275d7012 Clear the DMA pointer reload interrupt bits in the IOASIC_INTR
register to prevent interrups from looping on the Alpha.

From Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>.
2000-07-17 17:43:16 +00:00
pk
ec726f07ca Kill typos in interrupt code. 2000-07-17 17:06:00 +00:00
wrstuden
0eb897823b There is no music device - g.c. its cdev_decl. 2000-07-17 16:57:19 +00:00
minoura
71ccd6200d Add (but commented) COMPAT_PECOFF entry. 2000-07-17 14:37:53 +00:00
pk
966115ff9e probeget: do the same song and dance as ld*a() macros in ctlreg.h do. 2000-07-17 14:08:43 +00:00
augustss
3aacf9101a Regen. 2000-07-17 13:07:21 +00:00
augustss
82b491eecc Some more products (from FreeBSD). 2000-07-17 13:06:54 +00:00
jeffs
efabca31b5 Make memcpy() the favored interface an swizzle the args for ovbcopy. Also
move bcopy XLEAF here from locore.S.  For 64b clean compilation add a
ld/sd section to the block copy.
2000-07-17 07:37:50 +00:00
jeffs
2fd0d88f44 Use <uvm/uvm_extern.h> instead of vm/vm.h 2000-07-17 07:06:13 +00:00
jeffs
116a6f8233 Pull in geocast mips ddb improvements and start bringing in kgdb support.
Add ddb support for QED opcodes, fill in enough routines so "next" usually
works, kdbpoke support for any size.  Add callback that ports can hook when
entering and leaving ddb.  This can be used for things like turning
off watchdogs while in ddb.
2000-07-17 07:04:19 +00:00
scottr
fc1ba82306 Make this compile again: restore missing prototype. 2000-07-17 06:53:42 +00:00
scottr
d63c5d05ce Catch up with d_mmap parameter change. From Steve Peurifoy via PR #10603. 2000-07-17 06:52:31 +00:00
scottr
b4f5693f98 Repair format type mismatch in DEBUG code. From Steve Peurifoy via PR #10603. 2000-07-17 06:51:18 +00:00
scottr
196f358a96 Correct return type of grfaddr(). From Steve Peurifoy via PR #10603. 2000-07-17 06:50:32 +00:00
thorpej
5edc9ef4a4 When computing the segment size, consider the maximum segment
size in the DMA map.
2000-07-17 04:47:56 +00:00
thorpej
8746b7c870 - Write the registers 7930 registers properly on the Alpha (it's
different than on the DECstation).
- Use IOASIC_DMA_BLOCKSIZE instead of PAGE_SIZE.

Should make this work on the Alpha.  From discussion with
Izumi Tsutsui, Gregory McGarry, and Chris Demetriou, and
much reading of EK-D3SYS-PM.
2000-07-17 04:37:27 +00:00
enami
9496825ae2 Define an auto variable ``cp'', which is used to scan the global variable
``version'', as const char * instead of char * to prevent compiler warning.
2000-07-17 04:04:02 +00:00
matt
f96915efa5 Changes so that the kernel can be compiled under __ELF__. 2000-07-17 02:54:04 +00:00
matt
5d9fda1ecd switch size_t, ptrdiff_t, & ssize_t to long int (signed or unsigned) for
__ELF__.
2000-07-17 02:52:24 +00:00
thorpej
887bebaa71 Define IOASIC_DMA_BLOCKSIZE (4096 bytes). 2000-07-17 02:18:17 +00:00
thorpej
8623daff6d G/c some unused (and incorrect, for our usage) definitions. 2000-07-17 02:17:13 +00:00
thorpej
95f72dd4aa Use the IOASIC_DMA_ADDR() macro now that it is fixed. 2000-07-17 01:29:02 +00:00
thorpej
cd6fa19644 Make sure to get the upper 5 bits of the page address mixed in
in IOASIC_DMA_ADDR(), as the le_ioasic attachment does.  Noted
by Gregory McGarry.
2000-07-17 01:28:16 +00:00
jdolecek
77c0fe57cf convert to use version template and newvers_stand.sh script for generating
bootblock revision strings, use bootbock_name[] (i.e. "NetBSD/sun3")
	in initial bootblock messages instead of just "NetBSD"

while here, do sligh Makefile cleanup to share more code between them and also
	to make buildable on NetBSD 1.4.1 (my test compile system)
get rid of the XX define hack for netboot & ufsboot, build xxboot.c as
	part of libsa - previos main() was renamed to xxboot_main(), main()
	is now in respective conf.c files and calls xxboot_main() with
	appropriate name of boot block type

XXX I had no chance to actually test the resulting bootblocks, but the
changes were fairly streightforward and should no influence functionality of
boot code
2000-07-16 21:56:12 +00:00
fvdl
57e3691758 Don't wait for B_READ buffers to finish in vfs_shutdown, it makes no sense
to do so.

From Ethan Solomita.
2000-07-16 21:07:24 +00:00
tron
114bb7f9d9 If card is in power state D3 put it into power state D0 so that it will
at least work after the next reboot.
2000-07-16 20:18:48 +00:00
bjh21
d9151a2dc8 Add a uuencoded tokenised BASIC version of BBBB, since it can't yet be
generated without RISC OS.
2000-07-16 12:54:04 +00:00
bjh21
87dbab4963 Warn about <8bpp screen modes.
Fix a typo in "page in use" message.
2000-07-16 12:46:50 +00:00
itojun
5f09b77987 s/IPSEC_IPV6FWD/IPSEC/. this should correct strange behavior on ipv6
forwarding (even if policy asks for tunnel mode encryption, packets
go out in clear).  sync with kame.
2000-07-16 07:57:55 +00:00
christos
480203ba75 change intptr_t and uintptr_t to long and unsigned long respectively. This
is a noop on 32 bit machines, but it makes lint quiet and it is more correct.
2000-07-16 02:18:11 +00:00
itojun
a2744a4cf8 do not pull sys/queue.h from netinet6/in6.h. PR10597.
some sync with kame.
2000-07-16 01:10:34 +00:00
jdolecek
24c327fe78 Add an option to do case-insensitive lookups even on Rock-Ridge CD-ROMS.
Add 'rrcaseins' option to mount_cd9660(8).

This addresses kern/2419 by Jason Downs.
2000-07-15 21:40:42 +00:00
jdolecek
e7d7ef2275 one less - though we don't have 'notrans', we have 'nomaplcase' now 2000-07-15 21:37:50 +00:00
jhawk
859057e6b3 Fix uninitialized variable (reg) in fxp_pci_confreg_restore();
this could result in garbage being written to the PCI status register,
which is unlikely to have had a serious effect. This was with us from
an #if 0 added in rev 1.6.
2000-07-15 21:36:19 +00:00
tron
9feae259a4 Avoid printing duplicate colon when card is waked up. 2000-07-15 20:57:24 +00:00
matt
2890290b0f Add com* at obio0. (Tadpole & JavaStation) 2000-07-15 19:59:53 +00:00
tron
cfe61a3025 Un-__P'ify kernel prototypes. 2000-07-15 19:59:27 +00:00
matt
1d97a430c4 Enhance this so it support the com port on the JavaStation 1 as well as
the tadpole internal modem.
2000-07-15 19:57:03 +00:00
scw
83e844cf03 Add a prototype for netintr() 2000-07-15 19:17:19 +00:00
drochner
54ccff0437 define "80x24" screen types for better vt100 compatibility 2000-07-15 18:47:54 +00:00
scw
20305c6623 Fix a typo in the `device_lookup()' changes. 2000-07-15 18:12:42 +00:00
scw
b3b275a389 The install ramdisk has grown somewhat, and now overwrites the
`ie' chip's packet buffer... Moving it up to just below the netboot
image (4MB) should leave room for a few more year's bloat. ;-)
2000-07-15 16:04:24 +00:00
eeh
eb5863f522 #ifdef BOOT_DEBUG --> BDPRINTF(PDB_BOOT, (...)) 2000-07-15 14:26:39 +00:00
tron
61c607b9fe Improve kernel message when card is in power state D3. Instead of...
epic0 at pci0 dev 11 function 0 epic0: unable to wake up from ...

... print this:

epic0 at pci0 dev 11 function 0: unable to wake up from power state D3
2000-07-15 10:32:36 +00:00
tron
498310f5be Check if card was put into sleep mode using PCI/ACPI power management
and try to restart it. This patch based on hints by Jason Thorpe.
2000-07-14 22:00:32 +00:00
tv
1276c517f4 Remove ENOTSUP for the moment. This needs a unique number, as noted by
kleink, and there are a few more from SUSv2 that we should have for
completeness anyway--these will be added in the near future.
2000-07-14 21:39:56 +00:00
soren
b141a6bfe8 Merge-o. 2000-07-14 21:09:45 +00:00
eeh
4eacbabe76 Make 64-bit stack tracebacks look decent. 2000-07-14 21:07:10 +00:00
eeh
6667752114 Move some macro definitions out of genassym and into locore.s 2000-07-14 21:04:16 +00:00
eeh
3143adecfb Tell gcc that stores clobber "memory". Probably makes no difference since
they should not be used to access normal memory anyway.
2000-07-14 21:02:11 +00:00
eeh
41da794863 Make all the inline functions static. 2000-07-14 21:00:17 +00:00
eeh
7b6085ff22 Add support for 64-bit PIC and dynamic linking. 2000-07-14 20:59:07 +00:00
jeffs
1dfa0ec96d Use cpu_intr() definition from mips/cpu.h instead of local one. 2000-07-14 18:35:38 +00:00
thorpej
9d069ade37 Sprinkle some const. 2000-07-14 18:26:46 +00:00
oster
dc4b749234 Fix the status reporting for copybacks. Thanks to Hubert Feyrer for
reporting the problem.
2000-07-14 15:26:29 +00:00
pk
9de310aebe Use per-PBM control/status register addresses provided by the PROM.
Print version/implementation info.
2000-07-14 15:13:35 +00:00
pk
04fe9636ba Provide details on the `psy_csr' register. 2000-07-14 15:09:51 +00:00
pk
8258c0e780 Fix padding in struct pci_ctl. 2000-07-14 13:17:12 +00:00
pk
e5a9cce870 Cast physmem to u_int64_t before applying ctob(). 2000-07-14 13:15:44 +00:00
fvdl
9067306192 Don't use *(unsigned int *)data to get the signal number out; this will
fail on LP64-BE systems. Also, fix up the invalid signal number check.
2000-07-14 12:10:58 +00:00
is
d8205b6db1 Do a dummy read after writing through the memory access pipeline, to flush
it, before starting the command to install the multicast list.
(We did it right for writing data packets, but failed here.)
Without this, the last multicast address installed won't be made active.
2000-07-14 10:50:50 +00:00
pk
68edef1bf6 Back out previous for now; it requires a system wide prototype change. 2000-07-14 09:58:52 +00:00
matthias
2d699aa6ce Change some comment formatting. 2000-07-14 08:21:14 +00:00
matthias
0688add8e8 Take care of prototype changes for console probe and console getc. 2000-07-14 08:18:49 +00:00
jun
ceafcbd834 apply Kenji Aoyama <aoyama@nk.mcu.or.jp>'s patch
on port-hpcmips-ja@jp.netbsd.org Mon, 10 Jul 2000 21:21:47 +0900

FIX:
  Can't read CIS tuple chain:some TDK CF Flash memory card.
2000-07-14 08:02:12 +00:00
thorpej
b221909e32 Sprinkle some const. 2000-07-14 07:21:50 +00:00
thorpej
195bf5c09f - Fix the likely cause of the "ps(1) hangs machine" problem. Always
vslock the user pages for the data being copied out to userspace,
  so that we won't sleep while holding a lock in case we need to
  fault the pages in.
- Sprinkle some const and ANSI'ify some things while here.
2000-07-14 07:21:21 +00:00
thorpej
8fd9032b90 ANSI'ify. 2000-07-14 07:14:33 +00:00
thorpej
424346ba85 Const'ify string constants. 2000-07-14 07:14:03 +00:00
thorpej
ba40fcada3 Sprinkle in some const. 2000-07-14 07:12:47 +00:00
tsubai
500013914e Make timebase frequency value adjustable. 2000-07-14 05:53:31 +00:00
tv
69e557a91c Add _XOPEN_SOURCE protections. The need for these is questionable, advised
by kleink about the E* predefined namespace; we'll look into that.

Also add ENOTSUP from SUSv2 as an alias for EOPNOTSUPP.  It's used by the
SUSv2 pthreads interface, has the same meaning, and pthreads does not use
EOPNOTSUPP.
2000-07-14 00:52:02 +00:00
pk
c32ffb8447 Make physmem' an unsigned int', so it can properly represent large memory
configurations.
2000-07-14 00:02:35 +00:00
jdolecek
5942ac860b switch to sys/conf/newvers_stand.sh for generating vers.c 2000-07-13 22:25:14 +00:00
jdolecek
9c15bcabda switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
2000-07-13 22:18:12 +00:00
jdolecek
f6330c6500 switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
add a hack to ${PROG} target so that symlinks machine, pmax, mips are
  created properly even when building on NetBSD/pmax 1.4.1
2000-07-13 22:18:08 +00:00
jdolecek
432831b01b add couple of flags which can be used to avoid generating some of the
information.
Put standard TNF copyright in, since this file no longer uses the old code.
2000-07-13 22:04:44 +00:00
msaitoh
1fa850b0ef config file for Dreamcast 2000-07-13 18:11:53 +00:00
soren
e527d66d55 Fix mem_no. Pointed out by cgd. 2000-07-13 18:10:38 +00:00
msaitoh
e633c4ca18 don't initialize BSC when BSC is already initialized (e.g. Dreamcast) 2000-07-13 18:02:10 +00:00
cgd
ca051b5fb3 fix some obvious paste errors in 'uk' cdev inits 2000-07-13 17:40:34 +00:00
thorpej
75159452f1 Sync w/ kern_time.c and sys_generic.c 2000-07-13 17:39:03 +00:00
thorpej
f9ba0345f1 XXX Use of hzto() return value needs to be double-checked here. 2000-07-13 17:35:03 +00:00
thorpej
c55e09bd44 Add a comment about the hzto() return value. 2000-07-13 17:32:06 +00:00
thorpej
c0c8481a2a New hzto() function from FreeBSD and Artur Grabowski <art@stacken.kth.se>.
Stops sleeps from returning early (by up to a clock tick), and return 0
ticks for timeouts that should happen now or in the past.

Returning 0 is different from the legacy hzto() interface, and callers
need to check for it.
2000-07-13 17:06:15 +00:00
pk
9da8631e2b printf() format for 64-bit integers tf_pc' and tf_npc'. 2000-07-13 16:44:03 +00:00
simonb
b10a1b69be Add a KERN_CONSDEV sysctl that returns cn_tab->cn_dev (if cn_tab is not
NULL).
2000-07-13 14:26:43 +00:00
itojun
20964b0c23 fatal bug fix from kame (rtentry refcnt goes negative if we play with IPv6
address/routing table too much).

in6_ifloop_request()
  not to request rtrequest to return an rtentry except for the ADD
  operation, in order to avoid misdecreasing the refcnt (which might
  cause leak of rtentry)
2000-07-13 09:56:20 +00:00
mjacob
c9f691d778 Correct omissions inadvertantly introduced when the non-debug
version (macro) was updated in exec.h.
2000-07-13 09:34:23 +00:00
jeffs
ef9531850e Add comment that overriding the sysctl defines in machine/cpu.h
breaks userland binary compatiabiltiy between mips ports.  Move
check down so common values are always defined here.
2000-07-13 07:37:11 +00:00
mrg
c0f74e1bda remove memreg.h. 2000-07-13 06:30:16 +00:00
mrg
22820972ac remove vaddrs.h 2000-07-13 06:25:55 +00:00
mrg
81ec8bef47 remove old (bogus) comment. 2000-07-13 06:23:07 +00:00
thorpej
3eedcb3009 Whitespace police. 2000-07-13 05:47:39 +00:00
mrg
d5a1bec37e bump some system values. 2000-07-13 05:40:51 +00:00
itojun
f5211e847a remove m_pulldown statistics code. it is highly experimental and belong
to kame tree only (not for *bsd).
2000-07-13 05:34:21 +00:00
matt
cb551c438d Reflect the new reality. 2000-07-13 03:18:22 +00:00
matt
841f05f1b2 Use <machine/asm.h> 2000-07-13 03:17:21 +00:00
matt
20b3698aee Include libkern.h 2000-07-13 03:13:40 +00:00
matt
98ffc615b2 Use <machine/asm.h>. (e.g. prepare for ELF) 2000-07-13 03:13:05 +00:00
matt
b4c1bfd1f3 modify load_file to load at relative vms'a as specified in the phdr's. 2000-07-13 02:35:25 +00:00
matt
84bbae583c remove a debugging printf. 2000-07-13 02:33:36 +00:00
thorpej
ccb90e6fe9 When select(2)/poll(2) is awakened by a collision, recalculate the
timeout value for tsleep().  From Artur Grabowski <art@stacken.kth.se>.
2000-07-13 01:32:33 +00:00
matt
81ce10aa1f Extend the vmcmd stuff a bit. Add a flags field and define
VMCMD_BASE & VMCMD_RELATIVE.  This allows one to add vmcmds
which are relative to previous entries.  This is needed for
loading the VAX ld.elf_so
2000-07-13 01:24:04 +00:00
soren
c675def443 Update comment. 2000-07-12 23:14:09 +00:00
thorpej
5cae63e123 NetBSD -> __NetBSD__ in an #ifdef, and nuke sc_bpf; there's one in
the ifnet already.
2000-07-12 23:02:38 +00:00
thorpej
1a82fc879b Regen. 2000-07-12 22:59:54 +00:00
thorpej
16a4fd2bff Add DEC DE422 Ethernet. 2000-07-12 22:59:23 +00:00
thorpej
c0708e9ff1 Clean up bios_reg a little, and add support for accessing
the byte variants of the registers (e.g. %ah, %al, etc.).
2000-07-12 22:58:12 +00:00
jdolecek
b46e691b98 make bootprog_* const (pointed by Simon Burge) 2000-07-12 22:19:57 +00:00
pk
7e8f67ad97 No need to fetch the psycho's own registers as thet are already passed
down from the parent bus.  Also account for the difference in `reg'
properties in psycho vs sabre chips.
2000-07-12 21:49:44 +00:00
thorpej
b2a5b02fc9 Fix a couple of LP64 problems (long -> int32_t). 2000-07-12 21:15:33 +00:00
pk
f56554a578 If there is no "interrupt-map" property on the ebus node, assume the
child "interrupt" properties are already in a format suitable for
the parent bus.
2000-07-12 21:07:36 +00:00
jdolecek
c8f528ad5e switch to MI newvers_stand.sh version info generator 2000-07-12 21:05:35 +00:00
thorpej
1204c1faaf Oops, treat 2100A_A500 just like 2100_A500 in every place necessary. 2000-07-12 21:02:14 +00:00
jdolecek
aee8c6a2e9 new MI bootblock versioning helper for generating vers.c,
intended to replace all the various port's stand/*/newvers.sh scripts
architectures will be switched to this gradually as tested
2000-07-12 20:57:42 +00:00
thorpej
3182af4432 - Add Jensen support/devices.
- Add commented-out Sable/Lynx support/devices.
- Switch from `ncr' to `siop' by default.
- Add some missing `scsibus' configs to INSTALL.
2000-07-12 20:54:38 +00:00
thorpej
249773b538 Deal with another odd need of the Sable/Lynx systems, which need to
have an ISA chipset present before the PCI-EISA bridge has been
attached (because the STDIO module has an ISA DMA-using device,
the floppy controller, connected to it).
2000-07-12 20:50:00 +00:00
thorpej
a66c3e663c Code to support the DEC 2000/300 (DECpc AXP 150, a.k.a. "Jensen")
systems.  Thanks to Gyenes Istvan for the rounds of testing.
2000-07-12 20:36:07 +00:00
thorpej
55c41121ff Change from ncr' to siop' by default. 2000-07-12 20:27:25 +00:00
thorpej
42c89508c0 Uncomment the `fdc at sableio' lines. 2000-07-12 20:20:54 +00:00
eeh
1f45545899 Add UltraSPARC III specific flag bit. Currently ignored. 2000-07-11 21:55:11 +00:00
msaitoh
dc6054c8b0 add OBJCOPY?=objcopy 2000-07-11 18:47:09 +00:00
msaitoh
dafe13f724 callout()->callout_reset() 2000-07-11 18:46:22 +00:00
nathanw
dd44125396 Remove unused variable. 2000-07-11 16:08:15 +00:00
onoe
6c4d97da13 Indicate WEP capability to association request when WEP is enabled.
Without this fix, some (IEEE802.11 conformant) APs will send data to this
station without using WEP.
2000-07-11 12:54:00 +00:00
jeffs
f6812b853b Only define machdep sysctls if CPU_MAXID is not defined by machine/cpu.h.
This lets mips ports have additional machdep sysctl.  Define CPUISMIPS3
for MIPS1+MIPS2 as cpu_arch >= 3 to support mips4.  Add cpu_intr()
prototype so this is defined in one place.
2000-07-11 06:34:57 +00:00
jeffs
6b28794054 Add support for 3 QED special2 opcodes. 2000-07-11 06:27:58 +00:00
jeffs
54a85cb3af For 64b clean 32b compilation, do not bother setting SX And KX.
The current code does not maintain these in SR, and they are not
needed by 32b kernel code for mips3/4 instructions.
2000-07-11 06:26:08 +00:00
kleink
a5eeea36d4 Add back a failure return statement in check_header() which I accidently
deleted in rev. 1.46; pointed out by Chris Demetriou.
2000-07-11 06:23:38 +00:00
nisimura
4f051180a0 - Use PMAD-BA name for device match logic. It's not a real TURBOchannel
device and the id string is not found in option ROM string, but
  ULTRIX/OSF1 call it so anyway.
- Squash IOASIC DMA buffer allocation into device attach() sequence.
2000-07-11 04:10:25 +00:00
soren
77e30d85bf Oops. 2000-07-11 01:15:47 +00:00
soren
e3c19eafd0 Update comment. 2000-07-11 01:02:44 +00:00
jeffs
dcbf69bf94 Update mips3_locore_vec cache functions for mips3_L1TwoWayCache. Add cast
for clean compilation with _MIPS_BSD_API_LP32_64CLEAN set.
2000-07-10 23:21:16 +00:00
jdolecek
f7d523ebb6 make buildable with -Wall -Werror 2000-07-10 22:48:25 +00:00
jdolecek
b3c2dd691c make compilable with -Wall -Werror 2000-07-10 22:01:16 +00:00
jdolecek
42c88111e1 explicitly specify main() return type (make buildable with
-Wall -Werror)
2000-07-10 21:30:31 +00:00
jeffs
010c198b37 In setregs() flush sigreturn trampoline code from the d (MIPS3) and i cache.
Tested on geocast RM5231 platform.  This fixes a race in
regress/sys/kern/sigtramp.  Some other ports do the same thing.
2000-07-10 21:12:13 +00:00
jdolecek
27a5ba9e0a use <sys/exec_aout.h> instead of <a.out.h> - this is supposed
to be standalone after all
2000-07-10 20:36:15 +00:00
jdolecek
7e272173bd no need to include <a.out.h> here 2000-07-10 20:33:49 +00:00
eeh
f10d7699fc Break into debugger by typing `+++++', 2000-07-10 20:24:23 +00:00
ad
b71bddab49 Regen. 2000-07-10 16:32:07 +00:00
uch
e8ebb2a377 use mips3 cache op.
invalidate -> write-back invalidate
(although NetBSD/hpcmips run on write-through mode.)
suggested by cgd.
2000-07-10 16:23:18 +00:00
ad
5a5452c95d Add ICP Vortex RAID controllers. 2000-07-10 16:14:02 +00:00
onoe
b99e56173c do not allow non-priviledged user to change nwid via ifconfig. 2000-07-10 14:36:17 +00:00
mrg
0de5b6e260 these don't need <uvm/uvm_extern.h> at all, actually. 2000-07-10 13:54:54 +00:00
mrg
5b2b68bb7a fix a cast for sparc64. 2000-07-10 13:37:00 +00:00
onoe
c2ed037f55 move associated/synced/no-recent-beacons messages to IFF_DEBUG. 2000-07-10 12:32:53 +00:00
ragge
c71d0f69c6 Forgot a debug printf. 2000-07-10 10:45:21 +00:00
ragge
5ae755e1bf Save registers for eventually later usage.
Use REI to clear pipes after code copy.
2000-07-10 10:42:27 +00:00
ragge
baec928850 NODESIZE -> BI_NODESIZE. 2000-07-10 10:40:38 +00:00
ragge
ed83213bf2 Add support for VAX 6000 + VAX 8000. Tweak console routines.
Create a fake RPB if either netbooted (on machine without RPB) or
loaded from console storage (without VMB intervention).
2000-07-10 10:38:23 +00:00
ragge
175e6ad859 Add code that allows the boot blocks to be loaded by VMB.EXE, and
also have optional MTPR printf available.
2000-07-10 09:55:36 +00:00
itojun
ab492849bc implement net.inet.icmp.errppslimit.
make default value for net.inet.icmp.erratelimit to 0, as < 10ms value
does not do the right thing.
2000-07-10 09:31:29 +00:00
ragge
8658157274 Nexus vector number is 0x14-0x17, not 14-17! Fortunately, 3 wrong did
one right. Pointed out by Kenn Humborg (kenn@linux.ie).
2000-07-10 09:14:32 +00:00
eeh
7403ef3d00 Need to include <sys/exec_elf.h> to make things happy. So much for adding
dead code.
2000-07-10 01:15:17 +00:00
eeh
048f1387db Function signature for bus_intr_establish() changed. 2000-07-10 01:11:14 +00:00
eeh
3acffdb4a5 Update TODO list item #7. 2000-07-10 00:50:22 +00:00
eeh
1cfb5e6456 Grab and use the memory model info from the flags in the ELF header. 2000-07-09 22:39:17 +00:00
jhawk
469c88cc11 Clarify that the RX5C47X requires writes to the PCI_LEGACY to
disable and not PCI_BCR_INTR; this is what rev 1.9 did under
the label of "Maintenance."
2000-07-09 22:06:02 +00:00
eeh
ec71379542 Use TSO memory model for 32-bit userland. 2000-07-09 22:02:32 +00:00
eeh
e5cd515b89 Upgrate interrupt handling:
1) use interrupt vectors for specific zs chips rather than polling
	   all of them.

	2) use softintr_schedule() and schedule it for a particular device
	   rather than poll all devices.
2000-07-09 21:58:43 +00:00
jhawk
e6e9cc5c41 Move legacy pcic-mode disabling code from pccbb_chipinit() to
pccbbattach(). This is necessary as pccbb_chipinit() is deferred, and
may not run until after the pcic is already attached.

Now pcics are properly disabled on Sony VAIO, f'rinstance.
2000-07-09 21:58:30 +00:00
eeh
f43ab74a43 Shuffle around some fields to waste less space on LP64. 2000-07-09 21:55:24 +00:00
pk
406e0f779f Add a `device class' interrupt level argument (from machine/intr.h)
to bus_interrupt_establish().

It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.
2000-07-09 20:57:41 +00:00
pk
2a57393a0f Re-arrange headers; drop <machine/cpu.h>. 2000-07-09 20:38:34 +00:00
jdolecek
230b3462ea uncomment part which has been accidentaly commented out in last commit 2000-07-09 14:16:02 +00:00
jhawk
84fe4f536c Comment police. s/DIAGNOSTICS/DIAGNOSTIC/ 2000-07-09 14:13:04 +00:00