Commit Graph

56159 Commits

Author SHA1 Message Date
eeh 4992f2adc9 Make this more GENERIC. 2002-05-30 15:22:16 +00:00
eeh 6230497489 Add cardbus support in case someone has a PCI->cardbus card. 2002-05-30 15:21:24 +00:00
drochner 34c0afbf8d implement a check whether a BAR is present at all at a given configuration
space address and use it where the mappings of the VGA card are registered
before descenting too deep into "memory" type specific code
(pci_mem_find() gets noisy if it doesn't like the register)
2002-05-30 12:06:43 +00:00
augustss 1cad75290c Remove extra lines.
Fix some comments.
2002-05-30 09:08:51 +00:00
augustss 1331023854 Add some files for the Artesyn PMPPC board. This is a PowerPC based
Mezzanine PCI board.
NOTE: this is not yet all the files needed for the port.
2002-05-30 08:51:06 +00:00
itojun 52d0ba15c8 reduce unneeded #ifdef 2002-05-30 05:51:21 +00:00
manu 0d78304995 Improved support for polling semaphores: when a polling semaphore is unblocked,
poll will return true until the semaphore is blocked again, but before the
semaphore is blocked, poll returns false.

We do this by maintaining another queue of "released" processes in
struct irix_usema_rec. Unblocking causes the waiting process record to be
moved to the released queue, and poll check for the process in this released
queue.
2002-05-30 05:16:10 +00:00
itojun 87fc46bce9 improve nd6_setmtu(), to warn too-small MTU on SIOCSIFMTU. sync w/kame 2002-05-30 05:06:28 +00:00
itojun a3e4fbdf14 use M_READONLY where possible. minor cleanup/sync with kame. 2002-05-30 04:39:15 +00:00
greg 5004b7788d Initial addition of TrackPoint support on the IBM WorkPad z50's DSIU port. 2002-05-30 01:44:59 +00:00
fvdl cec79c16b4 Include sys/types.h or u_int* 2002-05-30 00:36:42 +00:00
christos c7f67f1479 make this compile again. 2002-05-29 19:50:48 +00:00
drochner f452b252a8 Add another allocator to uvm_pglistalloc() which is used in the case where
no alignment / boundary / nsegs restrictions apply.
This one doesn't insist in a contigous range, and it honours the "waitok"
flag, thus succeeds in situations which were hopeless with the existing one.

(A solution which searches for a minimum number of contiguous ranges using
some best-fit or so algorithm would be expensive to implement; I believe the
"either-or" done here does reflect the current use by bus_dma quite well.)

Now agp memory allocation is robust for me. (tested on i810)
2002-05-29 19:20:11 +00:00
christos ab57e25224 add 2 more CCP defines. 2002-05-29 19:11:05 +00:00
tv fd2474f0f1 Make sure DBSYM is defined if not overridden by USETOOLS=yes. 2002-05-29 16:12:54 +00:00
bouyer ec89a92254 When testing for a void region, use PCI_MAPREG_MEM_SIZE() for 32bit memaddr.
If the 32bit mask read is 0, wmask will be 0xffffffff00000000, and
PCI_MAPREG_MEM64_SIZE() won't make this 0.
2002-05-29 14:57:36 +00:00
itojun cfc6c918de missing bzero 2002-05-29 13:56:14 +00:00
itojun 050c5b5b7c receivedra field is gone 2002-05-29 13:52:56 +00:00
enami 9e1deeab34 Add missing pageq lock while uvm_pagefree() is called (either directly
or indirectly).  Reviewed by chuq.
2002-05-29 11:04:39 +00:00
itojun 913276174b "receivedra" field name is obsolete. 2002-05-29 09:32:01 +00:00
martin 2a09e1c999 Nuke all useages of polled kbd controller commands when not attaching or
probing.

Make sure to not initialize the protocol more than once, see rev. 1.11 of
the old psm_intelli.c driver (this caused hangs when starting X).

Unify the "ignore garbage" behaviour (which we already did if PMS_STANDARD
protocol was used), the old intelli-driver did the same and on some scroll
mice a stream of garbage is emitted shortly after reset.
2002-05-29 09:30:35 +00:00
itojun 14dafa8f6a avoid unneeded malloc/free. sync w/kame 2002-05-29 09:05:18 +00:00
itojun 5c1df51d53 attach nd_ifinfo structure into if_afdata.
split IPv6 link MTU (advertised by RA) from real link MTU.
sync with kame
2002-05-29 07:53:39 +00:00
itojun 9ea1dc0d36 correct rmx_mtu value after PMTUD entry timeout (should be set to 0) 2002-05-29 06:55:48 +00:00
itojun c0e2bb0509 need libkern.h for bootloaders 2002-05-29 06:27:15 +00:00
itojun ede265fffd move per-interface ip6/icmp6 stat to ifnet->if_afdata. sync w/kame 2002-05-29 02:58:28 +00:00
itojun a15e664f71 rm obsolete comment 2002-05-29 01:43:25 +00:00
itojun eee0912fd7 don't panic on invalid CONF_ACK from remote (in general, issueing panic
on remote input is bad practice)
2002-05-29 01:38:46 +00:00
itojun bbc84065b6 use arc4random 2002-05-29 01:33:45 +00:00
wiz 96e3e9d9ab Minimize uses of quad_t. Also, use C99 types more thoroughly.
Approved by kleink.
2002-05-28 23:36:30 +00:00
fvdl b16e023917 Enable syscall/sysret insn use. They have the potential to lead to
a faster system call path (but currently won't be much faster).
Signal trampoline to be converted.

Rename eflags -> rflags where appropriate.
2002-05-28 23:11:38 +00:00
fvdl 8b277a3d68 Add definition for CPU-private data (in a remapped page in the data
segment). Somewhat of a kludge to be able to switch stack pointers
in in the syscall entry point without clobering a register, avoiding
the terror of 'swapgs'.
2002-05-28 23:09:36 +00:00
fvdl cfe60d7a95 Shuffle order of selectors around to appease syscall/sysret (bah). 2002-05-28 23:07:35 +00:00
fvdl 92f44882b8 rdmsr/wrmsr don't have 64 bit versions, fix the inline functions. 2002-05-28 23:06:28 +00:00
bjh21 07db2878a8 Use ${FGEN} rather than fgen. 2002-05-28 21:56:54 +00:00
manu f4e81e0cfb - the signal trampoline address is now copied during a fork(). This avoids
a SIGSEGV when sigaction(2) is used before a fork(2) and a signal is received
in the child.
- we now nearly correctly emulate PR_TERMCHILD in prctl(2). (the perfect
emulation would not send a SIGHUP if the parent is killed)
2002-05-28 21:15:41 +00:00
nathanw 800bc79f00 Descend into sun68k for sun3 builds. 2002-05-28 21:11:04 +00:00
nathanw 4de762cb8f Remove in favor of sun68k/stand. 2002-05-28 21:06:04 +00:00
nathanw 4e25c99464 Remove in favor of sun68k/stand 2002-05-28 21:05:23 +00:00
nathanw 29f364076e Don't descend into stand; it is being deprecated in favor of sun68k/stand. 2002-05-28 21:02:03 +00:00
tron e10511905f Set initial transmit drain threshold to 1504 to avoid the problem
described in PR kern/16070. Change approved by Jason Thorpe.

XXX We'll should try to find a better adaptive scheme for the next
    NetBSD release.
2002-05-28 20:20:49 +00:00
bjh21 23f7ce3522 .WAIT after building libbug and libsa, and before building anything that uses
them.
2002-05-28 19:34:15 +00:00
bjh21 0d79902e3f Use ${PRINTOBJDIR} rather that rolling our own.
This prevents parallel builds passing "--- xxx ---" (which make prints to
indicate it's building target "xxx") to ld.
2002-05-28 19:32:42 +00:00
bjh21 446be066e9 Use #if 0 for commenting out multiple lines, rather than dodgily-nested
comments (about which GCC warns).
2002-05-28 19:09:38 +00:00
christos c5e4481063 regen 2002-05-28 17:46:24 +00:00
christos 6ce1fe0564 add action tec 2002-05-28 17:46:10 +00:00
augustss 9660362aab Another fix in the FreeBSD part. 2002-05-28 17:45:17 +00:00
tron 0f15ab8163 Remove senceless benchmark loop for i8xx hardware random generator
attach code. The throughput was neither calculated nor displayed.
2002-05-28 17:25:43 +00:00
tron 94d3fd0f89 Add hardware random generator support for Intel i845, i850 and i860
chipsets.
2002-05-28 17:23:07 +00:00
tron 30e983a763 Regen from "pcidevs". 2002-05-28 17:08:57 +00:00
tron e3e9ac1e64 Add entries for Intel i850 and i860 chipsets. 2002-05-28 17:08:19 +00:00
scottr fe6c8f5812 Mark kernel text read-only, except for the low memory variables used by
the Macintosh ToolBox. Originally committed in rev 1.273.
2002-05-28 17:00:16 +00:00
scottr f55aa726f8 Add entries for remaining PowerBook Duo models originally
committed in rev 1.273.
2002-05-28 16:57:02 +00:00
scottr be52d514c6 Back out unintended changes from previous commit. 2002-05-28 16:53:24 +00:00
drochner eafdf8c95d add translations for two ASC/ASCQs which occur before
the DVD player's region code is dealt with
2002-05-28 16:40:03 +00:00
bjh21 40d80d8c16 Add support for LIBSA_NO_FS_CLOSE, LIBSA_NO_FS_WRITE, LIBSA_NO_FS_SEEK and
LIBSA_NO_TWIDDLE.
LIBSA_NO_FS_SYMLINK is irrelevant here, and LIBSA_FS_SINGLECOMPONENT would
be pointless.
2002-05-28 14:38:55 +00:00
bjh21 a20462dc6e Implement LIBSA_NO_FS_CLOSE, LIBSA_NO_FS_WRITE and LIBSA_NO_FS_SEEK.
LIBSA_NO_FS_SYMLINK and LIBSA_FS_SINGLECOMPONENT are irrelevant here.
2002-05-28 14:30:53 +00:00
bjh21 43079a573b KNF. 2002-05-28 14:26:01 +00:00
augustss 0a15c2acd4 Change DMAADDR macro slightly. 2002-05-28 12:42:38 +00:00
itojun 2e926ba699 no need for libkern.h 2002-05-28 12:21:22 +00:00
itojun 3be26b82ef use arc4random 2002-05-28 11:19:17 +00:00
itojun 4121fa09fc correct in*_pcbrtentry. check cached value correctly. 2002-05-28 11:10:52 +00:00
itojun b9f810de55 use arc4random() on tcp iss generation 2002-05-28 10:17:27 +00:00
itojun d208a22daa use arc4random() where possible.
XXX is it necessary to do microtime() on tcp syn cache?
2002-05-28 10:11:49 +00:00
simonb 2fa75d0170 Need to include <machine/intr.h> here with old native toolchain; not sure
what the difference was between this and newer gcc/binutils.
2002-05-28 10:11:26 +00:00
itojun 0ac289dea9 have arc4random(9). 2002-05-28 10:09:24 +00:00
itojun 7410ea60ca in in*_pcbrtentry(), check if route is still valid (RTF_UP),
and address family is still valid.
2002-05-28 10:07:51 +00:00
haya de6fbd495c Bugfix: add character device #62 in chrtoblktbl[]. 2002-05-28 10:01:23 +00:00
itojun 10c5914022 limit number of IPv6 fragments (not the fragment queue size) to
fight against lots-of-frags DoS attacks.  sync w/kame
2002-05-28 03:04:05 +00:00
lukem 9d8552460f add puc, and com & lpt at puc 2002-05-27 23:58:52 +00:00
lukem a0336432b3 add lpt_puc support (from files.i386) 2002-05-27 23:41:33 +00:00
bjh21 1d76b4db4b 1.4: get_page() abstracted. 2002-05-27 20:18:56 +00:00
bjh21 c489f6804b Add a function, get_page(), whose job is to find which logical page should
be used to load a given physical page.  At the moment, this just returns
the page's current logical mapping, but in future it might handle returning
bounce pages for physical pages which are in use, and copying to the correct
page just before loading the kernel.
2002-05-27 20:17:11 +00:00
ragge bb2b3afc9a Read correct Ethernet address on VXT2000. 2002-05-27 17:32:01 +00:00
gson 910011f658 When audio recording was paused or dropping samples, the "outp" of the
recording ring buffer could overrun the end of the buffer.  When
recording resumed, memory after the end of the buffer would be read,
sometimes causing a system crash.
2002-05-27 17:13:14 +00:00
ragge 97b3433515 Use correct ethernet address address on VXT2000. 2002-05-27 16:54:18 +00:00
drochner f5b492e186 use CD session offset from the disklabel, if present 2002-05-27 16:44:37 +00:00
drochner 259cb04e6f put multisession offset code into a separate function and initialize
the p_cdsession field of partition 'a' in the default disklabel
2002-05-27 16:42:30 +00:00
drochner 3963e95b9b turn p_fsize into a union { p_fsize, p_cdsession }; the latter member
is used to store the session offset on multi-session CDs
2002-05-27 16:36:37 +00:00
itojun ae5a9e211d re-scan all ifnet after domaininit() for if_afdata initialization. 2002-05-27 13:46:45 +00:00
drochner 9936deaa92 regen 2002-05-27 08:52:36 +00:00
drochner 67d163e234 add one more of our own products 2002-05-27 08:52:13 +00:00
itojun e5aa199677 framework to add af-dependent data structure to struct ifnet.
as discussed at bsd-api-discuss.  sync w/kame
2002-05-27 02:53:49 +00:00
manu e8f2e051a3 - When requested a semamphore count, the userlands expects the kernel to
return the number of processes waiting on the semaphore. We now maintiain
a count of waiting processes.
- Blocked processes are unblocked "first in, first out". We now have a
queue of waiting processes on a asemaphores, so that we can wakeup the
first blocked process.

Problems:
- We now have a lot of dynamic memory allocation, it may be a bit slow.
- Nothing is SMP safe for now. We need to add locks.
- On close, we forget about a semaphore, which is incorrect. One process
  can close its fd attached on a semaphore, but other processes  would carry
  on using it. Since any process can join a shared arena, this is not an
  easy thing to solve.
- A lot of usema/usync functionnalities are still to be discovered.
2002-05-26 21:37:12 +00:00
jdolecek d02e4285f9 bump ramdisk size, 2M isn't enough 2002-05-26 18:13:56 +00:00
itojun 3e7ae517e0 path MTU discovery blackhole detection.
PR 12790 (sorry for not committing it for a long time)
2002-05-26 16:05:43 +00:00
tshiozak 94a6bb8164 add PLANEX GW-NS11H Wireless LAN PC Card. 2002-05-26 14:37:19 +00:00
tshiozak 7b488909a7 add PLANEX GW-NS11H Wireless LAN PC Card 2002-05-26 14:35:10 +00:00
jdolecek a14bf4ee89 update comments 2002-05-26 12:53:22 +00:00
jdolecek 2f8917ee1b regen (RCS Id fix) 2002-05-26 12:52:27 +00:00
jdolecek 64efb25dc0 remove space in generated NetBSD RCS Id 2002-05-26 12:51:55 +00:00
jdolecek b69489fb3b pregenerate grf_ultms.c, so that gspa isn't needed during kernel build 2002-05-26 12:47:41 +00:00
fvdl 5659e1960c Remove use of pcb_fs and pcb_gs. 2002-05-26 12:19:38 +00:00
fvdl f6d35976a9 Remove fs and gs fields. 2002-05-26 12:08:49 +00:00
bjh21 fb65355d04 Remove #ifdef NC stuff, syncing with iomd/todclock.c. 2002-05-26 12:07:55 +00:00
fvdl 1371b7fb28 Don't stuff fs and gs in the PCB, they need to be dealt with in
the trapframe.
2002-05-26 12:07:40 +00:00
simonb 178eb5321c Fix previous so that the constants are outside of the #ifdefs such that
they are actually compiled(!).
2002-05-26 07:37:08 +00:00
minoura 78d97e78f0 Clear done_head in the HCCA *before* acknoledging the interrupt.
Driver lost some completed transfers under heavy loads.
2002-05-26 03:10:02 +00:00
fvdl 66f94c684f Move the kernel to the upper 4G of virtual address space and use
-mcmodel=kernel.
2002-05-26 00:23:49 +00:00
fvdl 7e00cc50ec Add -Wno-format-zero-length, for forward compatibility with gcc 3.2.
Our in-tree gcc 2.95.3 accepts the flag as well.
2002-05-26 00:15:25 +00:00