Commit Graph

193666 Commits

Author SHA1 Message Date
wiz
8d65c98f7a Fix typo. 2010-09-21 07:05:28 +00:00
mrg
aa347197eb note bozohttpd 20100920 2010-09-21 06:26:56 +00:00
kiyohara
dc47a44e6b + Add macro SMC_CAPS_8BIT_MODE for 8bit mode support.
+ Typo.  s/automagically/automatically/.
2010-09-21 04:57:44 +00:00
kiyohara
7e29ca4012 Fix build failure.
A new variable width and value had been forgotten since r1.7.
2010-09-21 04:53:53 +00:00
macallan
42092a5f99 add separate flags for putchar() based copycols() and copyrows() methods
for hw that can accelerate one but not the other, like Sun's Creator series
VCONS_DONT_READ does the same as before
2010-09-21 03:33:14 +00:00
macallan
9912ffbb92 * implement hw acceleration for putchar()
* use VCONS for copycols()
* don't map the framebuffer now that we don't access it anymore
* make a bunch of drawing engine syncs optional
2010-09-21 03:31:04 +00:00
macallan
9e776daf49 defflag some flags for the ffb driver 2010-09-21 03:26:20 +00:00
rmind
380cb143e5 _cpuset_create: initialize size argument for sysctl call.
From PR/43837 by Sandy Snaman.
2010-09-21 02:03:29 +00:00
jym
16e58e269b Promote paddr_t to 64 bits for i386 userland (non PAE and PAE).
paddr_t has limited interest in userland, and should only be used by specific
code like kvm(3) (for VA => PA translations). To support non PAE and PAE
kernels simultaneously in kvm(3), promote paddr_t to 64 bits.

No objection on current-users@. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html

Kernel remains untouched by this change. In-kernel 64 bits for paddr_t is for
a future commit (Yes, I do not forget about that :) )
2010-09-21 00:18:05 +00:00
jym
962a341df6 Change kvm_pa2off() and kvm_kvatop() prototypes (private to kvm(3)):
-int     _kvm_kvatop(kvm_t *, u_long, u_long *);
-off_t   _kvm_pa2off(kvm_t *, u_long);
+int     _kvm_kvatop(kvm_t *, vaddr_t, paddr_t *);
+off_t   _kvm_pa2off(kvm_t *, paddr_t);

Basically, use vaddr_t for VA and paddr_t for PA. In addition, for variables
representing addresses, use paddr_t or vaddr_t, depending on the context.

For most arches, vaddr_t and paddr_t are equivalent to unsigned long. However,
the change was needed for exotic situations, like i386 PAE, were unsigned long
is not suitable for PA which are 64 bits long. As this required a complete
change of the function prototypes, all arches had to be adapted accordingly.

Core files from before this commit should still work with the new code; I did
not see any direct dependency between core's structure and kvatop/pa2off.

The change was compile tested for all arches, as it impacts all of them.

See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
2010-09-20 23:23:16 +00:00
mrg
df5be5736c merge bozohttpd 20100920 2010-09-20 23:11:38 +00:00
mrg
729c374954 initial import of bozohttpd 20100920. the only change missing in here is:
o  fix dynamic CGI content maps, from rudolf
2010-09-20 23:07:21 +00:00
mrg
44128f48a9 fix an error in the previous. 2010-09-20 22:18:22 +00:00
mrg
109d4102cc fix a serious error in virtual hosting support, noticed by seanb@netbsd,
and disallow ".." as a virtual host name!  also ".".

patch from sean.
2010-09-20 21:58:43 +00:00
christos
8fb564818f avoid integer overflow that can lead to buffer overflow 2010-09-20 19:39:20 +00:00
christos
fda2d7ca9f deal with infinity on the vax. 2010-09-20 17:51:38 +00:00
christos
c80a34bc23 no more ieee ifdefs 2010-09-20 16:55:20 +00:00
christos
0a9ef41cbe get rid of ieee dependencies. 2010-09-20 16:53:30 +00:00
christos
1a7202d2d0 cargo cult the x86 changes. 2010-09-20 16:13:35 +00:00
christos
852d033d43 shouldn't need ieee.h here. 2010-09-20 15:38:48 +00:00
christos
35f0b243af Use the control (not data) interface descriptor when looking at the
control interface endpoints! (from Anon Ymous)
2010-09-20 14:18:13 +00:00
ahoka
592d1c274a Avoid NaN when calculating std-dev, which fixes a crash on VAX. 2010-09-20 11:49:48 +00:00
tsutsui
f252fc5e80 Prepare sparc optimized (by 32 bit add-with-carry insns) cpu_in_cksum()
which is reusing in_cksum_internal() in old sparc/in_cksum.c.

~4% improvements of ttcp(1) xfer rates on SS1+ with le(4).
2010-09-20 10:21:10 +00:00
kiyohara
b9cf6be02b Clean up return/error in sdmem_mem_send_scr(). 2010-09-20 09:42:32 +00:00
kiyohara
87b07383a1 Fix SCR data. 2010-09-20 09:34:47 +00:00
kiyohara
34f323b137 Support MMC 4,8-bit mode.
It tested only 4bit on Marvell Sheevaplug.
2010-09-20 09:30:20 +00:00
kiyohara
393dd47650 Sync with POSTREAD before memcpy. 2010-09-20 09:19:31 +00:00
kiyohara
ea26f43320 Clear SMF_CARD_PRESENT, if failed to attach. 2010-09-20 09:06:03 +00:00
kiyohara
fbd4ef36fc Print product name. like sd(4), wd(4) and etc... 2010-09-20 09:03:33 +00:00
manu
3d6861b56c - performance improvement for read, readdir and write. Now we use
SOCK_DGRAM, we can send many pages at once without hitting any bug

- when creating a file, it is open for FUSE, but not for the kernel.
If the kernel does not do a subsequent open, we have a leak. We fight
against this by trying to close such file that the kernel left unopen
for some time.

- some code refactoring to make message exchange debug easier (more to come)
2010-09-20 07:00:21 +00:00
kiyohara
e7ce62fde3 Check disk bounds, in RAW_PART. 2010-09-20 06:54:06 +00:00
manu
7ba588b3fb - Add debug santity checks
- Do not request peer creds anymore once we have them.
2010-09-20 06:45:38 +00:00
mjacob
60f1aed415 Multiple channel devices *should* be working. Remove the debug code
that was avoiding finding out.
2010-09-20 03:52:45 +00:00
abs
54e08a2860 use '/etc/rc.d/apmd onestatus' rather than '/etc/rc.d/apmd status',
so we DTRT if apmd is set to NO in rc.conf
2010-09-19 21:47:28 +00:00
jakllsch
ae196f9835 Make pci(4) device nodes root:wheel 0640 by default.
Mortals do not need to be able to generate PCI Configuration Space
read transactions, which are not entirely without side effect, as
reported in PR#16300.
2010-09-19 20:52:23 +00:00
jym
f0583e593c KNF 2010-09-19 11:37:40 +00:00
mrg
e486642c97 AUDIO_WSEEK uses a u_long, not a int. 2010-09-19 10:34:33 +00:00
mrg
bb1c68152f add (runtime untested) support for AUDIO_WSEEK. 2010-09-19 10:33:31 +00:00
mrg
c97f9c82aa add support for the netbsd 5.0 versions of the VND* ioctls. 2010-09-19 09:46:59 +00:00
mrg
d56ef50154 actually, put the old definitions back into vndvar.h, under _KERNEL,
as netbsd32 wants access to them.
2010-09-19 09:41:37 +00:00
mrg
9e2edd2b4d support VND* ioctls. 2010-09-19 09:09:30 +00:00
mrg
94bc17b82c fix the vnd_osize changes on 32 bit platforms with 64 bit alignment for
64 bit integers (eg, sparc).  the problem was that the new 64 bit
element on the end was used for the offsetof() (aka size) for the old
structure, but this includes the padding required, thus the ioctl number
was set wrongly.

move all the supporting code for this inside COMPAT_50, with some renaming
to suit, and kill all the external definitions related to it.


tested on i386, amd64 and sparc.
2010-09-19 07:11:42 +00:00
mrg
6489048a39 add support for COMPAT_50 ioctls. struct vnd_user has a dev_t component
which grew since netbsd 5.0 (hi christos!)

fix a few issues/problems:
- the COMPAT_30 code wasn't used since opt_compat_netbsd.h wasn't included
- move 'struct vnd_ouser' (for COMPAT_30) into vnd.c itself, and call it
  'struct vnd_user30'
- same for VNDIOOCGET -> VNDIOCGET30

now 'vnconfig -l' works on -current with a netbsd-5 binary, using i386.


XXX: there is still a potential problem with the old VNDIOOCSET and
VNDIOOCCLR macros on some platforms like sparc.  there is padding
between the old vnd_osize member and the new vnd_size member on
platforms that want 64 bit values 64 bit aligned, but are 32 bit
otherwise (like sparc.)  64 bit systems already end up with this
member 64 bit aligned, and should be fine.

this most likely results in the old ioctl numbers being wrong and
the code won't match/run ever (ENOTTY.)
2010-09-19 05:50:28 +00:00
mrg
0db5384dc8 enable COMPAT_30 and COMPAT_50 in the module. 2010-09-19 05:42:10 +00:00
tsutsui
d52a314491 - add m68k/conf/std.m68k, which includes common standard options for m68k,
options EXEC_ELF32, EXEC_SCRIPTS, and CPU_IN_CKSUM for md cpu_in_cksum.c
- make all m68k ports include common arch/m68k/conf/std.m68k
  from MD std.${MACHINE}
2010-09-19 02:09:27 +00:00
jym
6dc46b923b Ansify and KNF all functions within kvm(3). No objection on current-users@.
Used as ground for u_long => vaddr_t/paddr_t replacements in kvm(3)
private functions.

Compile tested for all arches. See also:

http://mail-index.netbsd.org/current-users/2010/09/07/msg014249.html
2010-09-19 02:07:00 +00:00
tsutsui
4a614dd9e5 Remove MD m68k/in_cksum.c which is obsolete since cpu_in_cksum refactoring
in 2008 and now superseded by m68k/cpu_in_cksum.c.
2010-09-19 01:39:48 +00:00
tsutsui
fa0b9f38f6 Add m68k MD cpu_in_cksum.c.
Based on sys/netinet/cpu_in_cksum.c but just modified
to use traditional MD m68k/oc_cksum.s.

Makes ~5% improvements of ttcp(1) xfer rates on ATARI TT030 + SMC_TT.
2010-09-19 01:35:43 +00:00
tsutsui
564f296c0b Fix wrong checksum calculations of 32 bit unaligned two byte payloads.
Analyzed in PR port-mips/43882, but applied slightly different patch.
Also put some changes for readability.

Note netbsd-5 doesn't use this MD version but netbsd-4 needs a pullup.
(though it's unclear if it's really faster even on modern aggressive gcc4)
2010-09-18 16:43:50 +00:00
jakllsch
3f28b50a70 AMD publication 25759 rev 3.69 says that DisIOReqLock in NB_CFG is "bit 3".
They probably mean "bit 3" and not "the third bit" (or bit 2).
This change should prevent superfluous warnings of errata 89.
2010-09-18 15:49:25 +00:00