Commit Graph

56903 Commits

Author SHA1 Message Date
thorpej 3b40046c9a Import the Intel ACPICA Unix 20020612 release. 2002-06-14 23:36:27 +00:00
itojun 43397e000b whitespace 2002-06-14 22:43:38 +00:00
itojun a7ec566073 #define CAPS_IS_CONTROL will make caps key a control key (with weird
LCD indicator).  From: "Nathan J. Williams" <nathanw@wasabisystems.com>
(#define name taken from arch/i386/isa/pccons.c)
2002-06-14 22:43:05 +00:00
manu 0e28620e0f Two forgotten files in last commit for get/setrlimit 2002-06-14 20:33:11 +00:00
eeh 863fc84f4d Provide the correct architecture for HW_MACHINE_ARCH so things like
"sysctl -p" can tell they are in 32-bit land.
2002-06-14 18:28:19 +00:00
eeh 923804f36a Fix hardware watchpoints and add an extract function so we can easily find
the physical addresses of things (to feed to the physical watchpoint).
2002-06-14 17:12:05 +00:00
thorpej 5b5608e8b2 Use M_IFMADDR instead of M_IPMADDR. From John Franklin, kern/16251. 2002-06-14 15:21:45 +00:00
thorpej 05c37016cb Map the device's memory space with BUS_SPACE_MAP_LINEAR, since we
need to be able to access it as such.

Fixes kern/17114.
2002-06-14 15:15:23 +00:00
itojun c1808f02bf cache pcb policy as much as possible. in fact, if policy is not
IPSEC_POLICY_IPSEC we don't need to compare spidx.  sync w/kame
2002-06-14 14:47:24 +00:00
itojun 813344bfbe remove redundant line 2002-06-14 14:17:55 +00:00
ragge e665b4e35e Must check B_PHYS, not b_proc, if it is DMA to userspace, otherwise the
machine will crash. This fixes a panic when a Unibus adapter runs out
of map registers (happens frequently), reported by Johnny Billquist.
2002-06-14 11:57:21 +00:00
wiz 51a583ff09 Make tabbing consistent. From Julio Merino in misc/17256. 2002-06-14 10:01:27 +00:00
ragge 631436bfb0 Add official machine numbers for PDP10 and PDP11. 2002-06-14 09:05:21 +00:00
itojun c3e57df04c discard 256 bytes of output every time we stir (not just when initializing) 2002-06-14 03:05:46 +00:00
eeh efad9de6ca NEVER CAST REFERENCE PARAMETERS!!!!! 2002-06-14 00:11:07 +00:00
bjh21 ae07cdce27 Change the entry pointer of the module from an offset to a branch instruction.
This allows us to *Load boot26 at 0x8000 and then use *Go to run it.
This might be useful because we can't currently set the RISC OS filetype
for files on CDs, so they all end up being 0xffd (Data), and *RMLoad only
works for files of type 0xffa (Module), so we need some other way of loading
boot26.
2002-06-13 22:30:22 +00:00
bjh21 b9af29fd4f Increase HIMEM to allow enough space for zlib's tables and 16 MB's worth of
page tables, so we can boot gzip'ed kernels on 16 MB machines.
2002-06-13 22:01:44 +00:00
gmcgarry a47cb57561 Fix for 64-bit event counters. Fixes PR17207. 2002-06-13 21:04:37 +00:00
gmcgarry 6c672d0196 Make this work with AUDIO_C_HANDLER. 2002-06-13 21:02:45 +00:00
gmcgarry 471fad1d4c Hasn't been used for years. 2002-06-13 20:57:03 +00:00
augustss b6c5332498 Add copyright notice (thanks itojun). 2002-06-13 16:48:34 +00:00
thorpej 8038dd2cbe Disable TCP Congestion Window Monitoring by default; there are
performance problems in the face of tinygrams.
2002-06-13 16:31:05 +00:00
itojun 9368c444df set IPv4 parameter to modern value.
- turn on path MTU discovery (previous: turned off)
- ICMPv4 redirect entry timeout = 600 sec (previous: never timeout)
2002-06-13 16:25:54 +00:00
augustss afdb0a8737 Treat IPL_AUDIO a little different. 2002-06-13 15:29:16 +00:00
augustss 6115bde4ab Add some comments. 2002-06-13 15:28:54 +00:00
augustss 74cfa48c7d Use consistent naming. 2002-06-13 15:27:23 +00:00
dsainty 4cfd804df5 Regen. 2002-06-13 11:16:11 +00:00
dsainty 5c6618951c Add 3com Bluetooth adapter 2002-06-13 11:11:08 +00:00
itojun 425b0d2350 typo 2002-06-13 05:12:12 +00:00
itojun 00f97b0202 drop too short IPv6 frame 2002-06-13 05:10:34 +00:00
itojun a8dde3fa57 free secpolicy on deepcopy failure 2002-06-13 05:10:13 +00:00
itojun bc880e4114 correect AF_INET6 handling 2002-06-13 05:09:52 +00:00
augustss ff306f407a Fix typo in probe code. 2002-06-12 23:33:56 +00:00
eeh bfc1e3973f Dynamically allocate the buffer we use for filesystem deblocking based on
the filesystem blocksize in the super block.  Allows us to read filesystems
with block sizes > 8KB.
2002-06-12 22:18:02 +00:00
manu 022bd85d32 When sproc is used to create a share group with shared memory, there is a
private area called PRDA that remains unshared. We implement this by using
different vmspace for each share group member, and keeping the memory
appings in sync on each mmap/munmap/mprotect/break...

We use irix_saddr_sync_vmcmd and irix_saddr_sync_syscall to apply a
vmcmd or a syscall to all share group member, this makes the job a bit
easier.

Also implements {get|set}rlimit{64}.
2002-06-12 20:33:20 +00:00
fvdl c7647a1294 Fix up the FP code some, and make it deliver XMM exceptions. Adapt
sigframe a bit.
2002-06-12 19:13:27 +00:00
itojun dc96111483 deep-copy pcb policy if it is an ipsec policy. assign ID field to all
SPD entries.  make it possible for racoon to grab SPD entry on pcb
(racoon side needs some changes).  sync w/kame
2002-06-12 17:56:45 +00:00
eeh 9984a8bbcc Fix some corner cases in bus_dmamap_load_mbuf().
From Takeshi Nakayama <tn@catvmics.ne.jp>
2002-06-12 17:06:15 +00:00
bouyer 6280502d5f Bump delay() between reset and IDENTIFY from 100 to 5000. Some ATAPI devices
wedge when talking to them too soon, and incorrectly react to WDC_RESET.
Close PR kern/17208 by Paul Goyette.
2002-06-12 09:55:47 +00:00
itojun cc8fe8c179 make function static 2002-06-12 03:46:16 +00:00
itojun bad1f500a7 remove unused functions 2002-06-12 03:37:14 +00:00
itojun 3489976392 do not copy policy-on-socket at all. avoid copying packet header value to
struct spindex.  should reduce memory usage per socket/pcb, and should speedup
ipsec processing.  sync w/kame
2002-06-12 01:47:34 +00:00
eeh c08cac5019 Use the correct bus handle to generate the handle for the streaming buffers. 2002-06-12 00:43:22 +00:00
eeh e98ab1d613 Fixes for the rtc clock on Netra X1 machines from PRs 15611 and 16816
by Takeshi Nakayama.
2002-06-11 23:33:27 +00:00
kleink dd6cccb3f2 Add a case label for the 603ev cache (identical to 603e). 2002-06-11 22:24:35 +00:00
eeh 715641d6a1 Do not truncate the kernel pmap physical address to an `int' before
sticking it in the context lookup table.  Fixes a booting issue on
Netra T1125s.
2002-06-11 21:10:03 +00:00
itojun fa53d749ff share policy-on-pcb for listening socket. sync w/kame
todo: share even more, avoid frequent updates of spidx
2002-06-11 19:39:59 +00:00
itojun 2533e1f81f avoid variable name confusion. sync w/kame 2002-06-11 17:26:52 +00:00
uwe 222181a0e0 Fix typo in nmi_sun{4,4c}, use correct register. 2002-06-11 11:37:01 +00:00
pooka fef2794715 s/splimp/splnet/ in comment 2002-06-11 11:03:55 +00:00
itojun 9b2ae3537c silence some of log(), as the codepath will be visited for IPv6-non-capable
interfaces too and can be annoying.  net.inet6.icmp6.nd6_debug will
re-enable them.
2002-06-11 07:28:05 +00:00
pooka dc325578c7 fix a few typos in comments 2002-06-11 06:00:57 +00:00
deberg bb245959f9 bus_space_mmap(), same as atari port. untested, as it is unused. 2002-06-11 05:17:30 +00:00
matt 91650be524 Fix 2 bugs with MSG_WAITALL. The first is to not block forever if one is
trying to MSG_PEEK for more than the socket can hold.  The second is that
before sleeping waiting for more data, upcall the protocol telling it you
have just received data so it can kick itself to re-fill the just drained
socket buffer.
2002-06-11 00:21:33 +00:00
ragge 8d6f662016 Don't try to connect a keyboard to serial line 0 if the serial console
is on line 0; it may destroy line settings.
2002-06-10 21:32:15 +00:00
ragge fa0b03a3ac Missed to check all possible non-graphics bits on VS2k, causing the
machine to crash during boot. Reported and debugged with help of
Valeriy E. Ushakov.
2002-06-10 20:52:11 +00:00
he a8c83879a2 In soreceive(), if any part of a received record has been freed,
and an error occurs, make sure the socket doesn't retain a partial
copy by dropping the rest of the record.

This would otherwise trigger a panic("receive 1a") under DIAGNOSTIC.

Fixes PR#16990, suggested fix adapted.

Reviewed by Matt Thomas.
2002-06-10 20:43:16 +00:00
drochner 92ade669c9 increase IP TTL for BOOTP/DHCP request packets to avoid dumb
routers dropping the packet
(seems to be a problem with Cisco and its "helper-address" feature;
a Cabletron SSR I tested with didn't have this problem)
2002-06-10 17:45:54 +00:00
ragge 5e40948dec Support for reading Ultrix disklabels. From the pmax port, fixed and tested
by Valeriy E. Ushakov.
2002-06-10 17:45:53 +00:00
itojun c9faadc40f return EPROTONOSUPPORT if unsupported protocol is specified 2002-06-10 17:40:26 +00:00
itojun 53b229d4cb don't abuse IFF_UP 2002-06-10 17:38:31 +00:00
itojun c0a05a111d raise output errcnt 2002-06-10 17:30:16 +00:00
itojun 2d509e83c4 ENETDOWN if outer ip address is not configured.
plug mbuf leak while here.
2002-06-10 17:12:22 +00:00
itojun ccdab26a23 don't use inner address configured by SIOCSIFADDR/DSTADDR
as outer addresses; now you need to configure outer address by
SIOCS*PHYADDR ("ifconfig tunnel").  as discussed on tech-net
2002-06-10 17:07:51 +00:00
someya f4076c7aff Make the yds driver work on big-endian systems. 2002-06-10 16:58:57 +00:00
itohy ece09443af s/XHOLE_VEC/XHOLD_VEC/ 2002-06-10 14:52:21 +00:00
fredette 4c4e0cb59a Added notes on hp700/hppa, tweaked sun68k description. 2002-06-10 14:25:41 +00:00
tron 4f9ae48b8f Include "sys/types.h" here to fix compilation problems in 3rd party
applications.
2002-06-10 10:31:48 +00:00
cjs a8056945a4 Recognise the VT8233A ATA100 controller and use Ultra-DMA mode 5 with it. 2002-06-10 08:41:11 +00:00
cjs d4dfe8676c Regenerate. 2002-06-10 08:38:27 +00:00
cjs 405914fc9b Add Viatech VT8233A PCI-ISA Bridge. 2002-06-10 08:30:29 +00:00
uwe 49444f80fe Fill delay slot in previous to match normal microtime. 2002-06-10 01:58:52 +00:00
ragge 400cbd0aad Must multiply the pte count with its size when copying ptes when the P1
region is expanded. Fixes bug reported by Matt Thomas on port-vax.
2002-06-09 21:57:08 +00:00
uwe 45f993a079 Do not use "std" in ms-IIep micortime, the argument is not guaranteed
to be double-word aligned and it is not when we are called from bpf.
Remove "should be able to std here" comment in generic microtime.
While here, simplify some asm mnemonics and fix a typo in comment.
2002-06-09 20:02:41 +00:00
itojun 2a8a7da29d style 2002-06-09 19:49:49 +00:00
matt 4cfae24f91 Add -ffreestanding and LIBC= to stand/boot/*/Makefile. Fix various
asm's to work with gcc-current.
2002-06-09 19:21:07 +00:00
itojun 7864ca478f deprecate IFF_LINK2, !IFF_LINK0 is enough.
no need to manipulate IFF_LINK1 with IFF_LINK0.
remove reference to greconfig(8).
2002-06-09 19:17:43 +00:00
itojun 4c4b38eb0b no need for if_addrlen be 4. From: Martin Husemann <martin@duskware.de> 2002-06-09 17:59:45 +00:00
itojun c284599930 make sure to bzero sockaddr_in 2002-06-09 17:32:54 +00:00
itojun 9c95390f4a style 2002-06-09 17:22:41 +00:00
itojun a8b0c39863 don't forget splx 2002-06-09 17:18:32 +00:00
itojun 04aa2a1c65 avoid code duplicate (route lookup) 2002-06-09 17:17:15 +00:00
itojun 1a5eede494 style 2002-06-09 17:13:31 +00:00
itojun 6f21655564 support SIOCSLIFPHYADDR, SIOCDIFPHYADDR and SIOCGLIFPHYADDR, so that
we can manipulate tunnel endpoint by ifconfig(8).
2002-06-09 17:10:09 +00:00
taca 3fff4029d4 Add support for VIA Technologies's VT8231 IDE Controller to ATA/100. 2002-06-09 16:52:26 +00:00
taca 800e08ba3b Regen. 2002-06-09 16:51:32 +00:00
taca 5a33c71fcc Add VIA Technologies's VT8231 IDE Controller. 2002-06-09 16:50:51 +00:00
chs ea4c4a989f allow read-only mounts even if we can't read the last fragment of the fs.
this enables one to recover data from a failing disk (where the read failure
is a hardware problem) while avoiding corrupting the fs further (in the case
where the read failure is due to a misconfiguration).
2002-06-09 16:46:49 +00:00
itojun f192b66b94 whitespace 2002-06-09 16:33:36 +00:00
tron 98568ec314 Add missing calls to bus_space_unmap(9) when the hardware RNG is not
detected, cannot be activated or doesn't work.
2002-06-09 15:02:25 +00:00
itojun b05ff066a7 whitespace cleanup 2002-06-09 14:43:10 +00:00
isaki df160ef3fc Divided 406 bytes disklabel area into 'nop' and 404 bytes area. 2002-06-09 12:17:48 +00:00
bjh21 9f3fed2b60 Synchronise MONITOR and MODES definitions with GENERIC. This allows my NC to
boot in a screen mode that looks sensible on its LCD monitor.
2002-06-09 11:53:23 +00:00
martin aed31ed511 Change default MTU to 1476 (same value that Cisco uses).
Do not limit the MTU when set by the admin with ifconfig, per discussion
on tech-net.

This fixes PR 16761 from Jasper Wallace.
2002-06-09 09:45:39 +00:00
itojun 39af55e317 enforce IPv4 link MTU for FDDI and ARCNET even in RTF_GATEWAY case.
PR 17151.
2002-06-09 05:09:26 +00:00
itojun a636441cdc reject "add" request if if_mtu is different. 2002-06-08 23:17:01 +00:00
itojun e55d3b6782 indent cleanup 2002-06-08 21:32:55 +00:00
itojun 7316bc595b KNF 2002-06-08 21:29:26 +00:00
itojun 2495e99fc7 gc 2002-06-08 21:28:18 +00:00
itojun 6d8d0d63d8 sync with latest KAME in6_ifaddr/prefix/default router manipulation.
behavior changes:
- two iocts used by ndp(8) are now obsolete (backward compat provided).
  use sysctl path instead.
- lo0 does not get ::1 automatically.  it will get ::1 when lo0 comes up.
2002-06-08 21:22:29 +00:00
itojun fc5800e3fd whitespace cleanup 2002-06-08 20:06:44 +00:00
martin 8d0aae90e8 Add support for ACTIONTEC wireless lan card, from jasper@pointless.net
in PR kern/17194.
2002-06-08 18:06:09 +00:00
martin cd8bd9c2e1 Regen (ACTIONTEC wireless lan card added) 2002-06-08 18:02:08 +00:00
martin e59eb100a6 Add ACTIONTEC wireless lan card. 2002-06-08 18:01:14 +00:00
bouyer 8305da0e8f Ops, use the proper setup_channel() function for promise adapters.
Using pdc202xx_setup_channel() for PDC20268 and newer is wrong, and will
cause trap trying to read from a non-existent register on some arches
(e.g. macppc).
pointed out by Makoto Fujiwara on port-macppc.
2002-06-08 17:54:59 +00:00
yamt 310e66f3c9 make an auto const variable static. 2002-06-08 17:10:02 +00:00
yamt 0f75af34c0 constify and make auto const variables static. 2002-06-08 17:07:53 +00:00
yamt 7d0fd357f6 make auto const variables static. 2002-06-08 16:51:38 +00:00
yamt 71f556f70f constify and make it static. 2002-06-08 16:44:14 +00:00
yamt a3da5d94f3 constify. 2002-06-08 16:34:06 +00:00
yamt 560a78f6da constify. 2002-06-08 16:20:24 +00:00
yamt 0015b85918 make an auto const variable static. 2002-06-08 16:08:54 +00:00
yamt 737ffe3619 make auto const variables static. 2002-06-08 16:03:55 +00:00
yamt fed3639fa8 make auto const variables static.
(and space->tab)
2002-06-08 16:02:02 +00:00
yamt d5fb44ee2c make an auto const variable static. 2002-06-08 15:58:47 +00:00
yamt 08c9504e97 make auto const variables static.
ok'ed by thorpej.
2002-06-08 15:50:59 +00:00
ragge e6d4f11739 Detection bug: If a packet is received while in the match() routine the stack
would be overwritten, so allocate memory for a full packet via malloc()
instead. Use correct buffer maxlen (must be 2 complemet). Bug reported
and helped to find by Roar Thronæs.
2002-06-08 12:28:37 +00:00
itojun f64f00cc3f need to protect if_attachdomain() too 2002-06-08 11:58:50 +00:00
itojun ad2c23cb75 protect dom_ifattach by splnet 2002-06-08 11:54:24 +00:00
itojun 2f88f76db1 in6_len2mask is a duplicate of in6_prefixlen2mask. unify. sync w/kame 2002-06-08 00:07:00 +00:00
itojun 9736fd7f05 on SIOCAIFADDR_IN6 check if sin6_len is sane. sync w/kame 2002-06-08 00:01:30 +00:00
itojun e4f39ff86f panic() if NULL is passed to ah_sumsiz_xx. suggested by sam leffler, sync w/kame 2002-06-07 23:42:41 +00:00
itojun 36f10d3196 some KNF 2002-06-07 22:08:41 +00:00
itojun acf7dffae4 some KNF 2002-06-07 22:07:38 +00:00
itojun 0026ddd6dd no need for offsetof() 2002-06-07 22:06:48 +00:00
itojun edcbce7c37 typo 2002-06-07 22:05:37 +00:00
itojun a1e0f0f9a7 sync IPV6_CHECKSUM handling with kame. 2002-06-07 22:03:02 +00:00
chris c153374b37 dmesg from cats booting can be bigger than 4k, so enlarge it to 8k. 2002-06-07 20:56:43 +00:00
briggs 8f360b5c1e Disable awacs because on some systems--e.g., a 350MHz G4 GigE--it can
generate interrupt storms which render the machine essentially unusable.
2002-06-07 20:27:14 +00:00
eeh 63260bae95 Fix yet another inverted comparison. 2002-06-07 19:31:04 +00:00
eeh 751dd1000c Shave 10% off the time needed to flush the D$ through a bit of instruction
reordering.
2002-06-07 19:29:38 +00:00
thorpej ffe1440f29 Add the CPU ID for the 600MHz i80321 part. 2002-06-07 18:25:28 +00:00
fvdl 2aae9aee46 Fix mistakes in previous. 2002-06-07 18:19:30 +00:00
itojun 09342cdd61 typo 2002-06-07 18:19:05 +00:00
itojun fc16676d8e If there has been no NS for the neighbor after entering the
INCOMPLETE state, send the first solicitation in nd6_output(), regardless
of the timer value.
revised comments about rate-limiting accordingly.

sync w/kame
2002-06-07 17:15:12 +00:00
itojun 4e9401b698 comment 2002-06-07 17:13:56 +00:00
itojun ac03214470 whitespace 2002-06-07 14:48:56 +00:00
ragge c70e49d9e9 Change the uba devices from "xx0" to "xx*". Even if they have an exact
csr there may be multiple uba's in a machine and therefore multiple
matches for devices.
2002-06-07 14:48:11 +00:00
itojun 3e3b75590b remove #if 0'ed portion 2002-06-07 14:43:11 +00:00
itojun c889402ba0 style 2002-06-07 14:37:38 +00:00
itojun 3c11868be8 consistency 2002-06-07 14:35:55 +00:00
itojun 05f0c3e705 KNF a bit 2002-06-07 14:29:10 +00:00
itojun 14df31ceb3 look at rmx_mtu on IPsec tunnel MTU computation.
From: David Waitzman <djw@bbn.com>
2002-06-07 13:43:47 +00:00
itojun a11e34efc5 whitespace 2002-06-07 07:38:51 +00:00
itojun e2ce1896bd whitespace 2002-06-07 07:35:39 +00:00
itojun 9b39e24802 minor KNF to sync w/kame 2002-06-07 04:30:40 +00:00
itojun 06ed16c31d typo 2002-06-07 04:18:11 +00:00
itojun 922b4012cc 'fall through' is not a valid LINT keyword. 2002-06-07 04:07:55 +00:00
gmcgarry 94b4a243e6 Support Athlon performance counters. 2002-06-07 04:04:47 +00:00
itojun 83aff37a0f remove support for deprecated ioctls (EINVAL). sync w/kame 2002-06-07 04:03:53 +00:00
gmcgarry 3acf6ed1d8 Add Athlon performance counters. 2002-06-07 04:03:49 +00:00
itojun 88a8e0dd9e cope with ndi->maxmtu == 0 case. sync w/kame 2002-06-07 03:05:18 +00:00
itojun fb6078474d cope with cases when maxmtu == 0 (this shoulnd't happen!) 2002-06-07 02:31:04 +00:00
simonb 4d304073f1 Add some ifdef's around the usage of mips_wait_idle; fixes builds for
playstations2 and MIPS1-only kernels.
Based on patch from Bill Squier.
2002-06-07 02:05:22 +00:00
simonb 214395e5cd For some reason I'm not sure of yet, cfe_exit(warmstart, ...) isn't
working any more.  Just do a cold restart so at least we get back to
CFE for now...
2002-06-07 01:34:03 +00:00
gmcgarry 72fe1c3076 Add i586 performance counters. 2002-06-07 01:30:19 +00:00
fvdl a35e1a5e5b Match DIAGNOSTIC spl code in new system call entry. We may return
through the old one in the case of a 32bit exec, causing the check
to fire.
2002-06-07 00:06:21 +00:00
bjh21 00eaefef06 When copying a block with an odd size to or from the card, be very careful
not to overrun the end of it on the host side, since that might just slip over
a page boundary and cause an embarrassing kernel panic.
2002-06-07 00:01:19 +00:00
wrstuden 9e2b945a7b defparam BPF_BUFSIZE 2002-06-06 23:54:47 +00:00
gmcgarry 4db43b2db0 Include PERFCTRS to match MTRR option. Now pmc(1) does something useful. 2002-06-06 21:16:47 +00:00
bjh21 452a764a15 Don't identify all VIDCs as "vidc20". Instead, print something appropriate
based on the type of IOMD in the system (which we use anyway to work out
the VCO reference clock frequency).
2002-06-06 21:03:28 +00:00
fredette e978777b86 Added hppa support to libkern. 2002-06-06 20:03:37 +00:00
fredette 49b0456a72 Added some missing files. 2002-06-06 19:50:20 +00:00
fredette b57559001e Fixed some mixup between processor number and type name,
i.e., PCXT is PA7100, not PA7200.
2002-06-06 19:49:58 +00:00
fredette 1eb29e31bf Added hp700-specific files. Still a work in progress. 2002-06-06 19:48:01 +00:00
he 33afd46155 Add newlines to the WARNING messages printed for the dynamic standby bug. 2002-06-06 17:20:50 +00:00
fvdl c0a27f0970 Enable (empty) procfs_machdep.c 2002-06-06 15:58:23 +00:00
ragge 184de4483b Pipes and swap disks takes a not insignificant amount of KVA, so therefore
it must be used in KVA calculation.
2002-06-06 12:28:44 +00:00
ragge dad88a6ce6 Just return if a zero uba vector is handled. It's OK to get them on Unibus
machines.
2002-06-06 11:40:53 +00:00
fvdl fab373098c Fix wrong psstr computation.
(XXX why is there an entire copy of sys_execve here?)
2002-06-06 10:12:42 +00:00
drochner 3db12b1095 Don't detach the mouse from the mux just because the mouse device is
opened. Too annoying and unnecessary.
2002-06-06 09:16:12 +00:00
martin 07cafe307b Follow changes in libsa/stand.h: exit(void) -> exit(int) (one in a #if
0 block), to make it compile again.
2002-06-06 05:04:28 +00:00
simonb 97f56c7642 Don't install <machine/rnd.h>. 2002-06-06 03:30:56 +00:00
perseant c13ae45a2a Let lfs_bmapv fill in the bi_size member of the BLOCK_INFO structure,
as well as bi_daddr.  This lets the cleaner have an idea of what the size
of this block was at the time it was written without having to refer to
a segment header (e.g., in the file coalescing case).

Tested on i386.
2002-06-06 00:46:24 +00:00
fvdl 71f7cef933 Fix arglength passed to ktrsyscall for 32bit calls. 2002-06-05 22:50:08 +00:00
fvdl 39f41c9002 The intr counters are supposed to be long (==> .quad in assembler). 2002-06-05 21:59:32 +00:00
fvdl 1c3269bdc6 Change kmem access check to match the actual kva layout. 2002-06-05 21:58:30 +00:00
martin 2d7d715810 Add audiocs at ebus. 2002-06-05 21:42:31 +00:00
fvdl 18c6a6eceb Correct arg passing to ktrsyscall once again (doh). 2002-06-05 20:54:44 +00:00
fvdl 0fc3b521af Move the IDTVEC macro here, mirroring Jason's change for the i386 port. 2002-06-05 19:17:34 +00:00
fvdl b1bff0ba73 Adapt for non-traditional cpp usage. 2002-06-05 19:16:18 +00:00
eeh e7fe9c7c35 Handle improperly aligned stack pointers more cleanly. 2002-06-05 18:11:18 +00:00
drochner 7a79aa5e02 usability fixes for the debugger:
-cut yhe trailing '\r' from input lines so that commands are recognized
-use db_vprintf() for output in interactive mode to get the "|more" effect
-do the same setjmp() game as ddb, so we can return to the prompt
2002-06-05 17:58:33 +00:00
drochner 49c4cfb2c5 provide a db_vprintf() which is exactly what the name suggests 2002-06-05 17:53:52 +00:00
manu 55dd8b2806 - Introduce irix_check_exec() to check if a given process is an IRIX one
- First implementation of procblk(). THis is supposed to suspend processes.
We emulate this by sending a SIGSTOP, which is not very accurate since
on IRIX, sending a SIGCONT to a process suspended by procblk() will not
resume it.
- support for shared groups
2002-06-05 17:27:11 +00:00
bouyer 10f940facc STE_CarrierSenseErrors is 8bit wide, not 16bit.
Reenable statistics interrupts, reading it as 16bit caused it to not be cleared,and thus the eventual interrupt to not be cleared (and this caused an
infinite loop in interrupt routine).
While I'm there count STE_CarrierSenseErrors as oerror (this is incremented
each time we try to send a packet and the link is down).
2002-06-05 16:27:29 +00:00
scw 9f2155138c Fix a botched pmap_vsid_bitmap[] index.
I'm surprised this worked as long as it did.
2002-06-05 15:55:51 +00:00
bouyer aad58d87e1 Rework transmit underrun logic:
- when a transmit underrun occurs, only reset the transmit logic. This prevents
  the link from going down at the MII level (the same logic can probably
  be used for other transmit errors)
- set the urgent threshold to half the start threshold. From experiments
  this helps a bit decreasing the number of underruns

Now that underruns don't cause the interface to stop for several seconds,
make back out the default transmit threshold to 128.
2002-06-05 15:24:31 +00:00
thorpej 86490156db Don't make _mcount static; it's already out of the user's namespace,
and doing so causes some versions of GCC to warn about "static function
prototype, but function not defined".
2002-06-05 15:14:16 +00:00
fvdl 9117c00bad Set output arch to i386:x86-64. From Jason. 2002-06-05 15:06:56 +00:00
thorpej af70ebcb19 Need <machine/intr.h> to be installed, for now. 2002-06-05 14:59:52 +00:00
fvdl eb3b53295f Don't forget to put the instruction size in tf_err on system call
entry, for the sake of syscall restart.
2002-06-05 14:59:37 +00:00
itojun f45a8e9eb0 typo/bound check fix from YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> 2002-06-05 13:11:34 +00:00
augustss 5d1d917cb8 Make it possible not to have akbd. 2002-06-05 06:33:18 +00:00
augustss 136b14943f Add NL at end of file. 2002-06-05 06:32:21 +00:00
augustss 8d5a57ed93 Make it useable. 2002-06-05 06:31:51 +00:00
simonb e36c88d696 Introduce CHIP_ACCESSTYPE which (if defined) is used as the type for
performing the accesses, regardless of the size of the data type
requested.  Useful for chips which require fixed-width accesses to all
registers.

Cast arguments printed using %lx to u_long all the time, not just
sometimes.

Include a few extra files here so they don't need to be included by the
files that include this one.
2002-06-05 06:27:10 +00:00
simonb d7a3af7811 ANSIfy. 2002-06-05 06:19:29 +00:00
simonb 6b6e4f4f60 Simplify include files that just include <mips/locore.h>. 2002-06-05 06:18:34 +00:00
simonb 8492ceb1ff White space nits. 2002-06-05 06:09:28 +00:00
simonb db50a069f8 Remove an ELF-related comment that isn't needed any more. 2002-06-05 06:02:52 +00:00
simonb 2100183aff For the CP0 status register bit definitions- add the MX, PX and NMI bits
and rename TLB_SHUTDOWN and SOFT_RESET to TS and SR (the abbreviations
in the MIPS documentation).

XXX: this file really needs to be cleaned up one day...
2002-06-05 05:56:48 +00:00
chs fffb1de109 get the units right when computing a blkno in the ENOSPC path
for allocations involving indirect blocks.
spotted by Trevin Beattie <trevin@xmission.com>.
2002-06-05 05:23:51 +00:00
mhitch aa39671913 Setting chipmem_start and chipmem_end to the same value (size of chip
memory) greatly confuses the chip memory allocator and can prevent
some systems from even starting the kernel.  Remove the initialization
of chipmem_start (it's initialized in locore.s).
2002-06-05 04:29:30 +00:00
chs 2d7a39f950 UBCify a bit in detrunc() that was missed. from PR 17143. 2002-06-05 02:07:48 +00:00
itojun 1eb402e813 be sure to use L3 MTU, not L2 MTU, when specified in spec (affects FDDI/ARCnet) 2002-06-05 01:10:54 +00:00
fredette f4f0d8a310 Added files to support generic HP PA-RISC based machines. hp700-specific
files to follow.
2002-06-05 01:04:18 +00:00
uwe cbb23a42ca Fix phys->pci memory pass-through mapping.
While here, correct wording in a comment.
2002-06-05 00:23:01 +00:00
mjacob 787aeb4081 As per a discussion on tech-kern a while back- honor retries for
XS_SELTIMEOUT and XS_TIMEOUT errors- but only do so if the device exists
already.

Devices that are being probed won't be found via periph_lookup, so we can
use that to find if a device exists for the purposes of honoring retries.
2002-06-05 00:15:33 +00:00
itojun fc6382d167 no need to set rmx_send/recvpipe. 2002-06-04 22:11:15 +00:00
ragge e2718cabea Do not disable interrupts until output queue is drained. 2002-06-04 21:58:55 +00:00
thorpej 04076e5943 Make this work with an ISO C preprocessor. 2002-06-04 21:44:40 +00:00
thorpej d941ddfee0 Don't use -traditional-cpp if HAVE_GCC3. 2002-06-04 21:39:09 +00:00
martin 9ae19204d9 #if some tables and a helper function for debug output to make it
possible to compile this without ISDN debugging support.

Fixes PR kern/17161.
2002-06-04 19:51:18 +00:00
ragge c691ddb3fb Repair VAX8600 support, which had bit-rotten, probably not used since -98. 2002-06-04 19:04:32 +00:00
fvdl e4eac0d964 Fix rdtsc and rdpmc inlines, and fixup rnd.h to do the right thing. 2002-06-04 17:52:46 +00:00
fvdl 9c71037485 Remove all i386 host bridges, as they don't apply. Remove pchb_rndattach
call for now (may be back later).
2002-06-04 17:51:30 +00:00
fvdl 99193cfa98 Woops, pass the correct argsize to ktrsyscall. 2002-06-04 15:45:05 +00:00
fvdl ab19cd2899 Clear P_32 on native exec (from eeh in the sparc64 port). 2002-06-04 15:44:34 +00:00
ragge 2f48a39412 Need longer delay while waiting for mscp packets, otherwise it times out
on VAX8650.
2002-06-04 15:13:55 +00:00
eeh 4ff7000d80 Fix the fork trampoline to properly use the supplied tstate. 2002-06-04 15:04:08 +00:00
eeh bf3b10f8aa Prototype for probing noteless 32-bit emulation binaries. 2002-06-04 14:49:15 +00:00
eeh abb7b6a965 Clear the P_32 flag when exec-ing native binaries. 2002-06-04 14:48:09 +00:00
eeh 587856dfdd Make the code that matches boot devices much more flexible so it handles
device classes as well as funny names for matching.  This should allow
us to properly recognize we're booted from a SCSI disk on a PCI controller.
2002-06-04 14:44:34 +00:00
isaki c55e051ca1 Correct indent... 2002-06-04 14:02:32 +00:00
isaki ef44888b70 Correct wrong comment about factor_denom.
In case of recording, it doesn't make coding space small.
2002-06-04 13:59:23 +00:00
fvdl c029f886c8 Propagate P_32 flag on fork. Use correct trampoline for 32bit return. 2002-06-04 12:58:13 +00:00
fvdl 2c7bad720d For 32bit execs, frob the stackframe to return via the old system call
return path.
2002-06-04 11:14:21 +00:00
fvdl 90c2a2ddc1 Fix up argument passing to ktr_syscall. 2002-06-04 11:12:18 +00:00
itojun fb9b52398c in mss clamping code, do not go past TCPOPT_EOL. enforce stricter
boundary checking.  discussed on tech-net
2002-06-04 10:06:27 +00:00
itojun b1654995d0 add a blank line 2002-06-04 10:00:24 +00:00
fvdl 96858fc8b7 AMD 8111 DMA support. 2002-06-04 08:58:20 +00:00
fvdl b76668d455 Regen. 2002-06-04 08:57:48 +00:00
fvdl c094984a55 Add AMD 8111 IDE id. 2002-06-04 08:53:47 +00:00
simonb 4a852aed2d Add smbus@sbobio and rtc@smbus. 2002-06-04 08:35:05 +00:00
simonb f4e42e7eb6 Add an extremely rough SMBus handler and RTC driver. This will be
cleaned up significantly when we have an MI SMBus framework, but at
least we can see the RTC on the swarm now.
2002-06-04 08:32:41 +00:00
simonb 349831dcf6 Use "cpu*" and not "cpu0" to attach all CPUs.
Add PROCFS and fix a whitespace nit while we're here.
2002-06-04 05:53:31 +00:00
simonb a1572a6b96 Match all possible CPUs, but print warnings that the processors after
the first are offline due to the lack of SMP support in the kernel.
2002-06-04 05:49:26 +00:00
simonb 9cc65a96d0 3 ports are now using the reciprocal count divisor code now, move it
to <mips/cpu.h>, and add MIPS_SET_CI_RECIPRICAL and MIPS_COUNT_TO_MHZ
macros to use it.
2002-06-04 05:42:41 +00:00
briggs ea51e618d6 Regen. for MPC8245 host bridge. 2002-06-03 19:53:37 +00:00
briggs 9e338db415 Add Motorola's MPC8245 (Kahlua II) host bridge. 2002-06-03 19:52:18 +00:00
fvdl 01fbe9c413 Drink the swapgs kool-aid.
Enable the use of syscall/sysret as the default system cal entry
point.
2002-06-03 18:23:16 +00:00
fvdl 619aaa1337 Set COPTS to -O by default. 2002-06-03 18:18:43 +00:00
eeh 30cc4dc796 Pass on the P_32 flag on fork and support fork syscall returns using
%g7 as the completion address.
2002-06-03 18:08:43 +00:00
bouyer 622fdb1fe6 Doh, the return of scsipi_lookup_periph() was meant to be assigned to
periph.
periph was used uninitialised, and caused a panic when the scsibus is reset
with siop or esiop, and possibly others HBA drivers.
2002-06-03 16:17:57 +00:00
simonb 4c67158999 Use "#ifdef __mips__" instead of "#ifdef mips"; shared libraries work
for kernels compiled with gcc 3.x.
2002-06-03 13:07:00 +00:00
itojun ad4cab117d whitespace at EOL 2002-06-03 02:09:37 +00:00
simonb 8b4906e391 Add prototypes for the 64-bit pagezero functions.
Bracket some function prototypes with #ifdef/#endif.
2002-06-03 01:51:05 +00:00
jonathan 9f02dbda6b Add stanza to match and configure D-Link DFE-670 cards (a DL10022 variant).
Also print a little more info (including CIS tuples) when cards don't match,
making it a little easier to patch in entries.
2002-06-03 01:17:49 +00:00
jonathan bf7d101fb6 Regen from pcmciadevs 1.171 after adding D-link DFE-670 ethernet card. 2002-06-03 01:15:15 +00:00
jonathan 4cd89ab8cc Add device-id for D-Link DFE-670 (10/100 DL10022-like card). 2002-06-03 01:13:01 +00:00
fredette bcd8676e8a Reverted previous commit. It was meant to fix a problem that
was already fixed by nathanw, had I bothered to check.
2002-06-03 00:56:55 +00:00
itojun ed45b704ac do not hardcode if_mtu values in here, except for IFT_{ARC,FDDI} -
they need special handling.  makes it possible to take advantage of 9k ether
frames.
2002-06-03 00:51:47 +00:00
fredette e0b7d8c222 Now make a machine/ directory with symlinks to a small number
of machine-specific headers.  When ${MACHINE} is sun2, this
allows building the sun3 and sun3x parts of libsa, which need
things like <machine/param3.h> and <machine/param3x.h> to be
#includeable.
2002-06-03 00:29:04 +00:00
fredette 180293c7b7 exit() is now declared in libsa's stand.h, and takes an int. 2002-06-03 00:18:26 +00:00
thorpej 8e9b95428b Revert rev. 1.10 of Makefile and fix the problem properly by adding
-D_KERNEL -D_LKM to AFLAGS in Makefile.common.
2002-06-02 23:46:49 +00:00
lukem cfb25c839c make this compile again 2002-06-02 23:24:40 +00:00
wiz 36379d74b4 Typo fixes and grammar improvements in a comment. 2002-06-02 23:17:51 +00:00
manu a808ca7f07 Now support per-signal signal trampolines. 2002-06-02 19:06:02 +00:00
seb 2c69553625 Support Titan PCI-800L, a 8 serial puc card, from PR 17140.
Reviewed/approved by veego@ and martin@.
2002-06-02 18:43:27 +00:00
seb c5ad00acc6 regen for Titan PCI-800L. 2002-06-02 18:37:25 +00:00
jmcneill 419bcc2917 Fix the mixer controls to work a bit better. 2002-06-02 18:33:06 +00:00
seb 491c3ef8b6 Add product Titan PCI-800L aka VSCom PCI-800L, a 8 serial puc card, from PR
17140.
Reviewed/approved by veego@ and martin@.
2002-06-02 18:32:11 +00:00
drochner d2b9876081 move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling
2002-06-02 14:44:35 +00:00
isaki 53175db820 Add x68k stuff. 2002-06-02 10:44:30 +00:00
enami 461e42e9ef Collect random number from AMD 768MPX power management controller. 2002-06-02 02:44:27 +00:00
gson a257b81df8 The logic in audio_poll() was incorrect in full duplex mode;
among other things, it behaved as if full-duplex audio devices
were always ready for writing.  Also commented the code in case.
This fixes PRs kern/11179 and kern/13829.
2002-06-02 02:00:30 +00:00
lukem 7026bf4ede Use SLIST_*() instead of accessing slh_first,sle_next directly.
XXX: this program currently doesn't parse macros that cross the EOL with \
(there are a couple in sys/dev/scsipi/scsi_message.h).
with that issue temporarily worked around, this change generates the
same output as the version of aicasm without this change.
2002-06-02 01:20:36 +00:00
lukem 06de426449 SIMPLEQ rototill:
- implement SIMPLEQ_REMOVE(head, elm, type, field).  whilst it's O(n),
  this mirrors the functionality of SLIST_REMOVE() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE()
- remove the unnecessary elm arg from SIMPLEQ_REMOVE_HEAD().
  this mirrors the functionality of SLIST_REMOVE_HEAD() (the other
  singly-linked list type) and FreeBSD's STAILQ_REMOVE_HEAD()
- remove notes about SIMPLEQ not supporting arbitrary element removal
- use SIMPLEQ_FOREACH() instead of home-grown for loops
- use SIMPLEQ_EMPTY() appropriately
- use SIMPLEQ_*() instead of accessing sqh_first,sqh_last,sqe_next directly
- reorder manual page; be consistent about how the types are listed
- other minor cleanups
2002-06-01 23:50:52 +00:00
bjh21 b3dd6235ca Since we don't have a wsmouse attachment for the ARM7500 PS/2 mouse, turn
on the pre-wscons device for it instead.  This allows X to work on my NC.
2002-06-01 23:43:48 +00:00
bjh21 40a8771d1e Using -N (OMAGIC) when linking the kernel seems to avoid BtNetBSD's doing
stupid things when loading it on an NC, so do that.  Fixing (or replacing)
BtNetBSD would be better, of course.
2002-06-01 23:24:15 +00:00
itojun aa309c7dc2 regen 2002-06-01 21:03:37 +00:00
itojun e35096b705 new ne0 pcmcia pccard: corega EtherII PCC-TD
PR 17134, From: <fujiwara@f.pyon.org>, Kazunori@netbsd.org, Fujiwara@netbsd.org
2002-06-01 21:03:14 +00:00
manu a7fd741e36 Emulate PR_SULIMIT, PR_SID and PR_SUMASK for sproc() 2002-06-01 20:26:42 +00:00
itojun 3ec91458b1 not sure if it is right, but svr4_sigcode.s does not compile on i386 without it.
PR 17121
2002-06-01 20:13:42 +00:00
bouyer 10813a14bc Remove the "set south-bridge's enable bit" code. It doens't seems to make
any difference for rev 0xc3 controllers, and hang on 0xc4 controllers.
Fixes kern/16954
2002-06-01 18:07:42 +00:00
gson ca67f8471a spl botch in midipoll() when sc->dying 2002-06-01 17:54:21 +00:00
bouyer dc66b51bca When the chip gets a transmit underrun, the driver resets the chip, which
cause the link to go down for several seconds on my Dlink DFE580-TX (quad-port
DL1002). This behavior is unacceptable, especially as the driver usually
gets several underrun at once, causing the link to be almost unaviable
for several 10s of seconds.
Bump the default transmit threshold to 1504 bytes to avoid transmit underrun.
2002-06-01 17:24:38 +00:00
bouyer 208589bfca On a Dlink DFE580-TX (DL-1002), attempting to transmit packets while the link
is down cause the chip to create an IE_UpdateStats condition which can't be
cleared, causing the driver to enter an interrupt loop.
Workaround: mask IE_UpdateStats
2002-06-01 17:20:13 +00:00
manu 658fcb808d Don't use SVR4 code for fcntl(F_GETFL) and fcntl(F_SETFL) because the constant
are not the same.
2002-06-01 16:16:36 +00:00
simonb 339203767f Remove some unused debug cruft.
Only print out the registers passed to us from CFE #ifdef DEBUG.
2002-06-01 16:14:23 +00:00
simonb dbae8649c2 Remove the unneeded early memsize/physmem calculations.
KNF, ANSIfy.
2002-06-01 16:12:01 +00:00
ragge 7a69e342b6 Add 11/780 and 8600 to list for who to create a RPB. 2002-06-01 15:33:22 +00:00
fvdl b6631fa4ec Make this compile again since the previous change. KNF. 2002-06-01 15:10:43 +00:00
simonb 9f6638d8c1 Add statclock and todr function arguments to the systemsw.
Add a system_set_todrfns() function.
2002-06-01 14:38:27 +00:00
simonb e8aaf3c28b Stop using the _MIPS_BSD_API_LP32_64CLEAN ABI. This causes a few problems
and it's easier/better to wait for true N32/N64.
2002-06-01 14:29:32 +00:00
simonb 02656b2e09 Change retval to be an array of register_t instead of array of int. 2002-06-01 14:07:33 +00:00
simonb 4cb13fbec6 There's two SMBuses in the BCM1250; list them both on the on-board device
list.
Get rid of some magic numbers.
2002-06-01 13:56:56 +00:00
simonb 51a91ebabb KNF; make some function static; other minor cleanups. 2002-06-01 13:55:48 +00:00
simonb 1e10b4d4ad Split USE_64BIT_FUNCTIONS into USE_64BIT_INSTRUCTIONS and
USE_64BIT_CP0_FUNCTIONS.
Add 64-bit pagezero function.
2002-06-01 13:52:23 +00:00
simonb 341ed8c0d3 Use CPU_MIPS_USE_WAIT and CPU_MIPS_NO_WAIT in the CPU table, and use
the generic name "mips_wait_idle" for the old function that had both
rm52xx_idle and mipsNN_idle entry points.
2002-06-01 13:45:45 +00:00
simonb 3611959ac8 Remove some unnecessary nops after some mfc0's. 2002-06-01 13:16:44 +00:00
simonb 42669ab3a4 Add "__attribute__((__unused__))" to hpt374_pio, hpt374_dma and hpt374_udma. 2002-06-01 12:47:20 +00:00
simonb cf5f852d1c Standardise on the name "MIPS_SR_BEV" instead of a couple of different
#defines for the same status bit.
2002-06-01 12:27:03 +00:00
simonb 5b5cc1ebb8 Add two new cpu capability flags: CPU_MIPS_USE_WAIT for CPUs that use a
"wait" instruction based cpu_idle(), and CPU_MIPS_NO_WAIT for specific
CPUs that don't use this (applicable to mips32/64 mainly).
2002-06-01 12:10:45 +00:00
simonb d75c18b050 Use the current MIPS in_cksum for in4_cksum too. 2002-06-01 11:41:33 +00:00
itojun 937b671271 use exit(int), not exit(void), consistently - even if the arg has no meaning. 2002-06-01 11:40:31 +00:00
simonb e5aff46bc6 Add evbmips and sbmips. 2002-06-01 09:37:30 +00:00
tsubai 5fcd112b3a Add gcc 3.x version. 2002-06-01 09:22:44 +00:00
yamt 0f40d327f4 make "keep state" work for SYN without win scale option. 2002-06-01 07:21:11 +00:00
nathanw 23d9c4fc27 Explicitly include <arch/sun3/include/param3{,x}.h> rather than
<machine/param3{,x}.h>, so that this file can be included on non-sun3 builds.
2002-06-01 06:20:37 +00:00
thorpej c49ac7a5a6 Use __mips__ instead of mips. 2002-05-31 21:43:49 +00:00
thorpej e50420de38 Statements must follow labels. 2002-05-31 21:40:49 +00:00
thorpej 144cc23985 Use __mips__ instead of mips. 2002-05-31 21:19:03 +00:00
nathanw 7dc5cba95f Regen. 2002-05-31 21:13:12 +00:00
nathanw 49331870a4 Add many Keyspan products, and distinguish the device IDs before and
after loading firmware.
2002-05-31 21:11:56 +00:00
thorpej 80f6433965 Fix printf format issues. 2002-05-31 21:09:03 +00:00
thorpej 698df788fc Add -ffreestanding. 2002-05-31 20:57:41 +00:00
thorpej fca656f5b2 Don't use multi-line string literal. 2002-05-31 20:52:14 +00:00
itojun 1638da93e1 support setsockopt() with larger data (up to MCLBYTES).
From: Hitoshi Asaeda <Hitoshi.Asaeda@sophia.inria.fr>
2002-05-31 20:33:11 +00:00
kleink 0bf753ef67 Cosmetics: there are exceptions to the PVR major/minor rule. 2002-05-31 20:10:45 +00:00
thorpej 10e4eb9d0b Make this work with an ISO C preprocessor. 2002-05-31 20:01:28 +00:00
thorpej 9e383c402e Use C-style comments in a few places where ' appears in the comment,
so that this works with GCC 2.95.3's ISO C preprocessor.
2002-05-31 19:59:00 +00:00
thorpej 969c677abf Remove redundant (and incorrect) extern decl. 2002-05-31 19:49:42 +00:00
thorpej 46b268dfef Avoid sequence point error. 2002-05-31 19:42:12 +00:00
thorpej 28afbb384c Build with -ffreestanding. 2002-05-31 18:26:26 +00:00
thorpej 6ef955a02d Make this work with an ISO C preprocessor. 2002-05-31 18:22:54 +00:00
thorpej 3a00c62229 Move the IDTVEC() macro to <machine/asm.h>, and make it work with
an ISO C preprocessor.
2002-05-31 18:07:31 +00:00
thorpej dd82a277b7 * Add __unused___ to lmc_system_errors, since it is not used by
everything which includes if_lmcvar.h.
* #if 0 lmc_status_bits, since it's not used by anything.
2002-05-31 17:53:03 +00:00
thorpej a5baff6d08 Add an __unused__ attribute to n_support and n_lower, since they are
unused if a kernel supports all CPU families.
2002-05-31 17:46:51 +00:00
thorpej 96e504cc78 Fix a pasto in printf arguments which resulted in the aac kernel
version being mis-reported.
2002-05-31 17:36:29 +00:00
thorpej 12af01e337 Remove an unnecessary printf argument. 2002-05-31 17:34:08 +00:00
thorpej 7173dc3334 Remove shadow decl of num_errors which exactly duplicated the file-scope
decl.
2002-05-31 17:31:15 +00:00
thorpej eb00d53595 Remove duplicate TULIP_SET/TULIP_CLR. 2002-05-31 17:27:40 +00:00
atatat 6c03c181d2 "offest" -> "offset" in a comment 2002-05-31 16:49:50 +00:00
atatat c52a7f3287 "a.out" -> "elf" in a comment 2002-05-31 16:49:12 +00:00
ragge f811a80bc3 Handle machine checks separate from other "stray" interrupts. 2002-05-31 15:58:26 +00:00
mycroft 79056950e2 Mask off extraneous bits in the RX frame status when testing it. My cards set
bit 3 in ad hoc mode.
Also, some minor constant folding.
2002-05-31 15:52:55 +00:00
christos 705e75558c regen 2002-05-31 15:38:55 +00:00
christos 03dc556078 add usr v.everything. 2002-05-31 15:38:43 +00:00
ragge 787f3adbcf ALIGNENTRY must always be 0 on vax, otherwise loadfile_aout won't work. 2002-05-31 15:22:01 +00:00
kleink 46b946bc5f Fill in real cache size/organization information and recolor; currently
doesn't make a difference except for the 604e.

XXX Does not consider L2 caches yet.
2002-05-31 15:04:14 +00:00
bjh21 54f310b7ce Use ${PRINTOBJDIR} rather than rolling our own. This makes parallel
builds work properly.
2002-05-31 13:46:00 +00:00
toshii f98f1c4df5 Add a missing config_hook_init call. 2002-05-31 13:43:28 +00:00
bjh21 31e94b1399 Insert .WAIT between libsa and boot so that parallel builds have a chance
of working.
2002-05-31 13:42:25 +00:00
mycroft 5ca56020c7 Patch the CLKRUN enable bit on ToPIC chips. 2002-05-31 13:34:03 +00:00
mycroft f6dc1467bf Add a Nortel e-Mobility card. 2002-05-31 13:30:36 +00:00
mycroft 75612b306d Regen. 2002-05-31 13:29:35 +00:00
mycroft 216a97aba4 Add a Nortel e-Mobility card. 2002-05-31 13:29:19 +00:00
augustss e916f073c3 Add bus_space_vaddr(). 2002-05-31 11:31:30 +00:00
augustss fb0ca293ff Add some. 2002-05-31 11:13:23 +00:00
augustss 301d69b351 Remove some devices. 2002-05-31 11:03:53 +00:00
augustss c838cc089e Don't use IPL_AUDIO. 2002-05-31 11:00:38 +00:00
augustss 22023c8988 Some casts in printf(). 2002-05-31 10:54:34 +00:00
augustss 81dc1093c0 Don't define IPL_AUDIO since there's no splaudio(). 2002-05-31 10:53:34 +00:00
augustss f87ec98c88 Add some device, remove some devices. 2002-05-31 10:46:33 +00:00
haya a7937db203 Add comment. 2002-05-31 09:54:52 +00:00
itojun bc95d762f8 define ALTQ_NOPCC if i386 and !I586_CPU and !I686_CPU.
otherwise, kernel fails to compile.
report by "Federico G. Schwindt" <fgsch@olimpo.com.br>
2002-05-31 06:52:00 +00:00
itojun 02dd12d915 since if_mtu is u_long, use u_long for mtu. 2002-05-31 05:26:42 +00:00
itojun 5625d3b849 do not mistakenly lock PMTUD route entry with RTV_MTU. 2002-05-31 04:26:19 +00:00
itojun 3449ca6d23 do not try to update rmx_mtu if rmx_mtu == 0 (obey ifmtu) 2002-05-31 03:18:54 +00:00
eeh cfee9f2e02 Since a register_t is probably not an int, don't try to print it with %d. 2002-05-31 01:10:35 +00:00
eeh 45a9507815 Native 32-bit and 32-bit emulation are mutually exclusive. We should not
even try to execute 32-bit binaries as native on a 64-bit kernel.
2002-05-31 00:52:20 +00:00
eeh cfa7e7d168 Support chroot-ing to a 32-bit installation. 2002-05-31 00:49:42 +00:00
augustss df22d8a0f5 Add some pmppc stuff. 2002-05-31 00:27:00 +00:00
thorpej 002ed08e32 Fix 2 sequence point errors. 2002-05-30 22:43:07 +00:00
thorpej c40766dbee Add missing "__volatile" to the declaration of enable_reg_soft (the
extern decl in enable.h already has volatile).
2002-05-30 22:40:31 +00:00
nathanw 343166210e Always build the m68000 math routines, since we compile libsa in m68000 mode. 2002-05-30 22:33:12 +00:00
nathanw 88591a36d8 #include <arch/sun3/include/param.h>, not param3x.h, so that we get
appropriate multiple-inclusion protection. The #define _SUN3X_ ensures
that param3x.h is included by param.h.
2002-05-30 22:31:57 +00:00
thorpej 78bfb83bf6 Don't use multi-line string literals. 2002-05-30 22:25:51 +00:00
thorpej 2b20452bf1 Statements must follow labels. 2002-05-30 22:19:11 +00:00
thorpej 5da14150ab Don't include macro params when #undef'ing it. 2002-05-30 22:11:14 +00:00
thorpej 3a536c1642 Make this work with an ISO C preprocessor. 2002-05-30 22:04:55 +00:00
thorpej d0e990fcad Get rid of the XDEFS thing; the new toolchain provides a proper
cross compilation environment.
2002-05-30 22:02:13 +00:00
thorpej 6edcabc59d Fix a typo (#ifdef defined(...)) 2002-05-30 21:58:56 +00:00
thorpej 203bc161ae Don't use multi-line string literals. 2002-05-30 21:51:28 +00:00
thorpej f4e7583fb8 Make this work with an ISO C preprocessor. 2002-05-30 21:49:20 +00:00
thorpej e0f6041809 Don't use multi-line string literals. 2002-05-30 21:47:25 +00:00
thorpej 66a9d33599 Don't use multi-line string literals. 2002-05-30 21:36:38 +00:00
thorpej a36957a2dd Don't use multi-line string literals. 2002-05-30 21:27:41 +00:00
thorpej 9c144a7b82 - Don't use multi-line string literals.
- Statements must follow labels.
2002-05-30 21:26:13 +00:00
thorpej 1f374d20b5 Don't use multi-line string literals. 2002-05-30 21:20:41 +00:00
thorpej 34820075d5 Statements must follow labels. 2002-05-30 21:09:54 +00:00
thorpej 85af08accf Remove an unnecessary (and undefined, due to lack of a sequence point)
assignment.
2002-05-30 21:00:23 +00:00
thorpej 9a97f023a3 Fix undefined operation (= is not a sequence point). 2002-05-30 20:56:26 +00:00
thorpej 2335982213 Remove unnecessary assignments (for which the operation may be
undefined).
2002-05-30 20:28:27 +00:00
thorpej 8f0c98bbe2 Statements must follow labels. 2002-05-30 20:03:27 +00:00
thorpej 763a08c0dc Put the __unused__ attribute one some unused kbd maps. 2002-05-30 20:02:24 +00:00
augustss c2ed70bddf Add missing files to the pmppc port. 2002-05-30 20:02:03 +00:00
thorpej 3d13a6c10b Don't include params on macro when #undef'ing it. 2002-05-30 19:59:36 +00:00
thorpej 9ba5027914 Nuke a trigraph. 2002-05-30 19:52:52 +00:00
thorpej b208a0fd3f Regenerate. 2002-05-30 19:45:49 +00:00
thorpej efde83a1fd Tweak a comment so that it doens't turn into a trigraph if
the config file is included in the kernel source.
2002-05-30 19:45:15 +00:00
thorpej cc938a1daf Account for changes to struct partition. 2002-05-30 19:03:50 +00:00
thorpej 7903aba812 #if 0 a test that is always false (and the XXX comment above it
indicates so).
2002-05-30 18:54:55 +00:00
thorpej f944a0674f Remove unnecessary -I$S; bsd.kmod.mk adds -isystem $S 2002-05-30 18:53:14 +00:00
thorpej 8bf2751b15 Statements must follow labels. 2002-05-30 18:44:30 +00:00
thorpej c26e1749fc Add -ffreestanding to CFLAGS. 2002-05-30 18:35:08 +00:00
thorpej 1768ff83e0 Don't use multi-line string literals. 2002-05-30 18:32:18 +00:00
thorpej 1964f8446c Make this work with an ISO C preprocessor. 2002-05-30 18:30:17 +00:00
someya 153f04daa9 Fix playback problem on SiS7018.
- mute the volume for interrupt channel
 - add some improvements for device initialization

but recording does not work properly.

Reported and tested by Jan Wagner <waja@cyconet.org>. Thanks.
2002-05-30 17:04:13 +00:00
nonaka 79e01c5f6f Support IBM RS/6000 43P 7043-140. 2002-05-30 16:10:03 +00:00
eeh 0ef5e0455e Automagically install symbols and generate a loadable binary image when
building a kernel rather than as a separate target.
2002-05-30 15:24:57 +00:00
eeh fb36aee628 Add an INSTALL kernel with DEBUG and space for a miniroot. 2002-05-30 15:23:09 +00:00
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