Commit Graph

52600 Commits

Author SHA1 Message Date
jmcneill 13498a6196 Note addition of esa driver. 2002-01-06 16:06:36 +00:00
jmcneill 244caf0f16 Import driver for the ESS Allegro-1 / Maestro-3 based PCI Audio Accelerators. 2002-01-06 16:06:14 +00:00
augustss 4fee2664e3 Change copyright somewhat. (These are not TNF copyright templates so I
removed the advertising clause.)
2002-01-06 15:41:00 +00:00
jmcneill 58d1fe0d04 Add missing definition of STATUSBIT_STEREO. 2002-01-06 15:37:08 +00:00
augustss 9a0fd5e477 Part of the ESS Allegro-1 & Maestro3 driver. 2002-01-06 15:17:28 +00:00
martin cd66b662e5 Slight stylistic cleanup, no functional change. 2002-01-06 13:26:46 +00:00
takemura 8f5ef79d0f Added _hpcmips_bd_mem_alloc_range, which was written by Katsuomi Hamajima. 2002-01-06 12:39:55 +00:00
takemura b62dd2ee45 Set interrupt mask on Vrc4173 ICU. 2002-01-06 07:01:20 +00:00
jmcneill a17eec36aa Add radio support to bktr. 2002-01-06 02:47:36 +00:00
jmcneill ab29ea6d60 Add radio attachment to bktr. 2002-01-06 02:45:52 +00:00
jmcneill 1eb3eee47c Add basic support for the radio(4) interface. 2002-01-06 02:42:45 +00:00
dbj 0ac4681659 add support for kgdb over zs 2002-01-06 00:35:10 +00:00
dbj d5738f5104 add support for the `D' kgdb detach command
add comment about minimum requirement for KGDB_BUFLEN
2002-01-05 22:57:38 +00:00
chris e3a3a9f56f Make some of the arm32 files build with LOOSE_PROTOTYPES not set in the makefile. Turned up a few mismatched functions. Note that this isn't all of the arm32 files. Aim will be to get arm32 kernels built with LOOSE_PROTOTYPES not set. 2002-01-05 22:41:46 +00:00
jhawk d77edb248a Print negative SIMM operands correctly; previously, negative numbers
were bogus.
2002-01-05 22:07:26 +00:00
deberg 2d6f0a12d0 add public domain license for stubs 2002-01-05 20:29:38 +00:00
jhawk a0dca6bb1d Remove gratuitous ", " after the last opcode for SIMM and UIMM opcodes. 2002-01-05 20:22:52 +00:00
jhawk c7996c4a47 Print addresses symbolicly using the new ddb helper function, db_symstr().
This disassembler still needs a fair chunk of work.
2002-01-05 20:21:37 +00:00
explorer a40b01901f revert changes I made a long time ago. This should undo the changes which are causing problems on some non-x86 platforms. I'll probsably redo some of these changes, but after the next release branch. 2002-01-05 20:10:53 +00:00
jhawk 73c2346377 Add db_symstr(), a parallel interface to db_printsym() that
writes to a string rather than outputs to the supplied printer.
This is convenient for disassemblers that are structured to
build a long string and print it later.

Perhaps db_printsym() should be changed to use this interface...
2002-01-05 20:09:52 +00:00
thorpej ce4f05c0a3 Fix LP64 printf format problem. 2002-01-05 19:26:44 +00:00
dbj 86e773e9fd change apparent typo of MS_SFILES to MD_SFILES
This fixes some dependency problems with locore.S
2002-01-05 17:58:48 +00:00
chris 826b7655cf include <arm/conf.h> for prototypes.
Correct args to mmopen and mmclose.
Add RCSID line.
2002-01-05 17:02:22 +00:00
junyoung 83ad3c8a91 Regen. 2002-01-05 16:36:59 +00:00
junyoung 7f0a4dd3c9 Remove Mach64 B that conflicts with Mach64 GP. 2002-01-05 16:35:52 +00:00
takemura d0d31a9efc DoCoMo SigmationII support (Experimental)
You must turn on HPCMIPS_L1CACHE_DISABLE option.
2002-01-05 06:45:31 +00:00
takemura cea2181363 Recompile for DoCoMo SigmarionII with eVC 3.0 and H/PC Pro 2.11 SDK. 2002-01-05 06:00:22 +00:00
takemura a42a77efaf If two or more vrisab matches platform id, attach most specific one. 2002-01-05 05:09:15 +00:00
uch cead686281 fix memory size calcuration bug. 2002-01-05 04:47:30 +00:00
jhawk 605db0bb09 ddb(9) 2002-01-05 01:48:10 +00:00
augustss e75edd40ae Initialize _ca struct right. 2002-01-05 01:30:01 +00:00
thorpej 6e17c402e6 Add -ffreestanding to CFLAGS. Remove the GCC 2.8 check around
-Wno-main (always include -Wno-main).
2002-01-05 01:22:21 +00:00
martin a9309d4f18 Ooops, forgot to commit this file when doing the great if_spppsubr.c
rotottil. Thanks to Launey Thomas for pointing this out.
2002-01-05 00:54:07 +00:00
chris b51b9e9e63 Update with radio, cir and irframe. also add block device for ld. Update other tables in file as appropriate. 2002-01-05 00:51:30 +00:00
chris 9b812a6774 Update mem device to bring it into line with a change in version 1.32 of i386/mem.c. Appears that we may move uio twice.
Original i386 log message:
Optimize the case of writing to /dev/zero, and clean up the
surrounding code a bit.  Partly suggested by gwr.

I think this needs to be applied to arm26 as well.
2002-01-05 00:46:33 +00:00
takemura 92f7bd9399 Deleted verbose error message in probe routine to probe silently. 2002-01-05 00:40:38 +00:00
augustss b915c78113 Regen. 2002-01-05 00:16:42 +00:00
briggs e984bd475c Initialize pba_intrswiz and pba_intrtag before configuring PCI bus. 2002-01-04 22:39:47 +00:00
briggs b89eed2156 If we're attaching UART2, then use UART2 in failure-case panic()s. 2002-01-04 21:18:59 +00:00
augustss 942fe5df1d Uncomment udsbr (it works). 2002-01-04 21:04:42 +00:00
augustss 0bb5b26936 Add a bunch of PCI-wireless PCMCIA adapters. They are probably all based
on a PLX chip.  (For which we have no driver yet.)
2002-01-04 18:26:20 +00:00
ws 95ea6d63ce Make this work with only a keyboard attached to ps2 port.
(Maybe even works with only a mouse attached, but I cannot test this.)
Should fix PR 10306 (& 15093).
2002-01-04 17:11:55 +00:00
toshii 4e09455de8 Make jornada720 serial port work when it isn't used as a console. 2002-01-04 16:36:41 +00:00
tsutsui 32eba8afae Fix an uninitialized variable found by new toolchain. 2002-01-04 16:30:02 +00:00
kanaoka 450887c407 Add support for "D-Link DFE-690TXD 10/100".
by kern/15100: From: John Nemeth <jnemeth@access.victoria.bc.ca>
2002-01-04 15:24:24 +00:00
kanaoka 8f88b8c44e Regen. 2002-01-04 15:23:33 +00:00
kanaoka 4cdb84fe68 Add product "D-Link DFE-690TXD 10/100".
by kern/15100: From: John Nemeth <jnemeth@access.victoria.bc.ca>
2002-01-04 15:22:41 +00:00
takemura 01b846e28e Renamed sg2com -> com_hpcio. Now it seems to be working on SigmarionII. 2002-01-04 14:11:50 +00:00
martin 99772f59c4 Move net/if_sppp.h to net/if_spppvar.h, create a new net/if_sppp.h
containing the userland visible thinks (i.e. ioctl definitions).

Remove all (both) old ioctls, as they had a brain dead API and made keeping
binary compatibility more or less impossible.

Replace by several new ioctls. While there, remove any arbitrary limits
(resulting from the old, broken ioctls) and allow any length of names
and passwords.
2002-01-04 12:21:24 +00:00
takemura eef721771a Modify only K0 bits and save other bits. (HPCMIPS_L1CACHE_DISABLE) 2002-01-04 09:26:39 +00:00
chs 2776bd066f add the entry for layer_getpages() to the VOP tables of the
layered file systems that need it.
2002-01-04 07:19:33 +00:00
thorpej 14164755e0 Switch ELF emulations to ELF core files. 2002-01-04 06:50:59 +00:00
thorpej 21df9c4a6e Switch ELF emulations to ELF core files (except for netbsd32 and svr4-32). 2002-01-04 06:47:46 +00:00
mrg 3ccb704762 add a vnddetach: it just free()s the vnd_softc. useful for LKM. 2002-01-04 06:31:08 +00:00
deberg 4700ae8e79 netsmb device node 2002-01-04 02:59:54 +00:00
deberg 83a9e0488b sync w/ existing headers 2002-01-04 02:57:51 +00:00
deberg 2268929539 cdev_netsmb_init() 2002-01-04 02:46:08 +00:00
deberg c4b309d7aa add netsmb malloc types 2002-01-04 02:45:33 +00:00
deberg 14615bb443 netsmb 2002-01-04 02:42:23 +00:00
deberg f3b1291f2e resolve conflicts 2002-01-04 02:39:37 +00:00
deberg 16208c1279 now that this is in freebsd, import vendor copy as base. 2002-01-04 02:24:57 +00:00
thorpej 0ae08645b5 Remove a debug message that should have gone away with the last
commit.
2002-01-03 22:43:05 +00:00
jdolecek 57b53bc9a8 The device close routine is called when _last_ descriptor to the
device file is closed, rather on every descriptor close. Instead of
getting the exclusive lock on open and releasing on close, get
the lock only when needed in sysmonioctl_envsys().
Fixes kern/14368 by Anthony Mallet. Okayed by Jason Thorpe.

While here, also inline sysmon_envsys_init() to sysmonopen_envsys(),
and g/c sysmonioctl_wdog() prototype.
2002-01-03 22:35:53 +00:00
augustss f854b2521f Add a DIAGNOSTIC check. From FreeBSD. 2002-01-03 22:20:45 +00:00
jhawk ac054a2787 Support
t/t	PID
on the powerpc. (remember to use 0tPID if pid is in decimal...)
2002-01-03 22:15:06 +00:00
augustss 501071c88f Correct the frequency calculation. 2002-01-03 21:52:26 +00:00
mjacob d9a0044d29 Implement REDUCED INTERRUPT OPERATION usage for FC cards- this allows the
firmware to delay completion of commands so that it can attempt to batch
a bunch of completions at once- either returning 16 bit handles in mailbox
registers, or in a resposne queue entry that has a whole wad of 16 bit handles.

Distinguish between 2300 and 2312 chipsets- if only because the revisions
on the chips have different meanings.

Add more instrumentation plus ISP_GET_STATS and ISP_CLR_STATS ioctls.
Run up the maximum number of response queue entities we'll look at
per interrupt.

If we haven't set HBA role yet, always return success from isp_fc_runstate.
2002-01-03 21:45:06 +00:00
augustss f1ee77f0c3 Add USTIR_DEBUG. 2002-01-03 18:57:36 +00:00
augustss 51b2c397c3 Add ustir. 2002-01-03 18:56:40 +00:00
augustss eb62bf638c Add the ustir driver, for SigmaTel STIr4200 USB/IrDA Bridge.
Written by David Sainty <David.Sainty@dtsp.co.nz>.
2002-01-03 18:54:31 +00:00
augustss d083e37f0b Add \n in attach messages. 2002-01-03 18:13:19 +00:00
mrg 9191aacdb4 regen 2002-01-03 15:30:08 +00:00
mrg 5d231c5624 ooops, socket() and socketpair() need args now. 2002-01-03 15:28:43 +00:00
mrg fa38881ffa fix error in previous; pointed out by andrew brown. 2002-01-03 15:28:13 +00:00
shin a3df8955eb remove redundant option 2002-01-03 11:28:12 +00:00
shin 2eb7728600 ignore romboot and romboot.bin 2002-01-03 11:27:48 +00:00
shin d270437597 change max kernel size from 3MB to 6MB. 2002-01-03 11:23:29 +00:00
shin 238556cca6 fix typo. 2002-01-03 11:22:17 +00:00
mrg 3f49c27162 clean up 2002-01-03 06:43:23 +00:00
thorpej 43b6b4ca49 Need ibm561.c for TGA. 2002-01-03 05:35:31 +00:00
rafal e444b1434a Regen (added Rainbow Technologies & Rainbow's CryptoSwift 200). 2002-01-03 05:27:39 +00:00
rafal cee4ea6496 Add Rainbow Technologies vendor ID & Rainbow CryptoSwift 200 PKI accelerator
(CS200/PCI).
2002-01-03 05:25:48 +00:00
mbw a506aacc6d tv@netbsd says that the desired behavior for macppc is for de to be default
for DEC-based chips, and to have tlp available for tulip clones.  The change
in GENERIC is such that TLP_MATCH options are commented out (allowing de to
attach to DEC-based chips), and change in is INSTALL such that de is present
and TLP_MATCH options are commented out.

The addition of de in INSTALL increases its compressed size by about 17 KB.

Primarily the goal is to have INSTALL and GENERIC use the same device.
This will fix PR port-macppc/10779.

It has been tested with the 1.5.3_ALPHA GENERIC and INSTALL kernels on my
PowerMacintosh 7300 with a 21140A (now de, previously tlp) and a
Lite-On 82C115 (tlp).

de0 at pci0 dev 15 function 0
de0: interrupting at irq 25
de0: Asante 21140A [10-100Mb/s] pass 2.2
de0: address 00:00:94:a4:03:35
de0: enabling 10baseT port

tlp0 at pci0 dev 14 function 0: Lite-On 82C115 Ethernet, pass 2.5
tlp0: interrupting at irq 24
tlp0: Ethernet address 00:00:94:b6:16:ef
tlp0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX
2002-01-03 04:34:21 +00:00
thorpej ac0867dd40 Add BITFIELDTYPE lint comments where we need to use u_int64_t bitfields. 2002-01-03 04:28:31 +00:00
mrg 5d06ed3c94 move sparc specific ioctl handling (fb & openprom) into arch/sparc64. 2002-01-03 02:29:39 +00:00
thorpej 4eef3278dc Add casts to the __lint__ version of va_arg() to avoid dereferencing
non-pointer arguments in cases like: foo = *va_arg(ap, int *);
2002-01-03 02:05:42 +00:00
thorpej bd95f88c7d Define __BIT_TYPES_DEFINED__. 2002-01-03 01:58:58 +00:00
thorpej 8873902707 Make gcc 3.1's preprocessor happy with the __lint__ va_end(). 2002-01-03 01:56:52 +00:00
thorpej 7efc72e894 Only use __builtin_va_list if __GNUC__. 2002-01-03 01:37:20 +00:00
mrg d6328a8778 fix previous: actually remove the COMPAT_SUNOS code, not just #if 0 it. 2002-01-03 01:16:02 +00:00
aymeric 6b2ea61c0c When we jump to the absolute address of the next instruction, we have to
export the label we use for that purpose, otherwise, that smart gas will
change it to a relative jump, which does basically nothing.

I can finally boot NetBSD/amiga ELF. (Yippee!)

While there, test if we are a 68851 before we invalidate the TLB,
instead of doing it between the TLB flush and the data cache flush.
2002-01-03 01:13:35 +00:00
mrg af640de164 move the COMPAT_SUNOS SO_BROADCAST hack out of uipc_socket.c into the
compat/sunos code.  besides being cleaner this allows the sunos LKM
to properly work without any special kernel hacks.
2002-01-03 00:59:00 +00:00
augustss e4552bb657 Add a comment. 2002-01-02 22:44:44 +00:00
mcr d64a9cddad moved ARMADA specific CARDBUS options to CARDBUS
added cardbus/pci bridge to CARDBUS config.
	removed ARMADA config (as promised)
2002-01-02 22:32:16 +00:00
augustss 68d53cd694 Fix typo in last commit. 2002-01-02 20:58:12 +00:00
augustss f7839315fb Some more usb_proc_ptr changes.
Also some minor stylistic changes.
2002-01-02 20:55:58 +00:00
dbj 920e8af571 add some error checks in adb_reinit, enabled with ADB_DEBUG and adb_debug 2002-01-02 20:30:45 +00:00
dbj 32eabd8148 if pm_adb_op times out waiting for an interrupt, attempt to take
an interrupt anyway, just in case.  Otherwise, report the timout condition.
This works around a problem in my ibook if a key is pressed after boot
and before adb is configured, such as when booting with -d.
2002-01-02 20:28:43 +00:00
dbj 9c182d4af3 defer attaching akbd as console until after it has
been initialized in akbdattach
2002-01-02 20:21:12 +00:00
ad 215ddc9ef7 Set sc_framesize to a reasonable value early on so that DEBUG code
doesn't choke before we discern the real value.
2002-01-02 19:04:17 +00:00
augustss cee8ba6db9 Get rid of a few stray __P(). 2002-01-02 17:20:09 +00:00
augustss b99cd0e9f5 More whitespace fixes from FreeBSD. 2002-01-02 16:20:14 +00:00
thorpej 9841593fe5 Fix a typo. 2002-01-02 14:48:09 +00:00
thorpej db5e19a211 Need <sys/systm.h> for ffs() prototype (noticed by gcc 3.1). 2002-01-02 14:47:15 +00:00
uch 91fd1d80b7 VR41XX/TX3922 common kernel. 2002-01-02 13:13:18 +00:00
uch 58e763000e fix typo in comment. 2002-01-02 13:11:02 +00:00
uch 78e38d9e62 fix bootstrap stack violation. 2002-01-02 13:08:35 +00:00
uch f96ef6a094 fix memory probe sequence.
fix bootstrap stack violation. (code are moved to machdep.c)
2002-01-02 13:08:05 +00:00
uch 474928fb8f when bootinfo has no framebuffer information, don't attach bicons. 2002-01-02 12:57:49 +00:00
uch 51c202eb5e s/TOOLDIR/EETOOLDIR/ 2002-01-02 12:49:43 +00:00
uch 71505e004a sync with uhidev change. 2002-01-02 12:49:10 +00:00
augustss c41bbdcea2 Change the probe code. You cannot unmap bus space and then use it. 2002-01-02 12:42:23 +00:00
uch b8467dcaa6 int128_t and u_int128_t are wrapped in defined(_KERNEL) && defined(MIPS3_5900) 2002-01-02 12:38:46 +00:00
uch e4130f57f1 _intr_suspend and _intr_resume declarations are moved to intr.h. 2002-01-02 12:36:20 +00:00
uch e71de3f668 R5900 short-loop bug. 2002-01-02 12:34:27 +00:00
augustss c572876ecb Fix another descriptor parsing bug. Thanks to Tero Kivinen for
patiently supplying me with debug output.
2002-01-02 11:10:50 +00:00
takemura bd59ae1f5c BUGFIX: sg2com isn't attached as a console device if it is a console. 2002-01-02 10:09:35 +00:00
mrg e674bb7dc8 make this hostprog friendly. 2002-01-02 05:21:34 +00:00
mrg dc34af64a7 - add a -i path-to-installboot option
- also recognise $INSTALLBOOT from the environment
- update Usage & share the option list with Help.
2002-01-02 04:13:42 +00:00
augustss d7f7000641 Add missing newline. 2002-01-02 04:10:02 +00:00
augustss 53d829ae4c Use the right I/O addresses for the ISA radio cards. 2002-01-02 04:08:41 +00:00
augustss 71dd2d73a6 Fix typos. 2002-01-02 03:47:35 +00:00
augustss 1d26d9e5fd Move debug define.
Remove some cruft.
Update with some stuff from Warner Losh's driver.
2002-01-02 03:44:56 +00:00
augustss e814956b5d Add udsbr. 2002-01-02 03:26:54 +00:00
augustss 323b1e432f Add (commented out) udsbr. 2002-01-02 03:23:07 +00:00
augustss f63f2e4dfe Add udsbr(4), a D-Link DSB-R100 FM radio (untested). 2002-01-02 03:21:36 +00:00
augustss 040f1e8c05 Support detach. 2002-01-02 02:44:02 +00:00
chs e9a82c88ce in uvm_fault_unwire_locked(), if we find that a pmap entry is missing,
just skip that page.  this situation can arise legitimately when a file
with a wired mapping is truncated so that a wired page is no longer
part of the file.
2002-01-02 01:10:36 +00:00
chs 9451559ef4 pmap_page_protect(VM_PROT_NONE) must remove all mappings in the PV list,
even if they are wired.  we need to be able to remove all mappings to
pages that are being freed due to (eg.) file truncation.
2002-01-02 00:51:33 +00:00
augustss 369f1d1c80 Add radio names. 2002-01-01 23:12:19 +00:00
chs a70dcbb2fd merge in a bit from the MP branch to cut down on LOCKDEBUG spew:
Use optimistic locking in pmap_create() so that we don't lock against
ourself if allocating the page directory causes pmap_growkernel() to
be called.
2002-01-01 22:52:11 +00:00
chs a7ec5b4144 redo part of the last commit. 2002-01-01 22:18:39 +00:00
augustss 18f7211eb9 Make mr pci attachment conform. 2002-01-01 22:15:43 +00:00
augustss 32d039b3bf Add (commented out) radio card support. From OpenBSD. 2002-01-01 21:54:21 +00:00
augustss 1c06f6a40f Add support for radio cards. Written by Maxim Tsyplakov and Vladimir Popov
for OpenBSD, from where it was imported.
2002-01-01 21:51:38 +00:00
augustss cdf2a29382 Regen. 2002-01-01 21:47:34 +00:00
augustss ec0a570a33 Add a radio card. 2002-01-01 21:47:08 +00:00
hpeyerl 19d2ddde8d Add entry for PC Weasel/PCI. 2002-01-01 16:52:23 +00:00
hpeyerl 739775cbbb Add stanza for PC Weasel/PCI. 2002-01-01 16:49:05 +00:00
hpeyerl e59c0dedfb Watchdog back-end driver for PC Weasel/PCI serial console and remote
management board.  Written by hpeyerl@realweasel.com and
thorpej@wasabisystems.com.  Requires Weasel firmware v2.04 and later.
2002-01-01 16:48:34 +00:00
skrll e25a471c87 Fix typo in comment. 2002-01-01 16:24:33 +00:00
augustss 371722006a Add a missing subclass definition. 2002-01-01 14:23:37 +00:00
perry dc0e791802 Happy New Year! 2002-01-01 09:17:28 +00:00
perry 259130c9d4 boost up default times for when clocks are insane (as we do every few years.) 2002-01-01 09:14:14 +00:00
thorpej d2453f69b1 Remove the call to abort(). We don't pull in a prototype for it,
and there's no sane way to do so.
2002-01-01 01:58:01 +00:00
chs 43973be0c5 introduce a new UVM fault type, VM_FAULT_WIREMAX. this is different
from VM_FAULT_WIRE in that when the pages being wired are faulted in,
the simulated fault is at the maximum protection allowed for the mapping
instead of the current protection.  use this in uvm_map_pageable{,_all}()
to fix the problem where writing via ptrace() to shared libraries that
are also mapped with wired mappings in another process causes a
diagnostic panic when the wired mapping is removed.

this is a really obscure problem so it deserves some more explanation.
ptrace() writing to another process ends up down in uvm_map_extract(),
which for MAP_PRIVATE mappings (such as shared libraries) will cause
the amap to be copied or created.  then the amap is made shared
(ie. the AMAP_SHARED flag is set) between the kernel and the ptrace()d
process so that the kernel can modify pages in the amap and have the
ptrace()d process see the changes.  then when the page being modified
is actually faulted on, the object pages (from the shared library vnode)
is copied to a new anon page and inserted into the shared amap.
to make all the processes sharing the amap actually see the new anon
page instead of the vnode page that was there before, we need to
invalidate all the pmap-level mappings of the vnode page in the pmaps
of the processes sharing the amap, but we don't have a good way of
doing this.  the amap doesn't keep track of the vm_maps which map it.
so all we can do at this point is to remove all the mappings of the
page with pmap_page_protect(), but this has the unfortunate side-effect
of removing wired mappings as well.  removing wired mappings with
pmap_page_protect() is a legitimate operation, it can happen when a file
with a wired mapping is truncated.  so the pmap has no way of knowing
whether a request to remove a wired mapping is normal or when it's due to
this weird situation.  so the pmap has to remove the weird mapping.
the process being ptrace()d goes away and life continues.  then,
much later when we go to unwire or remove the wired vm_map mapping,
we discover that the pmap mapping has been removed when it should
still be there, and we panic.

so where did we go wrong?  the problem is that we don't have any way
to update just the pmap mappings that need to be updated in this
scenario.  we could invent a mechanism to do this, but that is much
more complicated than this change and it doesn't seem like the right
way to go in the long run either.

the real underlying problem here is that wired pmap mappings just
aren't a good concept.  one of the original properties of the pmap
design was supposed to be that all the information in the pmap could
be thrown away at any time and the VM system could regenerate it all
through fault processing, but wired pmap mappings don't allow that.
a better design for UVM would not require wired pmap mappings,
and Chuck C. and I are talking about this, but it won't be done
anytime soon, so this change will do for now.

this change has the effect of causing MAP_PRIVATE mappings to be
copied to anonymous memory when they are mlock()d, so that uvm_fault()
doesn't need to copy these pages later when called from ptrace(), thus
avoiding the call to pmap_page_protect() and the panic that results
from this when the mlock()d region is unlocked or freed.  note that
this change doesn't help the case where the wired mapping is MAP_SHARED.

discussed at great length with Chuck Cranor.
fixes PRs 10363, 12554, 12604, 13041, 13487, 14580 and 14853.
2001-12-31 22:34:39 +00:00
thorpej 6ca57419d1 Labels must be followed by statements. 2001-12-31 22:07:58 +00:00
thorpej f9df4d877e Avoid an "unmamed fields" warning (gcc 3.1). 2001-12-31 22:06:47 +00:00
thorpej 17da611b51 Fix a "pointers are not permitted as case values" gcc 3.1 warning. 2001-12-31 21:55:46 +00:00
thorpej fdb5b56e5f Do not compare an integer to NULL. 2001-12-31 21:37:22 +00:00
thorpej aedf82267c Move the declaration of an enum to avoid an "unnamed field not allowed"
warning in gcc 3.1.
2001-12-31 21:30:01 +00:00
chs 23c75a9a98 in uvm_map_clean(), add PGO_CLEANIT to the flags passed to an object's pager.
we need to make sure that vnode pages are written to disk at least once,
otherwise processes could gain access to whatever data was previously stored
in disk blocks which are freshly allocated to a file.
2001-12-31 20:34:01 +00:00
thorpej 9e94d2a9fe When compiling for userland, need <stdlib.h> for abort() prototype
(noticed by gcc 3.1).
2001-12-31 20:20:28 +00:00
chs ef57a67ca1 fix locking for loaning. in general we should be looking at the page's
uobject and uanon pointers rather than at the PQ_ANON flag to determine
which lock to hold, since PQ_ANON can be clear even when the anon's lock
is the one which we should hold (if the page was loaned from an object
and then freed by the object).
2001-12-31 19:21:36 +00:00
dbj 0057f73f87 save and restore sprg[0-3] when calling openfirmware
this fixes calling OF_finddevice() with invalid devices,
and as a result fixes booting with -d.
Apparently openfirmware expects persistence of sprg2 and/or sprg3
I suspect this is used when handling exceptions
2001-12-31 18:35:26 +00:00
dbj 98cbceb382 handle have_address=TRUE 2001-12-31 18:29:07 +00:00
matt 873f33f78e Make the same change to icache/dcache size calculation as was done to ecache.
Fixes PR 12844.
2001-12-31 16:26:10 +00:00
augustss cec9735688 Delay bus enumeration a little in case the controller is a companion
controller.  This way the main controller can gain ownership of the port
before enumeration starts.
2001-12-31 15:55:51 +00:00
augustss d8e5a1dc07 Dump enpoint number instead of endpoint index. 2001-12-31 15:54:27 +00:00
lukem 1f5f54d132 add <sys/systm.h> (for libkern.h) now that -ffree-standing is in effect 2001-12-31 15:01:51 +00:00
uwe 0207013726 Now that sbus_bus_mmap was converted to do the proper address
translation, get rid of sbus_bus_addr.  Since sbus_bus_addr is used by
framebuffer drivers that are shared with sparc64 we cannot just change
the callers to use BUS_ADDR() w/out coordinating the change with
sparc64 that uses a different calling protocol, so stub our
sbus_bus_addr to just return BUS_ADDR.
2001-12-31 15:00:58 +00:00
augustss 88da42185c Don't try to deactivate child if we have no bus yet. 2001-12-31 12:52:50 +00:00
augustss 0498c38d3d Whitespace fixes (from FreeBSD). 2001-12-31 12:37:13 +00:00
augustss 637dc4b2fe Change xfer abort to wait for the softintr to run. 2001-12-31 12:20:35 +00:00
augustss 096f451f64 Change abort slightly.
Change debug output.
2001-12-31 12:16:57 +00:00
augustss f1397b7e37 Dump more of the command. 2001-12-31 12:15:46 +00:00
augustss 152efb1a0e Make a typedef for struct proc to make portingeasier. 2001-12-31 12:15:21 +00:00
augustss d14e739b92 Don't allow setting the configuration when an endpoint is open. From
FreeBSD.
2001-12-31 11:56:37 +00:00
augustss 0a3269865e Only clear stall if endpoint is stalled. From FreeBSD. 2001-12-31 11:54:06 +00:00
mrg e5fc1d934a clarify usage. idea from david obrien. 2001-12-31 09:44:04 +00:00
matt 0bc218f05c When determining ecache size, try using ecache-size. if it doesn't exist,
fallback to the old method (ecache-nlines * ecache-linesize).
2001-12-31 07:30:46 +00:00
chs b4224d4d38 fix locking in nfs_getpages(). 2001-12-31 07:16:47 +00:00
chs 4d069e8517 in uvm_vnp_setsize(), wait for any i/o in progress on pages that we free. 2001-12-31 07:00:15 +00:00
chs 03ea276e84 in genfs_gop_write(), actually set the B_ASYNC flag on buffers that we're
not going to wait for.  this doesn't matter for real devices since we call
VOP_STRATEGY() directly, but NFS uses this flag to decide whether or not
to hand the buffer off to an nfsiod thread.
2001-12-31 06:44:58 +00:00
chs 64b0c2adbb in genfs_putpages(), we must wait for any pending write i/os to complete
if the putpages request is synchronous.
2001-12-31 06:40:08 +00:00
jhawk a21d1ea7ac Convenience variables (workXX) don't work, so don't document them. 2001-12-31 00:35:21 +00:00
dbj f03e8813e0 allow ddb access to lr, ctr, cr and xer registers when not on PPC_IBM4XX 2001-12-30 20:53:04 +00:00
dbj 98d1a18067 remove unused variable in kgdb_acc 2001-12-30 20:50:53 +00:00
augustss ff21b251a0 Make sure we don't have any pending softintrs when entering polling mode.
Thanks to Darrin for finding and fixing this problem when using USB
keyboards in DDB.
2001-12-30 20:26:59 +00:00
augustss 776b0e7851 A little more debug. 2001-12-30 19:37:43 +00:00
someya a0d9eb8746 add powerhook support to resume correctly, fix PR#13079. 2001-12-30 19:33:15 +00:00
augustss 70dea46276 Fix typo. 2001-12-30 19:22:28 +00:00
pk 5237c5fb99 In cpu_fork() set tf_npc as well in case a signal is taken in child_return()
which will cause the values of tf_pc and tf_npc set here in cpu_fork()
to be restored and used to return to user space from sigreturn() eventually
(before that the tf_pc and tf_npc set in sendsig() will be used in
proc_trampoline()).

Also, the fork system call never uses the SYSCALL_G2RFLAG shortcut, so drop
the code handling that.
2001-12-30 18:52:54 +00:00
pk 76634d2635 Change interface between cpu_fork() and proc_trampoline() so that `tf_pc'
(instead of `tf_npc') contains the user-space return address. This ensures
entering the signal trampoline code correctly in case we take handled
signal during child_return().
2001-12-30 16:41:29 +00:00
lukem 95c845e4fc add -Os to COPTS after <bsd.prog.mk> is pulled in rather than adding
it in CFLAGS beforehand, as a user's mk.conf COPTS+=-O2 results in
boot files that are too large.
2001-12-30 16:32:29 +00:00
fvdl a833eaf1fe XXXX temporary measure: in the case of a softdep 'unmount pending error',
do not mark the filesystem clean, as this will mean that one or more
     files were likely not completely removed (will show up as unconnected
     in fsck). Prevents filesystems from being marked clean while they're
     not until this problem has been figured out.
2001-12-30 15:46:53 +00:00
wiz b5df8875da Uncomment uhidev, since other entries depend on it. 2001-12-30 14:49:08 +00:00
augustss dbd7c7b7bc Make uhidev change. 2001-12-30 13:28:13 +00:00
junyoung a6a57e7b6f Registers are of u_int8_t type. 2001-12-30 13:13:04 +00:00
takemura 936fd137e6 BUGFIX: It allocated only 44 bytes for hpcapm while the device needed
764 bytes.

it was really terrible.
2001-12-30 12:57:41 +00:00
ichiro 23d158a3e8 regen 2001-12-30 12:46:10 +00:00
ichiro 3276c42a93 add
TSB43AA22 OHCI IEEE 1394 Host Controller
2001-12-30 12:45:32 +00:00
augustss dd4b4280f7 Add new scanners to the table.
(The scanners don't actually have to work to be in the uscanner table,
this is how Linux does it and uscanner is just there because Linux has it.)
2001-12-30 11:13:22 +00:00
augustss fb4d205cd6 Regen. 2001-12-30 11:08:19 +00:00
augustss 095e2b87e3 Fix typo in last commit. 2001-12-30 11:01:44 +00:00
augustss bdbdfed4ec Add some missing files. 2001-12-30 11:01:24 +00:00
gehenna 7a22165e1c fix product ID 2001-12-30 05:12:36 +00:00
gehenna b48ed7ad6d regen 2001-12-30 05:11:29 +00:00
gehenna e9ab191fc3 Add some vendor/product IDs (from FreeBSD) 2001-12-30 05:09:50 +00:00
ichiro 2e72aee615 regen 2001-12-29 22:31:10 +00:00
ichiro 35012be445 add products
VT6305 OCHI IEEE 1394 Controller
VT3606 OCHI IEEE 1394 Controller
2001-12-29 22:30:33 +00:00
thorpej 2270cd2cb5 Add a case for x86_64. 2001-12-29 21:13:46 +00:00
augustss 5a31e4e8f8 Make the driver a little less talkative on errors. 2001-12-29 20:50:16 +00:00
augustss 3850573d96 Remove garbage. 2001-12-29 18:57:16 +00:00
augustss c19b7e5c1b Be more paranoid about input sizes. 2001-12-29 18:56:52 +00:00
augustss 5db54303c8 Reset global count value properly. 2001-12-29 18:56:20 +00:00
augustss 198e193c28 Don't clear global report values when reporting an item. 2001-12-29 17:48:29 +00:00
junyoung 0d2905f4fc - Add a structure needed for access to CRTC registers.
- Add definitions for misc output register.
- Add defintions for the number of registers.
2001-12-29 17:44:35 +00:00
junyoung dde1e51a31 Add functions needed for access to CRTC registers. 2001-12-29 17:40:35 +00:00
junyoung ea3be41a59 KNF. 2001-12-29 17:06:50 +00:00
augustss 93f9b36aad Add a debug message. 2001-12-29 16:15:42 +00:00
augustss 496dc72437 Add some definitions from the USB OTG (On The Go) spec. 2001-12-29 15:44:11 +00:00
pooka 065a38a17f regen 2001-12-29 15:01:23 +00:00
pooka e42e0310b4 Socket Communications Low-Power CF WLAN 2001-12-29 15:00:45 +00:00
augustss 9cef2a3db7 Add an XXX comment. 2001-12-29 14:25:47 +00:00
augustss 01eafb2239 Add some IrDA names. 2001-12-29 14:24:54 +00:00
augustss 9dd24c8a92 Regen. 2001-12-29 14:08:02 +00:00
augustss 5f958aabb7 Fix a typo. 2001-12-29 14:07:45 +00:00
augustss 8164bd8bae Move some USB device quirks to the umass_quirk table. 2001-12-29 14:06:18 +00:00
augustss b965a7d6eb Remove some quirk entries that are handled in umass_quirk now. 2001-12-29 13:55:02 +00:00
augustss 414b3c7766 Always set the PQUIRK_ONLYBIG quirk for SCSI devices. 2001-12-29 13:52:21 +00:00
augustss 276b009425 Introduce a field, busquirks, in the umass quirk table that is passed
directly to the quirk field for the bus.
2001-12-29 13:46:23 +00:00
ichiro a926e1d151 done - Make fwohci detach correctly (for cardbus/etc type interfaces) 2001-12-29 12:28:05 +00:00
ichiro fc50aac093 implement fwohci detach routine. 2001-12-29 12:26:31 +00:00
augustss e6bd479028 Add the new names for uhidev. 2001-12-29 10:53:13 +00:00
augustss 59473972d2 Only pull in HID processing if a driver needs it. 2001-12-29 10:50:55 +00:00
takemura 4ff1a4256d Commented out the line which install interrupt handler because sg2com
interrupt port is unknown and it doesn't work at all.
2001-12-29 09:26:23 +00:00
ichiro 63a6896a6c regen 2001-12-29 08:32:06 +00:00
ichiro 78efe121bf add product
IBM Smart Capture Card II
2001-12-29 08:31:01 +00:00
thorpej 4adc65cb8e We also need the i386 header files; descend into ../i386/include to
install them.
2001-12-29 05:32:59 +00:00
takemura 37728140db Added debugging output indicating details of interrupt register setting. 2001-12-29 05:15:32 +00:00
takemura dce583bd28 Added sg2com(SigmarionII sertial). 2001-12-29 04:27:33 +00:00
augustss 750a5959b8 Add some missing scan code translations. Docs from Microsoft via Perry Metzger. 2001-12-29 02:53:41 +00:00
thorpej 989d1769bc Add a linker script for the NetBSD/x86_64 kernel; provides _etext
in the place that we want for the kernel (after all read-only sections).
2001-12-29 02:24:06 +00:00
christos 49b8e36112 Clean up the C_ and S_ constants. We don't really need two sets of them.
Also make the interrupt handler for older 3com cards look like the xl one.
I.e. don't ack the interrupt latch bit before checking if it is set.
At the same time, introduce constants for the watched interrupts, so that
we don't copy them all over the place.
2001-12-28 20:35:46 +00:00
augustss b53ea42bf0 Update for new uhidev device attachment. 2001-12-28 17:37:01 +00:00
augustss 935b0481a9 Introduce an extra driver level for HID devices, uhidev. This uhidev driver
attaches to the hub, and HID drivers (ums, ukbd, and uhid) attach to
uhidev.  The reason for this change is that some HID devices report multiple
components (like a keyboard and a mouse) using the same interface, but with
different report identifiers.  The report identifier can be specified with
a locator for the HID drivers.
Furthermore, change the ukbd driver to handle other formats than the boot
protocol.
2001-12-28 17:32:36 +00:00
itohy 818f391658 Move this figure to more suitable place:
http://www.netbsd.org/Documentation/Hardware/Chips/C-Media/cmi8738-mixer.fig
2001-12-28 14:02:48 +00:00
martin b506d6e135 Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
thorpej 23ed6be403 Always provide alloca() as __builtin_alloca(). 2001-12-28 07:37:06 +00:00
thorpej 2db4da1742 Fix some register constraints; specifically, the "port" operand,
if not an immediate, must be in a 16-bit register.
2001-12-28 06:42:40 +00:00
thorpej 670bf31890 Fix the definition of ELF32_MACHDEP_ENDIANNESS. 2001-12-28 06:35:19 +00:00
shin b7e3f7d6e3 R4000/R4400 always detects virtual alias as if
primary cache size is 32KB. Actual primary cache size
is ignored wrt VCED/VCEI.
2001-12-28 04:06:06 +00:00
shin f15b256063 check if curproc is invalid, and do panic.
otherwise, we can't useful backtrace.
Ex. address error in interrupt handler.
2001-12-28 02:13:14 +00:00
minoura da0ba70058 Remove some error messages to reduce the size. 2001-12-28 02:12:55 +00:00
toshii f8c1bea196 Allow jornada720 LCD and keyboard to be used as a boot console. 2001-12-28 01:41:53 +00:00
augustss f690fc0845 More DIAGNOSTIC. 2001-12-28 00:21:26 +00:00
augustss 3bf49b584d Add some more #defines. 2001-12-28 00:20:24 +00:00
shin ae12ee76a0 add #ifdef DEBUG around VCED_count etc. 2001-12-27 22:55:46 +00:00
nathanw 5dbef63175 Use PQUIRK_ONLYBIG for all Olympus cameras, not just the C-1.
Use PQUIRK_ONLYBIG for the PQI TravelFlash.
2001-12-27 18:57:46 +00:00