Commit Graph

157570 Commits

Author SHA1 Message Date
dyoung
912b6eb53e The departure of IPv6 interfaces does not agree with pf. The pfil
hooks that signal the interface's departure run before IPv6 sends
messages to indicate that it is leaving its multicast groups; when
pf filters the departure messages, it does not recognize the output
interface, so it complains at the departure of gre65, for example:

pf_test6: kif == NULL, if_xname gre65

I have changed if_detach() so that it calls pr_usrreq(PRU_PURGEIF)
before pfil_run_hooks(PFIL_IFNET_DETACH), instead of the other way
around.  That quiets the pf_test6: messages.
2007-03-18 20:05:52 +00:00
jdc
d77557d8c3 Add USB support (for the Javastation Espresso). 2007-03-18 17:29:56 +00:00
plunky
c6f8856e3c For sdpd(8), change default user/group from nobody/nobody to _sdpd/_sdpd 2007-03-18 15:53:54 +00:00
xtraeme
5dbf7fbdf5 Forgot to initialize cstate, make it global and static. Fixes
build problem with the LKM.
2007-03-18 14:30:54 +00:00
kent
3e124ca34a don't make a mixer item for a power widget 2007-03-18 14:16:00 +00:00
kent
371c325530 correct the DAC group definition for AD1988.
reported by wiz
2007-03-18 11:49:21 +00:00
plunky
5c5f46b32b Add an option to permit members of a specific group to register services, in
order to lower the barrier for users of bluetooth devices which may need to
query services on the local host.
2007-03-18 10:00:42 +00:00
tsutsui
ca549fcb8e CPPICFLAGS -> CPPPICFLAGS (in comments) 2007-03-18 09:08:45 +00:00
tnozaki
7ed1567506 don't use CPPPICFLAGS but CPICFLAGS.
CPPPICFLAGS obly affect *.s sources only,
but we want -D_I18N_DYNAMIC flag for *.c source
(src/lib/libc/citrus_module.c and so on).
use CPICFLAGS instead.

this fix suggested by tsutsui-san in current-users@, thanks.
2007-03-18 08:52:48 +00:00
xtraeme
0959735d30 Fix previous, sync prototypes and missing curcpu(). 2007-03-18 07:56:01 +00:00
xtraeme
90872da93f Don't write same code when there's an error, just use the goto
statement.
2007-03-18 07:40:29 +00:00
xtraeme
4c6e4fcf9b Sync with est.c, est_init does not take any argument now. Just use
curcpu().
2007-03-18 07:28:37 +00:00
xtraeme
3599c78870 Fix mem leak in k8_powernow_destroy, when it's called multiple times.
Found by mrg@.

Also, make sure they have data before trying to free them.
2007-03-18 07:23:53 +00:00
xtraeme
efd5228a6f There's no need to run est_init or k8_powernow_init on each CPU.
Just run it once (in the first cpu probed) with the RUN_ONCE(9)
framework.

Change the argument of est_init and k8_powernow_init to void, we don't
need cpu_info * anymore.

Suggested by tls@ and mrg@.
2007-03-18 07:21:40 +00:00
xtraeme
5ec1f7a202 Change k8_powernow_init to accept a struct cpu_info * as argument,
so that in the informative messages it prints the correct cpu
and not curcpu().

This fixes the first part of PR kern/35676.
2007-03-18 04:41:03 +00:00
reinoud
c1a1692e09 Modify description of the reinoud-bufcleanup experiment branch:
Branch:      reinoud-bufcleanup
Description: implement and evaluate struct buf usage cleanup strategies.
             Ideas currently in mind (preference for b):
             a)
                 1. use of bio_ops per buffer.
                 2. allow chaining/overloading of functions in bio_ops
                    and provide some private context.
                 3. extend the bio_ops with commenly used functionality
                    like pending action counting, custom context passing,
                    last minute processing of buffer data, buffer cache
                    etc.
                 4. investigate the use of the kcont()
                    continuation-passing framework for async io
                    completion notification for bufs
                 ...
             b)
                 1. all sequencing use of B_CALL replaced by
                    device-threads, if possible generic code around BUFQ
                 2. possibly use kcont() for async IO finished signalling
                 3. counter of pending and queued actions requestable
                    by IOCTL interface?
                 4. implement `last minute buffer fixup' calls and maybe
                    even finished I/O calls as vnode operations
                 ...
Status:         Active
Start Date:     Thu Mar 15 2007
End Date:
Base Tag:       reinoud-bufcleanup-base
Maintainer:     Reinoud Zandijk <reinoud@NetBSD.org>
Scope:          src/sys and src/common
Notes:          Used as expiriment sandbox and if successful hopefully one day
                to be intergrated.
2007-03-17 17:24:44 +00:00
uwe
911335e303 Shave off few instructions when doing ldtlb. 2007-03-17 17:23:31 +00:00
tsutsui
3f372aff43 Fix compile errors in the previous:
- include <sys/filedesc.h> for do_sys_stat()
- include <sys/namei.h> for FOLLOW and NOFOLLOW
- add missing semicolons
- fix typos
2007-03-17 17:02:44 +00:00
uwe
62f5ccf3c2 Cosmetic - fix local label name to match the name of the var it refers. 2007-03-17 14:23:07 +00:00
uwe
2e7cdeb33d Don't hijack COPTS to specify cpu type, we have CPUTYPE for that.
Provide a commented out example of a useful COPTS setting.
2007-03-17 14:19:39 +00:00
msaitoh
548cdc0050 s/intialized/initialized/ 2007-03-17 13:51:46 +00:00
tsutsui
40b782670f Use char * where pointer arithmetics are required. 2007-03-17 11:45:21 +00:00
dyoung
2ee6d07aca Regen. 2007-03-17 06:44:31 +00:00
dyoung
67e99bd532 Add Infineon ADM5120 PCI host bridge. 2007-03-17 06:43:52 +00:00
dyoung
4888b33c86 Let config(1) know that #define ATADEBUG goes in opt_ata.h. In
dev/ic/wdc.c and in dev/ata/ata.c, #include "opt_ata.h", and make
both the files compile with or *without* ATADEBUG.  Do not compile
with ATADEBUG by default.
2007-03-17 06:41:35 +00:00
dyoung
72d41408ef bcopy -> memcpy, bcmp -> memcmp.
Don't open-code LIST_FOREACH().
2007-03-17 06:36:05 +00:00
tsutsui
752b5779eb Use (char *) on pointer arithmetic. (I forgot to commit this one) 2007-03-17 06:34:25 +00:00
dyoung
95b277379f In nd6_rtrequest(), when we lookup/create a route whose destination
is equal to one of the host's IPv6 addresses, do not stop at setting
the route's interface to lo0, but also clear the route's RTF_CLONED
flag, if it is present, so that ip6_input() will accept packets
sent to that destination.  This is necessary because ip6_input()
will not accept a packet if it looks up the packet's destination
and finds a route with RTF_CLONED set.

I believe this will help IPv6 networking survive '/etc/rc.d/network
restart'.  See the problem report, kern/33279.
2007-03-17 06:32:46 +00:00
uwe
cfeed1498f sh3_switch_setup: make md_upte[] map uarea pages in reverse order so
that mapping for the bottom of the stack (practically the only page we
ever touch) is found on earlier iterations through md_upte[] in the
tlb miss handler.
2007-03-17 00:56:46 +00:00
matt
125090f30f Remove errant debug line. 2007-03-17 00:11:03 +00:00
matt
bbd7ce97e9 Didn't fix it completely. Now fixed. 2007-03-16 22:50:22 +00:00
abs
bde6709836 Ignore comment (starting with #) lines in mixerctl.conf 2007-03-16 22:30:22 +00:00
dsl
803fec88b2 Use NETBSD32PTR64() and NETBSD32PTR32() throughout. 2007-03-16 22:23:30 +00:00
dsl
a065e51621 remove all the double (and triple) casts used to convert 32bit userspace
pointers to and from 64bit kernel pointers.  Instead use the defines
NETBSD32PTR64(p32) to read a 32bit pointer and (the new) NETBSD32PTR32(p32,p64)
to write a 32bit pointer throughout.
The 32bit pointer is now a struct to enforce the above.
amd64 (with linux emul) and sparc64 will both compile (when the arch stuff
goes in soon), and amd64 still runs some i386 binaries.
2007-03-16 22:21:40 +00:00
matt
0cc8f96491 Use MD_DO_NOT_NEED_FALLTHRU 2007-03-16 22:20:50 +00:00
matt
e43d142e40 Steal code from tc-sparc.[ch] to implement a vax specific "cons" routine.
Add a %pcrel{32,16,8}(exp) special which emit a PC32 relocation to exp.
This will be used by the gcc dwarf code to generic .eh_frame sections which
are read-only and can be put in the text PT_LOAD.
2007-03-16 22:16:12 +00:00
matt
02f41de9c1 Don't emit PLT entries for PC32 entries not in a code section.
Don't emit PC32 relocations in shared libraries if the relocation is not in
a section with the CODE attribute.  (This is for DWARF2).
2007-03-16 22:12:11 +00:00
bad
ae77ae0ca1 Recent versions of mkisofs (I've tested starting with cdrtools-2.01.01a20)
can't find the el-torito boot image with the old syntax. This can be
fixed by removed the leading "i386/" from the -b argument, but then
the mkisofs from the current cdrtools-2.01 package won't find the boot image.

Change the graf-point specifications so that a trailing / terminates
the grafted directories. This way both versions of mkisofs can find the
boot loader.
2007-03-16 21:12:17 +00:00
xtraeme
868ef0036d struct cpu_info: add a ci_feature2_flags member.
identcpu: print extended cpuid features with ci_feature2_flags.

"Looks good" by christos and njoly.
2007-03-16 18:52:03 +00:00
tsutsui
ecde337fba Bump MAXBSIZE to 0x4000 because 16KB could be used by default
on newfs(8) in these days and we'll get "buf mem pool index 5" panic
in sys/kern/vfs_bio.c.
2007-03-16 18:39:21 +00:00
uwe
a4c73117e3 Cosmetic changes in {sh3,sh4}_switch_setup to make them easier to read.
Same object code is generated.
2007-03-16 18:31:36 +00:00
tsutsui
2f7615dcc1 Fix compile with options DIAGNOSTIC.
(Hmm, no one has tried it since nathanw_sa merge..)
2007-03-16 18:29:35 +00:00
uwe
66f80b8d65 There's no sense in duplicating function prototype in preceding comments.
While here, make ANSI'fy idle() definition.
2007-03-16 18:20:40 +00:00
tsutsui
ba9ffe28c4 Pass proper args to ksyms_init(). 2007-03-16 12:12:14 +00:00
pooka
9aca91baa1 use puffs_addvtype2mode() in puffs_fuse_node_mknod() 2007-03-16 08:17:36 +00:00
pooka
2df275c4cd va->va_mode doesn't contain the full argument to the mknod() system call,
so introduce puffs_addvtype2mode() and use that in null.c to generate the
proper syscall argument
2007-03-16 08:14:49 +00:00
skrll
108c9e1aa3 Move a comment and correct a typo. 2007-03-16 08:02:49 +00:00
skrll
25a1cb4e5b G/C some HAVE_GCC == 3 stuff 2007-03-16 08:01:05 +00:00
pooka
b93b025715 return errno instead of -1 if file is not present in lookup 2007-03-16 07:43:14 +00:00
xtraeme
83cb0f0a96 Remove __P(), remove k8_powernow_init proto... it was moved to
x86/include/powernow.h long time ago.
2007-03-16 06:20:36 +00:00