Commit Graph

166395 Commits

Author SHA1 Message Date
pooka e9ff674b00 For operations with a target (remove, rmdir, link), print the
target cookie.
2008-01-27 00:29:24 +00:00
pooka 052fd49d29 Fix locking botches: take vm object lock before calling pager,
not inside the pager.
2008-01-27 00:16:22 +00:00
pooka a8d02d0b1a opt_inet.h is no longer necessary 2008-01-26 22:53:10 +00:00
christos bc985817a9 mention new wpa_supplicant and hostapd 2008-01-26 22:13:02 +00:00
christos e14586faa2 mention wpa_supplicant/hostapd 2008-01-26 22:12:34 +00:00
jmcneill de1fd2ebad Use auconv to create our encoding list for us. 2008-01-26 22:06:16 +00:00
christos 550ce95799 Moved to dist/wpa since now hostapd and wpa_supplicant share a lot of code. 2008-01-26 21:55:00 +00:00
christos 758a0bc57f Add stubs for non-crypto compilation. 2008-01-26 21:51:06 +00:00
christos 9a8cc3a777 Adjust to the new wpa tree structure. 2008-01-26 21:50:21 +00:00
christos 648919655f Bring in our patches. 2008-01-26 21:47:23 +00:00
christos 97277a1a6d mention how to upgrade. 2008-01-26 21:46:03 +00:00
christos 0c6f1a5abe Import hostapd 2008-01-26 21:42:09 +00:00
christos 71731f44f8 Import new wpa_supplicant code 2008-01-26 21:38:31 +00:00
dsl 769c734483 Remove some dubious casting of the address of integer variables that
can only be 'not invalid' if the sizes match - when it is unnecessary.
2008-01-26 21:01:23 +00:00
dsl d84d2af8e2 Split the return value of sys_lseek() into two 32 bit halves for retval[0/1]
in a manner that is endianness independant.
Should mean the amd64 will return correct offsets > 2^32 (sparc64 had a
special define).
Any new netbsd32 ports should work regardless of the endianness.
2008-01-26 20:57:46 +00:00
tls 4781622c25 CRIOGET is gone. Saves one ioctl per session. 2008-01-26 20:46:21 +00:00
oster 287ee4e9a9 In a land before time, when kernel processes roamed the system, we
needed to keep track of the kernel process that opened a device in
order to close it with the right credentials.  Flash forward to today
where curlwp is now quite sufficient.
2008-01-26 20:44:37 +00:00
rmind b5e9addd22 sched_setparam: fix the case when incorrect (according to the class)
in-kernel priority is used.  Reported by <drochner>.

Minor fixes for scheduling calls to conform the POSIX:
- If pid is equal to zero, use the calling process;
- In case of permission problem, return EPERM instead of EACESS;
- sched_setscheduler() should return previously used policy;
- pthread_* calls should return the error code or zero;

Should fix the namespace problems (and builds of some packages):
- Move cpuset_t defintion from pset.h to sched.h;
- Remove the #include of pset.h in pthread.h;
2008-01-26 17:55:29 +00:00
rmind ef515ac1dc Use _SC_NPROCESSORS_CONF instead of MAXCPUS. 2008-01-26 17:52:08 +00:00
tsutsui ae2fa185c0 VOP_LEASE is gone. 2008-01-26 15:48:11 +00:00
tsutsui e44e8e02b0 Fix fallout from v_specinfo removal. 2008-01-26 15:37:35 +00:00
ad 52451df464 - Make nfsnode hash MPSAFE.
- Replace use of lockmgr().
2008-01-26 15:30:07 +00:00
tsutsui ef25ad925d Remove unused splfoo() definitions. 2008-01-26 15:25:44 +00:00
tsutsui d2bce17888 Add "-mdivide-breaks" to CPUFLAGS in GENERIC, and
use "-march=r3900" for CPUFLAGS in TX3912 and TX3922.

The "-mips2" option seems to imply "-mdivide-traps" and
gcc4 with the option generates "teq" instruction on division ops,
but teq is not supported by TX39xx CPUs.

The problem is reported and the fix (-mdevide-breaks) is
provided by Risto Sainio. Tested on his PenCentra 200,
and also tested on Telios HC-AJ2 by nakayama@.

This should be pulled up to netbsd-4.
2008-01-26 15:09:11 +00:00
tsutsui ff0e8a32fd Make these TX39xx stuff compile without "-mips2" option.
TX39xx has a sync instruction, but it doesn't support all mips2 instructions.
2008-01-26 14:40:08 +00:00
tsutsui de92c0b2bc Replace bootinfo stuff on sgimips (which has been disabled in bootloader)
with ones used on arc (which has been working for a year) and
enable it in bootloader. Tested on IP32.
2008-01-26 14:35:24 +00:00
ad ea9faa6742 lockstat: no longer track lockmgr() events. 2008-01-26 14:29:31 +00:00
tsutsui af15dc6cc2 - call mec_reset() to make sure DMA stopped (inspired by OpenBSD)
- also stop DMA in mec_reset() before resetting chip
- set MAC address to MAC_STATION reg in mec_attach(), not in mec_reset()

Possibly fixes occasional interrupt storm from mec(4) (i.e. hangup) at boot.
2008-01-26 14:28:49 +00:00
wiz a7f30b5c9c Sort options. Remove superfluous .Pp. Grammar improvements.
Simplify macro usage. Use more macros.
2008-01-26 14:27:42 +00:00
ad 29426ebab2 - Fix several problems with the inode hash.
- Replace use of lockmgr().
2008-01-26 14:25:38 +00:00
tsutsui 6ca5886d93 Add a wakeup instruction which is taken from Realtek driver.
Untested on newer chips, but no bad side effect on my 8169S.
2008-01-26 14:24:14 +00:00
wiz 491885cb8a Document that cv_timedwait with a ticks argument of zero behaves like
cv_wait.
2008-01-26 14:16:27 +00:00
ad 2763af2195 rw_write_held: return true only if held by the current LWP. 2008-01-26 14:13:37 +00:00
tsutsui 9e319fb40f Wakeup some newer chips from powerdown mode. From FreeBSD/Linux driver
via OpenBSD.

Tested by wiz@ in PR kern/37868.
2008-01-26 14:13:06 +00:00
tsutsui d0ea2c0ffa Also account idepth in clock interrupt handlers
(which are registered directly by isr_add_custom())
and use the idepth value for CLKF_INTR().
2008-01-26 14:02:54 +00:00
nakayama 5da5bac16f Fix for 32-bit kernels. 2008-01-26 11:43:36 +00:00
nakayama 7a559cd1c0 Fix include. 2008-01-26 11:42:45 +00:00
scw fe86b93506 g/c an unused variable.
From Donald T Hayford on port-arm@
2008-01-26 10:46:39 +00:00
dsl a94c98311a Don't try to bound the return value for pread/pwrite/pathconf by casting
an 'ssize_t' or 'long' variable to 'register_t'.
If the sizes were different it would either overwrite stack or return
uninitialised stack.  On big-endian systems things would be worse!
2008-01-26 09:07:01 +00:00
dsl fe0f1a7e5d regen 2008-01-26 08:44:48 +00:00
dsl be09b9791a Add a wrapper for posix_fadvise() 2008-01-26 08:35:51 +00:00
simonb 2c3f5b99b6 Add some aligned tests for the more "normal" cases. Even though this is
primarily a regression tool, it's still a useful benchmark tool so we
might as well try relatively real-world tests as well.

Ok joerg@.
2008-01-26 04:56:45 +00:00
chris 8184079c4d Fix typo, assum.h -> assym.h 2008-01-26 02:07:13 +00:00
chris bb382cd142 Add arm version of cpu_in_cksum. Based on previous in_cksum4 code.
In fact it's mostly the same code, with a different stub on it.

On a cats the regress/sys/net/in_cksum tests show that it takes around
50-60% of the time the C version takes.  In some cases it takes as low as
20%.
2008-01-26 02:06:04 +00:00
chris be877f2c8a Add support to support code for Kinetic card. The kernel is loaded into
the Processor local memory, so that should provide a speed up.

Currently DMA won't work, as we only tell the kernel about the kinetic
memory, and exclude the motherboard memory. I'll look at fixing this over
the weekend.

Add support for kernels > 4MiB.  The -current INSTALL kernel has now hit
25KiB over 4MiB and we were only adding L1 mappings for 4MiB.

Also added lots of tracing which I used to work out what boot32 was doing,
and so what the kernel was meant to be doing.  This is disabled by default.

Out of paranoia also become a client of all domains before setting the ttb,
just in case RISC-OS ever decides to use domains.

All of this has been tested on my Kinetic Risc-PC.  I've carried out a full
install onto it, and hope to use it for testing out the interrupt work I've
been doing.
2008-01-26 00:16:57 +00:00
tls 49444bc037 Make /dev/crypto properly cloning. Leave CRIOGET in place but note that
it is deprecated, no longer required, and will be removed in a future
release of NetBSD.

Dramatically reduce the size of the session structure by removing an
IOV_MAX array of iovecs where only the first was use.  Saves an 8k
bzero on each session creation.

Convert fixed-size allocations in cryptodev.c to pools.
2008-01-26 00:04:27 +00:00
chris f6be197e27 Fix support for kinetic in the bootloader.
With these changes the kinetic dram blocks are correctly identified and
passed into the kernel.

Note that I've a pending kernel change to understand the kinetic blocks
and do something useful with them.
2008-01-26 00:01:54 +00:00
dsl 7ddd81a137 Add support for mbr code with ascii keycodes 2008-01-25 23:19:10 +00:00
chris 3f1a682126 Leave the SA's clockswitching enabled. It allows the SA to run at full
speed when running things from cache, rather than being in step with the
memory clock.
2008-01-25 23:18:59 +00:00
xtraeme 6b037e2408 Make it print the correct version for AHCI 1.2 controllers. 2008-01-25 21:41:48 +00:00