Commit Graph

70940 Commits

Author SHA1 Message Date
kleink
152857d5f8 2.0E: new pci_devinfo() argument. 2004-04-24 09:51:06 +00:00
pk
95149aa7b9 Some older devices do not understand the `disable block descriptor' bit in
the mode sense request. So fall back on mode sense data including a block
descriptor section.

See also sd.c rev. 1.214.  Again: should we bother trying DBD at all?
2004-04-24 09:26:14 +00:00
yamt
4a3c33632a EcGpeHandler: in the case that the ec is EcLock'ed, always set
EC_F_PENDQUERY flag so that AcpiClearGpe() will be called later.
2004-04-24 09:07:50 +00:00
atatat
d731ba57d2 The second "console_device" node should really be called "booted_device". 2004-04-24 04:56:59 +00:00
itojun
93cf32770f use bounded string ops 2004-04-23 21:52:17 +00:00
itojun
db9226c772 use bounded string ops 2004-04-23 21:29:16 +00:00
itojun
6123043789 pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
2004-04-23 21:13:05 +00:00
itojun
804f709531 use safer string manipulation function 2004-04-23 21:01:02 +00:00
snj
8db2495eca recommented -> recommended, indefinitly -> indefinitely. 2004-04-23 20:17:13 +00:00
itojun
300aa0dcd5 use bounded string ops (snprintf, strl*) 2004-04-23 17:25:25 +00:00
matt
6882f9234e #include <sys/cdefs.h> to get the definition of __packed.
(Some files which include this file may not have done that.)
2004-04-23 16:26:18 +00:00
joda
7b46861a55 fix obvious past-o where the activity led register gets overwritten by
the traffic meter led register
2004-04-23 16:03:33 +00:00
tsutsui
77addc8b55 Increase buffer size for s[dt]-targets PROM property
otherwise some machines (including my SS1+) with old PROM fails to get it.
2004-04-23 13:04:59 +00:00
atatat
d26290d280 Missing parens get cast wrong. Grr. 2004-04-23 12:02:43 +00:00
christos
dede52abd3 PR/25288: Erik E. Fair: convert this file to statvfs 2004-04-23 12:02:39 +00:00
hannken
82161a9cbe Protect against multiple inclusion. 2004-04-23 09:20:20 +00:00
kleink
ec413feecc Remove spurious statvfs_t from the declaration of struct statvfs -
the accompanying typedef keyword was missing, and while this type
can be found in SVR4 headers (and processor ABI supplements) it
was not documented there, nor included in XPG4.2.
2004-04-23 08:44:33 +00:00
dsl
5d3e088ee0 Put the 'mbr has bootselect table' marker into all versions of the mbr code.
Having the table in the 'standard' mbr allows fdisk to write in bootsel
menu items and only ask about updating the mbr code before exit.
Sysinst validates that the mbr code contains the bootselect table for
all the mbr code variants it reads - because it might want to write the table
and doesn't really want to make the validation dependant on what it is
going to do later.
Fixes install/25235, but sysinst needs some changes (like reporting the
failure to write the mbr) before the pr itself is closed.
2004-04-23 06:21:21 +00:00
matt
3c5e603d8f Use __packed instead __attribute__((__packed__)) 2004-04-23 04:14:41 +00:00
simonb
9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
simonb
04680727b1 s/this this/this/. 2004-04-23 02:48:12 +00:00
yamt
05076bfbb9 chgsbsize: correct limit check and ui_sbsize calculation.
ok'ed by Christos Zoulas.
2004-04-23 02:13:29 +00:00
thorpej
f84850f7df Assign to CPUFLAGS to add -march=armv4 instead of adding to COPTS. 2004-04-22 22:41:42 +00:00
skd
3d1c65c141 1) Skip over bogus device nodes, prevents a panic in pci_make_tag.
2) Clarify a printf.
2004-04-22 18:01:47 +00:00
itojun
cb0651e44a correct parameter to in6_cksum. keiichi@kame 2004-04-22 17:58:59 +00:00
ragge
febf637b17 Avoid performance problem in tcp_reass() when appending mbufs to a chain
by keeping a pointer to the last mbuf in the chain.
2004-04-22 15:05:33 +00:00
hannken
fcd7f3df90 Fix statfs->statvfs fallout. 2004-04-22 14:32:09 +00:00
christos
924e775ac7 fix statvfs->statvfs1 fallout 2004-04-22 14:06:31 +00:00
christos
e6f05cd289 Add the missing 'v' to fhstatvfs1 2004-04-22 12:04:03 +00:00
pk
a2ce1a6818 ctx_free: reset the context's page table pointers in each context table. 2004-04-22 11:57:33 +00:00
pk
c996a0d95b Fix logic botch in previous commit. 2004-04-22 11:45:48 +00:00
skd
98e8625653 Added initial support for SIS 180 SATA controller. Patterned after
VIA 8237 support.
2004-04-22 11:30:04 +00:00
skd
a9ec362b00 regen. 2004-04-22 11:27:45 +00:00
skd
ed76ce2d2b Added support for new sis south bridge and 180 sata controller. 2004-04-22 11:27:19 +00:00
yamt
54b5826d2c lfs_statvfs: report f_frsize correctly. 2004-04-22 10:45:56 +00:00
yamt
2b17bf3d63 check_dirty: fix another PHOLD leak. ("goto top" path) 2004-04-22 10:45:00 +00:00
hannken
754675a0e1 Make it compile again after statvfs import. 2004-04-22 10:18:03 +00:00
pk
4c005fd35b Mostly undo rev. 1.287: for modified pages a table walk must be forced on
the next write access to get the modified bit set in the PTE and that
won't happen if it hits the cache.
2004-04-22 10:14:58 +00:00
enami
0041584094 If defined(DP83820), (always) drop IFF_OACTIVE if we got txintr.
Otherwise, the driver simply stuck once we face tx resource shortage.
2004-04-22 06:11:38 +00:00
matt
633d902c65 Regen for statvfs changes. 2004-04-22 05:44:30 +00:00
enami
45a4841ce9 Copy fsidx so that not to break binary compatibility of mountd etc. 2004-04-22 03:47:58 +00:00
atatat
b47992812a Move a type cast (wrt description handling) and do a little lint
cleaning.
2004-04-22 03:32:11 +00:00
tls
7eb2f214d5 Change the default state of two tunables; bring our TCP a little bit
closer to normal behaviour for the current century.

New Reno is now on by default (which is really the only reasonable
choice, since we don't do SACK); instead of an initial window of 1
for non-local nets, we now use Sally Floyd's magic 4K rule.
2004-04-22 02:19:39 +00:00
matt
e5dd03bf92 Eliminate space between function name and prototype. 2004-04-22 01:34:17 +00:00
matt
e50668c7fa Constify protosw arrays. This can reduce the kernel .data section by
over 4K (if all the network protocols) are loaded.
2004-04-22 01:01:40 +00:00
itojun
8bcb745d7c sprintf -> snprintf 2004-04-22 00:31:00 +00:00
itojun
aca4c091d3 sprintf -> snprintf 2004-04-22 00:17:10 +00:00
matt
fd2a977729 Add #include "opt_iso.h" if not already there.
Make these compile cleanly when TPCONS is defined.
2004-04-21 23:19:49 +00:00
matt
961e6cb2e5 Add multiple inclusion protection 2004-04-21 23:18:10 +00:00
matt
0b5d1218b5 Add TPCONS option 2004-04-21 23:16:53 +00:00
matt
4f9c0f6775 Add ${_MKTARGET_LINK} to the link step 2004-04-21 22:01:44 +00:00
matt
7cf8938ddd ANSI-fy and some additional de-__P and constification. 2004-04-21 21:03:43 +00:00
matt
fde909e1a1 Add prototype for uiomove_frombuf. Change uiomove_frombuf to use size_t
for its length argument (to be the same as uiomove).  Remove code that
dealt with length being negative.
2004-04-21 20:31:50 +00:00
itojun
d6c33e0ef5 kill a sprintf 2004-04-21 19:10:31 +00:00
itojun
d2f1c029b9 kill sprintf, use snprintf 2004-04-21 18:40:37 +00:00
itojun
e133d13e80 kill some strcpy 2004-04-21 18:16:14 +00:00
cl
a01e0b0219 parse bootdev parameter for partition and set booted_partition accordingly 2004-04-21 18:06:51 +00:00
itojun
4c6511de84 avoid unbounded sprintf(), use snprintf() 2004-04-21 18:03:13 +00:00
itojun
0f06e31eb6 no space between function name and paren: foo (blah) -> foo(blah) 2004-04-21 17:49:46 +00:00
itojun
d66a0005a1 sprintf -> snprintf 2004-04-21 17:45:38 +00:00
drochner
c6bba42c07 initialize the lock 2004-04-21 17:38:48 +00:00
cl
ff6c26a333 - setup vfr rules when running as domain-0
- patch ethernet address if running as domain-0 so that arp can work

also include bpfilter.h to get NBPFILTER
2004-04-21 17:36:59 +00:00
christos
fced18d9f6 fix constification botch. (hi gimpy) 2004-04-21 15:51:22 +00:00
drochner
3874dc0ca9 defopt COMPAT_20 2004-04-21 12:44:13 +00:00
cl
3ba9d3ae38 don't crash when changing/adding ip addresses 2004-04-21 12:43:43 +00:00
cl
b5acdb9f14 cleanup debugging printf's 2004-04-21 12:14:45 +00:00
christos
0b9201b140 similar fix to enami's in the fstypename field. Not really needed, but better
safe than sorry.
2004-04-21 12:00:36 +00:00
christos
22df5bb240 try to make this compile. XXX: this will not work yet (hi simon) 2004-04-21 11:50:26 +00:00
enami
d92f7ed982 Don't copy past the end of destination array boundary; the size of source
array changed due to recent statvfs change.
2004-04-21 07:58:02 +00:00
simonb
b81e6f2ef6 ANSIfy, some KNF. 2004-04-21 07:05:07 +00:00
simonb
0495170a7a Fix some statfs->statvfs fallout. Compile tested only... 2004-04-21 05:20:27 +00:00
matt
e3b919c754 Constify if.c radix.c and route.c (and fix related fallout). 2004-04-21 04:17:28 +00:00
christos
90345b38a6 add sys/dirent.h 2004-04-21 02:40:42 +00:00
christos
34728fd71f more statvfs1 fallout. 2004-04-21 02:40:05 +00:00
christos
4bdb80839b add sys/dirent.h 2004-04-21 02:38:16 +00:00
christos
36d3802e0f fix more statvfs1 fallout 2004-04-21 02:37:20 +00:00
matt
af6ed48cd8 Remove non-__STDC__ code. 2004-04-21 02:33:28 +00:00
matt
7836b0179d Don't declare prurequests or tcpstates. Let them come in from the
appropriate include files.
2004-04-21 02:30:56 +00:00
matt
1e2af75b25 Constify the request arrays and define in _KERNEL. 2004-04-21 02:30:13 +00:00
christos
5ccca4a99a s/statvfs/statvfs1/ 2004-04-21 02:27:34 +00:00
christos
baf95c5d08 use VFS_MAXFIDSZ 2004-04-21 02:22:49 +00:00
christos
4a16c676d7 Add a define for VFS_MAXFIDSIZE 2004-04-21 02:21:49 +00:00
christos
6bd1d6d4db Replace the statfs() family of system calls with statvfs().
Retain binary compatibility.
2004-04-21 01:05:31 +00:00
matt
30e63c6236 export tcpstates for _KERNEL and remove tcp_usrreq.c's incorrect
declartion.
2004-04-20 22:54:31 +00:00
itojun
6a16706746 follow draft-ietf-tcpm-tcpsecure-00.txt 3.2 (B):
if SYN is coming and RCV.NXT == SEG.SEQ, then ACK with value - 1.
2004-04-20 19:49:15 +00:00
itojun
5da9234d88 remove duplicated #include. PR 25234 2004-04-20 17:12:03 +00:00
itojun
f2e796b13f - respond to RST by ACK, as suggested in NISCC recommendation
- rate-limit ACKs against RSTs and SYNs
2004-04-20 16:52:12 +00:00
pk
a22adee52d Default to not inlining __cpu_simple_lock().
- the locore version attempts to detect stuck locks
 - not inlining saves about 60K on the kernel's text
2004-04-20 15:55:30 +00:00
yamt
c13fd66a5d syscall_fancy/plain: add assertions to detect PHOLD leaks. 2004-04-20 12:00:02 +00:00
yamt
88005c19af add '.L' prefixes to local labels. 2004-04-20 11:59:20 +00:00
yamt
aa514117d5 check_dirty: plug a PHOLD leak. from Greg Oster. 2004-04-20 11:52:17 +00:00
yamt
392d6f9af1 nfs_inactive: inactive the vp before doing sillyrename works.
vp can be reclaimed soon after it's unlocked.
2004-04-20 11:51:28 +00:00
darrenr
2466d2e86c If we timeout waiting for data on the bpf device, allow data in the current
storage buffer (bd_sbuf) to indicate that there is data present.
2004-04-20 10:51:09 +00:00
pk
aa53aca844 Turn __CPU_SIMPLE_LOCK_INLINE into !__CPU_SIMPLE_LOCK_NOINLINE, so we don't
screw up user land.
2004-04-20 08:48:03 +00:00
pk
e2cab98f9e Always provide the __cpu_simple_lock() entry point (for LKMs). 2004-04-20 08:38:41 +00:00
pk
ce78973db2 Provide a fast trap path for AST IPIs. 2004-04-20 08:36:46 +00:00
matt
6a50a009d1 De-__P the header files (and reorder the includes of some C files). 2004-04-20 02:13:26 +00:00
hannken
3a7080244e Redo dk_start(). If di->di_diskstart() runs synchronous its biodone() will
call dk_start() via dk_iodone() before the buffer gets removed from queue.

Approved by: Roland Dowdeswell <elric@netbsd.org>

Fixes PR #25240
2004-04-19 16:04:07 +00:00
pk
3097bbf440 pmap_extract4m: We can read a spurious invalid pte if the system is in
the middle of the PTE update protocol. So, if at first we get an invalid
PTE, retry with the demap lock held.
2004-04-19 15:20:42 +00:00
wiz
3f9411f688 Spell removable with only two es. Inspired by jmc@openbsd. 2004-04-19 12:44:09 +00:00
pk
2e643fb9ae __cpu_simple_lock() isn't a pure function. 2004-04-19 12:41:53 +00:00
pk
a484ad4f3f CMP_PTE_USER_READ4M: drop instruction that's effectively a no-op. 2004-04-19 10:01:41 +00:00
pk
fecb3b619b Drop spurious variable. 2004-04-19 08:50:21 +00:00
jdolecek
9705c5db44 properly version the msdosfs mount structure after addition
of gmt time offset support (Hi Itojun!); adresses most important
part of PR kern/25226 by Todd Whitesel
2004-04-19 07:53:58 +00:00
matt
a87928f350 ANSI'fy, de-__P(), and constify some read-only data. 2004-04-19 05:16:45 +00:00
christos
ed95f3e980 Charge root for socket buffers without a socket pointer. 2004-04-19 03:44:46 +00:00
dmcmahill
888e67edcc Fix the sysinfo(SI_HW_SERIAL, emulation so that we actually get the
hostid of the machine rather than always getting "0".  Tested with
hostid(1) from solaris-2.8 and with lmhostid (part of FlexLM) for solaris.
Approved by atatat@.
2004-04-19 02:55:40 +00:00
lukem
fad77af2ac Add "vfs.generic.fstypes" sysctl, which contains a space separate
list of file system types currently supported by the kernel.
Previously there wasn't an easy way to determine this.
(Code shamelessly cribbed from subr_disk.c::sysctl_hw_disknames().)

Use LIST_FOREACH() appropriately.
2004-04-19 00:15:55 +00:00
matt
b0e01dddf8 ANSI'fy and de-__P 2004-04-19 00:10:48 +00:00
matt
5060b3b780 ANSI'fy and de __P 2004-04-18 23:35:56 +00:00
matt
58011725c3 Use M_ZERO appropriately. 2004-04-18 23:33:58 +00:00
matt
e3aa635a37 Fix tpyo. 2004-04-18 23:32:46 +00:00
matt
62fc149c0b Make this compile with XNS enabled 2004-04-18 23:32:21 +00:00
matt
0f0d66d66e Add entry for netns/ns_cksum.c 2004-04-18 23:31:45 +00:00
matt
ac57eb9d5b Constify sun_noname. 2004-04-18 22:20:32 +00:00
pk
03a07196d9 srmmu_vcache_flush_page/range: cover the case where we're called during
bootstrap before the cache parameters are setup.
2004-04-18 21:49:09 +00:00
matt
70e1f0d3ac ANSI'fy. 2004-04-18 21:48:15 +00:00
matt
91bb3497f5 Constify the addr parameter to sbappenaddr. 2004-04-18 21:47:11 +00:00
matt
e8f5e5bba8 Move uipc_usrreq and uipc_ctloutput to <sys/un.h> from <sys/socketvar.h> 2004-04-18 21:43:45 +00:00
matt
db6a0b431a De __P() 2004-04-18 21:00:35 +00:00
pk
27f928584a Code srmmu_vcache_flush_range & srmmu_vcache_flush_page more efficiently. 2004-04-18 20:46:39 +00:00
pk
57bbd955d1 Various ft_srmmu_vcache_*() functions: use `branch on greater (unsigned)'
instead of `branch on positive'.
2004-04-18 20:44:39 +00:00
matt
29fd5f0232 Use M_ZERO as appropriate. Use M_WAITOK instead of 0. 2004-04-18 19:21:06 +00:00
pk
68f30ee7af Make inlining __cpu_simple_lock() optional. Add a version with a built-in
spin out counter that panics with a diagnostic.
2004-04-18 19:20:09 +00:00
matt
4531ee830e Use M_ZERO as appropriate. 2004-04-18 19:14:42 +00:00
matt
cc11991cd5 Use M_ZERO appropriately. Change some incorrect uses of M_DONTWAIT to
M_NOWAIT.
2004-04-18 19:11:39 +00:00
matt
be4b6d7ee9 Use M_ZERO as appropriate. (fix an improper use of M_WAIT to M_WAITOK) 2004-04-18 18:55:57 +00:00
matt
591f26e81f Use M_ZERO when appropriate 2004-04-18 18:54:03 +00:00
matt
9a80b8007e De __P() 2004-04-18 18:48:03 +00:00
fvdl
07fd2b039b Adapt for new aapic.c location. 2004-04-18 18:36:56 +00:00
fvdl
9ad68fe184 Moved here from arch/amd64/pci 2004-04-18 18:34:22 +00:00
fvdl
9a03155b3f Move these files to x86, so that the i386 port can use them too
(for booting i386 kernels on amd64 machines).
2004-04-18 18:33:33 +00:00
matt
27fa4ffb42 De __P() 2004-04-18 18:30:21 +00:00
matt
8f23e3baa1 sbreserve can be called with a NULL socket, deal with it. 2004-04-18 16:38:42 +00:00
lukem
7841be775f Consistently arrange order of definitions for each type. Specifically:
* move SLIST_EMPTY, SLIST_FIRST, SLIST_NEXT, SLIST_FOREACH further down.
* remove duplicate definition of SLIST_NEXT.
* move TAILQ_FOREACH and TAILQ_FOREACH_REVERSE further up.
* add more comments.
* tweak whitespace.
2004-04-18 14:25:34 +00:00
lukem
47e1db6708 consistently use '#define<TAB>' 2004-04-18 14:12:05 +00:00
dbj
dec025329f remove code that attempts to correct superblock location. this
enforces an unnecessary restriction that the superblock be in the
particular expected locations.  Also, the compatibility case is
handled in ffs_oldfscompat_read.
2004-04-18 03:35:16 +00:00
dbj
d7c33aeb1e when enabling ffs compatibility in ffs_reload, use
sblockloc that superblock was read from
also note XXX that ffs_reload doesn't handle superblock moving
2004-04-18 03:30:23 +00:00
pk
38bdc6fab2 Remove the cache_flush() trampoline; it's no longer directly cross-called.
Instead, implement the MP parts in terms of cross-callable vcache_flush_range()
function.
2004-04-17 23:45:40 +00:00
matt
35b9f3ec72 If a segment is received with RST set and the segment is completely to the
left of the receive window, ignore it.  Add some additional comments to
the code that deals with received segemnts that are completely to the right
of the receive window.  If an invalid SYN is received, force an ACK and
drop it; if the other side really sent the SYN; it'll respond with a reset.
2004-04-17 23:35:37 +00:00
pk
66a6704d83 Update fast xcall interrupt event counter.
ft_srmmu_vcache_flush_range: adjust length for address alignment
2004-04-17 23:28:44 +00:00
cl
c705011fd6 Loader which allows booting NetBSD as domain0 guest OS. 2004-04-17 23:20:37 +00:00
pk
e68993f7e4 Add EV_COUNT. 2004-04-17 22:36:54 +00:00
pk
3c3af40e65 Add xcall event counters. 2004-04-17 22:34:14 +00:00
cl
17292d12b3 use nanoseconds since boot counter for delay routine 2004-04-17 21:49:55 +00:00
christos
e98adb3edc remove declaration of cache_purge that has turned into a macro. 2004-04-17 15:24:22 +00:00
christos
5e6f06df85 remove obsolete comment. 2004-04-17 15:23:23 +00:00
christos
171ddb8b8b adjust prototypes. 2004-04-17 15:22:59 +00:00
christos
90e1f431ca adjust to the sbreserve prototype change. 2004-04-17 15:18:53 +00:00
christos
f13a3d0852 PR/9347: Eric E. Fair: socket buffer pool exhaustion leads to system deadlock
and unkillable processes.
1. Introduce new SBSIZE resource limit from FreeBSD to limit socket buffer
   size resource.
2. make sokvareserve interruptible, so processes ltsleeping on it can be
   killed.
2004-04-17 15:15:29 +00:00
cl
9a39f88e1e add block device driver 2004-04-17 12:56:26 +00:00
cl
e688fd0596 sync with arch/i386/i386/pmap.c:
1.172/yamt
- keep cr3 register and its copy in TSS synchronized.
- defer LDTR loading as well as cr3.
2004-04-17 12:53:27 +00:00
cl
1cfcb16460 - microtime support
- don't report cpu speed in startrtclock()
2004-04-17 12:50:45 +00:00
cl
e22637e9aa report cpu speed correctly 2004-04-17 12:47:38 +00:00
cl
8bde79bdaa - fix event dispatching for event 0
- use struct trapframe instead of struct pt_regs
2004-04-17 12:46:42 +00:00
pk
89f5c8768c When acknowledging a sun4m soft interrupt, read back the pending interrupts
hw register to make sure it gets through on Ross CPUs.
2004-04-17 11:55:06 +00:00
pk
1e5ff8a716 raise_ipi: don't bother fetching the cpu type from memory in order to
avoid one instruction.
2004-04-17 11:50:23 +00:00
pk
727a9ca138 The macro CMP_PTE_USER_READ4M now needs to consider more PTE access
rights combinations, since the access rights table in pmap has changed.
2004-04-17 11:26:36 +00:00
pk
66178209d2 Use fast cross calls for MP cache flush ops. 2004-04-17 10:13:13 +00:00
pk
f714ca590d Add CPUINFO_XMSG_* symbols for use in fast xcall handlers. 2004-04-17 10:07:58 +00:00
pk
ebfb6e3b0a Implement fast trap handlers for TLB and cache flushes. 2004-04-17 10:06:29 +00:00
pk
901271fbc8 Use a fast cross call for TLB flushes. 2004-04-17 10:04:20 +00:00
pk
4eac0385f6 xcallintr: arg3 is gone. 2004-04-17 10:01:55 +00:00
pk
8bc2760490 Add support for fast cross call handlers that execute in the trap window
on the destination CPU. The `fast handler' address takes the place of the
unused fourth argument to xcall().
2004-04-17 10:01:11 +00:00
matt
a6b639c3a5 Switch to using PSL_USEROK_P()
Use new save_fpu_lwp sematics to save or discard the fpu state appropriately.
2004-04-17 08:47:15 +00:00
matt
be6867a460 Regen. 2004-04-17 01:56:31 +00:00
matt
fd311156d1 Add devid of Marvell MV6436x System Controller 2004-04-17 01:56:10 +00:00
matt
8cd24529dc Add a SAVE/DISCARD flag to save_{fpu,vec}_lwp. Use it appropriately.
Nuke struct fpu and use struct fpreg instead (except for the names, they
were identical).  On MP machines, this will avoid an unneeded IPI to save
the register contents that are about to discarded.
2004-04-16 23:58:08 +00:00
fvdl
7a44f0ad1f Make tracing work better (through interrupts, etc). Essentially a synch
with i386.
2004-04-16 14:21:56 +00:00
atatat
904ca21614 Prefer that kern.hostid is printed in hex, not as a signed decimal,
and avoid accidental sign-extension when setting it.
2004-04-16 13:25:40 +00:00
pk
f663e2397e checkalias: pass LK_NOWAIT to vget() while holding the spechash spinlock. 2004-04-16 09:59:32 +00:00
hannken
3dc578de5e Make it compile when PPC_HAVE_FPU is not defined. 2004-04-16 08:52:41 +00:00
matt
ee00feaab9 Revamp how user MSR/SRR1 are dealt with.
Add a PSL_USEROK_P(psl) macro which valids the bits (replaces the use of
PSL_USERSTATIC).
Add a PSL_USERSRR1 mask which is used to mask out status bits in the upper
half of SRR1.
Make sure PSL_VEC is set appropriately in userret().  PSL_VEC is in the same
region as SSR1 status bits so it's not preserved on exceptions.  Thus we
need to make to set it.
When returning a MSR/SRR1 to userland, always clear the status bits.
Add emulation of the mfpvr, mtmsr, and mfmsr instructions.
2004-04-15 21:07:06 +00:00
thorpej
35a1306bfd There was no need to bump the kernel version for a BPF ioctl change; back
that out.
2004-04-15 15:50:45 +00:00
darrenr
12d715a3ee don't use u_long in an ioctl, rather, u_int64_t so there are no long 32/64
bit compatibility problems.  bump kernel version like it should have been.
2004-04-15 15:17:11 +00:00
he
a1182cdd25 We need to also clean out athhal-elf-o, so that "make clean; make"
after an initial "make" will also (re)build athhal-elf.o.
2004-04-15 15:02:17 +00:00
tv
7d5e6e5d58 Move -mips2 to CPUFLAGS in each kernel config file as suggested by mrg.
This matches the way other ports specify default CPU codegen options.
2004-04-15 14:58:30 +00:00
darrenr
4800529c7e Add a count of the number of packets that match the bpf filter applied to a
particule device.  In doing this, make a new the bpf_stat structure with
members that are u_long rather than u_int, matching the counters in the bpf_d.
the original bpf_stat is now bpf_stat_old and so to the original ioctl
is preserved as BIOCGSTATSOLD.
2004-04-15 14:56:57 +00:00
mrg
47a36b2bdc when we have a P4 or a MP system, don't enable performance monitoring.
this fixes PR#25014.  i386 GENERIC can re-enable PERFCTRS by default now
(it was disabled with x86 SMP support was commited to the trunk.)

XXX:  should add P4 support
XXX:  should add MP support
2004-04-15 13:56:32 +00:00
aymeric
8f2774036c . add a missing call to lockinit() in apmattach()
. while here, explicitly initialize three softc variables to 0
2004-04-15 11:03:15 +00:00
pk
299dfa38bf De-__P(). 2004-04-15 10:07:32 +00:00
yamt
f502110937 add '.L' prefixes to local labels. 2004-04-15 09:20:29 +00:00
pk
dab35b2e8d xcall: increase spin-out; fix diag output. 2004-04-15 08:11:20 +00:00
thorpej
6837b365dd Assign a syslog priority to the AEN codes and use that priority when
logging the error message.  Potentially allows critical messages to be
noticed much more quickly.
2004-04-15 02:03:03 +00:00
darrenr
6cfa637a10 * from bpf 1.2a1, use the IO_NDELAY flag in bpfread() to indicate whether or
not a read operation should be allowed to sleep.  This allows the use of
  bd_rtout with a value of "-1" to be eliminated (signed comparison and
  assignment to an unsigned long.)
* in 1.91, a change was introduced that had bpfpoll() returning POLLRDNORM
  set when the timeout expired.  This impacted poorly on performance as well
  as causing select to return an fd available for reading when it wasn't.
  Change the behaviour here to only allow the possibility of POLLIN being
  returned as active in the event of a timeout.
2004-04-14 21:34:26 +00:00
ragge
0a7fe37708 Add back one line which was accidentially removed (by me) a while ago.
Spotted by Markus Friedl (markus at openbsd.org).
2004-04-14 18:07:52 +00:00
ragge
34edcc4638 The 82597 chip may write back some receive descriptors off-by-one when
the PCIX bus start to get heavily loaded.  This only happen when using
chained descriptors, therefore work-around it by providing a private
pool of receive buffers able to contain a full-sized packet.
2004-04-14 17:31:02 +00:00
pooka
88d0b8e68e Return "video()" instead of "graphics(0)" for a graphics console,
since that's what even our code expects.

suggested by Steve Rumble
2004-04-14 10:29:26 +00:00
minoura
c5bd25260a Change the value of DRIVE_ATAPIST which was same as that of DRIVE_DMAERR.
Ok'd by bouyer.
2004-04-14 05:26:29 +00:00
bsh
018ab5b974 distinguish PXA255/26x from PXA2[15]0 in CPU attach message 2004-04-14 04:01:49 +00:00
bouyer
fca16a87e1 Make wdc_channel->ch_flags volatile, and cast it to (void *) when used
in tsleep()/wakeup() to appease gcc. Otherwise, the ch_flags value may
be cached in a register in atabus_thread(), and when it sets the WDCF_TH_RUN
bit after tsleep() it may loose loose the changes made by an interrupt handler
or another thread.
Problem analysed by Jukka Andberg on tech-kern.
2004-04-13 19:51:06 +00:00
bsh
4f5b0f1294 add CPU ID for Bulverde 2004-04-13 19:14:34 +00:00
pk
cd891bd771 Re-enable the HyperSPARC on-board instruction cache on multi-processor machines. 2004-04-13 14:55:48 +00:00
pk
86fce030ee Handle `unimplemented flush' traps by flushing the entire I-cache (if
there is one).
2004-04-13 14:04:29 +00:00
pk
e76253f84e Turn FLUSH instructions that wind up here into no-ops. 2004-04-13 14:00:24 +00:00
ragge
ef66f543d0 Make it possible to use 16k MTU. 2004-04-13 11:40:06 +00:00
sekiya
7af65e354b Back out portions of previous commit -- the mips/bus_dma.c code is less
correct than the sgimips-specific code.
2004-04-13 08:12:03 +00:00
jmmv
8d3610f027 Be consistent with other messages: output "VIA Technologies" instead of
only "VIA".  Also add a missing "Audio" word to a message.
Closes PR kern/25152 by Nicolas Joly.
2004-04-12 15:44:53 +00:00
kochi
01e95b11cc fix compilation when ACPI_DEBUG is not set.
pointed out by Sverre Froyen.
2004-04-12 15:11:04 +00:00
kochi
1d26507180 minor space nit from Alexander Yurchenko. 2004-04-12 15:09:46 +00:00