ad
fb1e16b417
Need sys/device.h
2008-01-04 22:13:55 +00:00
dyoung
482c583bd7
Move #endif to the place where it belongs. Thanks, Chavdar Ivanov,
...
for noticing this.
2008-01-04 22:10:34 +00:00
joerg
e36a3212f8
Catch up with rename of buf's b_un.b_addr -> b_data.
2008-01-04 22:04:59 +00:00
ad
225df3f88d
Don't pull in unrelated gunk.
2008-01-04 22:03:25 +00:00
joerg
547d94f35c
Add missing sys/device.h.
2008-01-04 21:58:51 +00:00
ad
e6ab480d6d
Header cleanup.
2008-01-04 21:58:03 +00:00
joerg
84487ad85b
Needs sys/simplelock.h.
2008-01-04 21:56:36 +00:00
ad
8a9b6ca32a
Need sys/lock.h for kernel_lock.
2008-01-04 21:54:49 +00:00
ad
0269f24d50
Don't pull in unrelated headers.
2008-01-04 21:54:05 +00:00
ad
0becf21618
Include sys/device explicitly.
2008-01-04 21:53:51 +00:00
ad
910c8a56ab
Use new style memory barriers.
2008-01-04 21:53:00 +00:00
ad
070e98eb7b
Pull in sys/atomic.h for memory barriers.
2008-01-04 21:52:48 +00:00
ad
f142225fa0
B_BAD has done nothing for a long time.
2008-01-04 21:48:05 +00:00
ad
edcd8e4c68
More header file cleanup.
2008-01-04 21:47:16 +00:00
joerg
a547a2785a
Use time_second instead of time.tv_sec.
2008-01-04 21:43:58 +00:00
xtraeme
0f546319ca
sys/simplelock.h is required now.
2008-01-04 21:33:17 +00:00
xtraeme
9bb6b94d89
sys/lock.h is required now. ok ad
2008-01-04 21:31:06 +00:00
xtraeme
e9b20f72c4
sys/simplelock.h is required now.
2008-01-04 21:24:22 +00:00
ad
0664a0459b
Start detangling lock.h from intr.h. This is likely to cause short term
...
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
ad
46a018d0e2
More linker stuff
2008-01-04 21:06:37 +00:00
xtraeme
29f483410f
machine/cpufunc.h is required now.
2008-01-04 20:42:25 +00:00
christos
5fa6e7c2d4
add missing includes
2008-01-04 20:38:01 +00:00
uwe
d02168ab21
There's no need to pull in machine/intr.h here.
2008-01-04 20:10:12 +00:00
dsl
e3c05d1c5d
Allow the boot code to use the disklabel 'faked up' from the mbr.
...
Should allow bootxx_fat16 (and bootxx_msdos etc) to boot from drives that
don't contain a netbsd disklabel.
2008-01-04 20:05:46 +00:00
joerg
7a170eb0b2
Add missing mutex for cv_timedwait.
2008-01-04 19:45:54 +00:00
ad
c86e36f12b
Don't pull in sys/simplelock.h, it's not needed.
2008-01-04 18:40:04 +00:00
ad
48160965f3
sys/lock.h isn't needed here.
2008-01-04 18:38:31 +00:00
ad
b31bcb4d13
don't need sys/lock.h
2008-01-04 18:25:42 +00:00
ad
f479e1b23b
- Always include kprintf_slock.
...
- sys/lock.h -> sys/simplelock.h
2008-01-04 18:21:06 +00:00
ad
35dd6c193a
sys/lock.h -> sys/simplelock.h
2008-01-04 18:18:31 +00:00
uwe
bf6001ba0f
G/c bogus includes that do nothing but add circular dependency between
...
intr.h and mutex.h
2008-01-04 18:03:01 +00:00
ad
c0da486b16
Linker stuff for powerpc.
2008-01-04 18:00:16 +00:00
kent
e93ecba847
shorten mixer-input names by mixer-name automatic generation
...
PR/37273
2008-01-04 17:00:05 +00:00
yamt
1c6ebd43e5
fix a bug in the previous. (per-cpu tss change)
...
keep iopl in pcb so that it won't lost.
2008-01-04 16:38:46 +00:00
ad
b8e6bdeab5
Linker bits for sparc64.
...
XXX Does not handle 32-bit kernels.
2008-01-04 16:34:41 +00:00
ad
694c00b8fe
Linker bits for arm.
2008-01-04 16:23:39 +00:00
ad
914b753523
Linker bits for alpha.
2008-01-04 16:19:25 +00:00
ad
6f7f8905b7
Adjust ci_idepth for cpu_intr_p().
2008-01-04 16:09:54 +00:00
yamt
35d91ae479
i386:
...
- make tss per-cpu. this considerably speeds up context switch for,
at least, pentium4, where ltr instruction seems very slow.
i386, xen:
- kill cpu_maxproc.
kvm86:
- adapt to per-cpu tss.
- cleanup and simplify.
- move kvm86_mp_lock to more meaningful place.
- disable preemption during a call.
2008-01-04 15:55:28 +00:00
yamt
b860f867c0
use device_xname.
2008-01-04 15:44:58 +00:00
pooka
933a1a1af1
Politely refuse to mount a file system which says its FAT size is
...
zero - our implementation can't handle it (how sensible handling
a case like that would be is a whole other debate).
fixes panic reported by Jukka Salmi on current-users
2008-01-04 14:58:16 +00:00
ad
4c5e4edd5c
Add a kobj_stat() to get basic info about the object, and some other
...
minor changes.
2008-01-04 14:53:32 +00:00
ad
75209c4d35
Fix it.
2008-01-04 14:51:17 +00:00
ad
1dd75d2865
Add a simple in-kernel linker, derived from FreeBSD's link_elf_obj.c. Needs
...
more work but is enough to load simple LKMs. amd64 is untested.
Locking is caller provided. This is decoupled from the LKM framework because
kernel modules need not be loaded from the file system - they could be built
into the kernel and referenced via link set.
2008-01-04 12:26:20 +00:00
kent
16504b27b0
simplify conversion rule between device volume values and userland
...
volume values. Some mixer values never be 255 by this change.
PR#37274
2008-01-04 12:18:00 +00:00
ad
c0cd2b871b
Ignore symbols marked undefined.
2008-01-04 11:28:13 +00:00
smb
0cb6d977ab
Add calls to pmf_deregister on detach.
2008-01-04 03:56:47 +00:00
martin
f0fe5d20cf
lk_interlock is a kmutex_t now
2008-01-04 01:11:30 +00:00
simonb
0bab12ba30
Make this compile with DEBUG enabled (fix a printf format, convert to
...
timecounters).
2008-01-04 01:00:43 +00:00
pooka
9b30791f86
Print "panic: " before panicstr when panicking.
2008-01-04 00:38:24 +00:00
joerg
e6f452fd65
Allow saving of up to 4 PCI registers in the IDE code.
2008-01-04 00:27:27 +00:00
dyoung
17b65ff15d
Disable pci_disable_retry() and cardbus_disable_retry(), with a
...
long comment on pci_disable_retry() (cross-referenced at
cardbus_disable_retry()) that explains why.
2008-01-03 23:15:43 +00:00
joerg
28b31e738f
Timecounter and generic todr support for pmax. From Garret D'Amore.
2008-01-03 23:02:24 +00:00
joerg
26ecc8b33a
Add missing include of dev/clock_subr.h.
2008-01-03 22:35:27 +00:00
jdc
829d5d12dc
Print the "banner-name" property (up to the first '(' character), if
...
it is present, as well as the "name" property.
2008-01-03 21:34:58 +00:00
he
46a379e692
Declare sysbeepdetach(), and protect a small additional section
...
with #if (NPCPPI > 0).
2008-01-03 21:30:16 +00:00
xtraeme
98d660f7bb
Fix indentation.
2008-01-03 21:28:11 +00:00
joerg
02af50dd40
Add assym.h dependency.
2008-01-03 21:17:44 +00:00
joerg
c087080661
Missing assym.h dependency.
2008-01-03 20:58:06 +00:00
joerg
a8affe0a2c
Missing assym.h dependency.
2008-01-03 20:02:22 +00:00
ad
5f56d09078
Bump NKL2_KIMG_ENTRIES to allow for 20MB of kernel.
...
Well past time for an in-kernel linker...
2008-01-03 19:30:10 +00:00
ad
e01dd1a1f8
Use pool_cache.
2008-01-03 19:28:48 +00:00
tron
4ee524a917
Fix perfomance problems for old revisions of the Symbios 53c1030.
...
Patch supplied by Patrick Welche in PR kern/30531.
2008-01-03 18:16:20 +00:00
pooka
89943d2ace
fix vmlocking2 fallout: fstrans_mount/unmount
2008-01-03 18:09:35 +00:00
kent
f8415b4922
code cleanup
...
- use __arraycount
- remove unnecessary M_ZERO flags
2008-01-03 18:00:43 +00:00
elad
86f224903e
Replace malloc/free usage with kmem_alloc/kmem_zalloc/kmem_free.
...
okay yamt@.
2008-01-03 17:51:05 +00:00
kent
c89324c85e
- add initialization for ATI HDMI audio
...
- add custom mixer table for AD1986A by scw@
PR: kern/36140
2008-01-03 17:39:03 +00:00
he
75fc209bcf
Fix a cv_timedwait() usage after the vmlocking2 merge, and remove
...
a now-no-longer-used local variable.
2008-01-03 16:06:24 +00:00
yamt
5661ec0901
- malloc -> kmem_alloc
...
- kill M_EXEC.
2008-01-03 14:36:57 +00:00
yamt
6184f2ada8
malloc -> kmem_alloc
2008-01-03 14:29:31 +00:00
yamt
97436a1e88
fix malloc type mismatches.
2008-01-03 14:25:49 +00:00
ad
202aa39736
- Remove simple_lock calls.
...
- Use mutex_enter/exit where needed.
2008-01-03 13:18:55 +00:00
kiyohara
bd1410f189
Remove white-space.
2008-01-03 07:21:21 +00:00
mrg
9c1261344f
support FS_RAID partitions, and increase the offset by
...
RF_PROTECTED_SECTORS (64) if so.
2008-01-03 06:40:02 +00:00
dyoung
8d9f58ea97
Support detachment of geodegcb(4) and its children, geodecntr(4)
...
and geodewdog(4). Support detachment of gscpcib0 and its child,
gpio0.
2008-01-03 04:52:54 +00:00
dyoung
69d7a3e831
Support detachment of pchb(4) and sysbeep(4).
2008-01-03 04:50:19 +00:00
dyoung
a72fb242fe
Add tc_detach() for detaching a timecounter. It is good enough to
...
detach the AMD Geode SC1100 27 MHz clock, geodecntr(4), but there
may be synchronization problems on MP machines.
2008-01-03 04:42:13 +00:00
jnemeth
87a13edaae
regen -- Symbios Logic 0x0030 is used for both 53c1020/53c1030 from Dave Huang
2008-01-03 03:40:24 +00:00
jnemeth
28cdc331fe
Symbios Logic 0x0030 is used for both 53c1020/53c1030 from Dave Huang
2008-01-03 03:38:32 +00:00
pooka
deeebf9713
Theoretically this is supposed to be interchangeable with real
...
kernel code. Use kmem_alloc/free instead of some wily homerolled
rump interfaces for memory allocation.
2008-01-03 02:48:02 +00:00
pooka
2c7914f588
use UVM_OBJ_INIT/DESTROY()
2008-01-03 02:44:05 +00:00
pooka
daaf5e53c9
initialize error value
2008-01-03 02:38:23 +00:00
christos
79fa20a533
- remove casts
...
- sprinkle static
- move decls inside ifdef
2008-01-03 02:30:08 +00:00
pooka
8e7631e799
make the UFS_EXTATTR case build
2008-01-03 02:23:27 +00:00
pooka
34fa5dc385
struct vop_foo_args comment police: a_l has ceased to be
2008-01-03 02:18:20 +00:00
pooka
d53e261066
valloc -> vnalloc, vfree -> vnfree
...
Avoids collision with userland valloc(3).
no functional change
ad ok
2008-01-03 01:26:28 +00:00
dyoung
09fd56f9ec
Detach attimer at acpi, attimer at isa.
2008-01-03 01:21:44 +00:00
yamt
2129f3c054
malloc: fix freelist corruption.
2008-01-03 01:21:08 +00:00
joerg
c8ad2035a8
Simplify delay based on x86 version.
2008-01-03 01:02:04 +00:00
joerg
62fcc14f1c
ANSIfy.
2008-01-03 00:31:28 +00:00
xtraeme
68d02b93e3
New functionality for arcmsr(4) native management via bioctl(8):
...
Added support to create/remove hot-spare, pass-through disks.
Added support to create/remove volume sets.
Added support to show information about physical disks, even if they
are marked unused, hot-spares or pass-through.
sd(4) devices are attached/detached automagically when a pass-through
disk or volume set is created/removed... thanks scsipi(9) and cube@
for hints.
2008-01-02 23:48:05 +00:00
xtraeme
59a09b45c9
Improve the bio(4) API for incoming changes to arcmsr(4) (and perhaps
...
other drivers in the future):
- Added BIOC_SVCHECKING to the BIOCVOL ioctl, to know if a volume is
running a consistency check.
- Added three more volume levels for the BIOCVOL ioctl.
- Added BIOC_SDPASSTHRU to the BIOCDISK ioctl, to know if a disk is
in pass-through mode.
- Added BIOCDISK_NOVOL; it's used with the same reason than BIOCDISK,
but it's used only to get information about the physical disks connected
in a controller (regardless if they are in a volume set or not).
- Added BIOC_SSDELHOTSPARE, BIOC_SSPASTHRU, BIOC_SSDELPASSTHRU,
BIOC_SSCHECKSTART_VOL and BIOC_SSCHECKSTOPVOL; to remove a hot-spare,
add and remove a pass-through disk and to start/stop a consistency
check in a volume.
- Added the BIOC_VOLOPS ioctl; to create/remove a volume set.
- Removed the BIOCCREATERAID ioctl, it was too limited for my needs.
- Added compatibility ioctls for BIOCDISK and BIOCVOL, enabled via COMPAT_30.
2008-01-02 23:45:03 +00:00
dyoung
e9596bf19e
Introduce a struct cardbus_chipset_tag, and make cardbus_chipset_tag_t
...
a pointer to that struct, so that we cannot assign pointers of
arbitrary type to cardbus_chipset_tag_t. Tweak cbb(4) to accomodate
this change.
Make Cardbus_conf_read() and Carbus_conf_write() pass the right
arguments to cardbus_functions->cardbus_conf_{read,write}() for a
change.
Let's hope this stops the crash in cardbus_function_enable() that
macallan@ reported to me.
2008-01-02 23:11:34 +00:00
dyoung
4f422f7b22
Don't assign a cardbus function tag to a cardbus chipset tag.
...
Michael Lorenz, macallan@, actually found this bug.
(I will change cardbus_chipset_tag_t to a struct * from void *, so
that the compiler will detect similar typos in the future.)
2008-01-02 23:04:25 +00:00
pooka
4f32bae2c1
More type-punning workarounds. Curiously the kernel compilation
...
flags cause gcc to not complain.
2008-01-02 22:37:19 +00:00
pooka
b8121d8a80
silence gcc about break type-punning
2008-01-02 22:33:10 +00:00
dyoung
91345ba277
Do not read past the CIS region. Stops an MCHK exception on macppc
...
(reported by macallan@).
I originally detected this bug by activating 'PCI master target
abort' interrupts on the AMD Elan SC520 processor. Lo and behold,
several interrupts occurred before the system had finished booting!
NetBSD should probably activate PCI exception reporting whenever
it is available.
2008-01-02 22:29:00 +00:00
yamt
5da7542a9d
- elf_load_file: return ENOEXEC instead of 0 in the case of
...
e_phnum > MAXPHNUM.
- exec_elf_makecmds: return an interesting error rather than
always using ENOEXEC.
- reject e_phnum==0.
2008-01-02 22:04:56 +00:00
pooka
f8ff426bbb
fix build for OBJDIR case. noticed by plenty
2008-01-02 22:01:41 +00:00
ad
95ffd8cee1
Another driver that should use getiobuf().
2008-01-02 21:59:45 +00:00
dyoung
03f1738ff9
Use device_t, device_private(). Join some lines.
2008-01-02 21:05:51 +00:00
he
1b2f5d4f55
Remove the #endif corresponding to the #ifdef _KERNEL removed in previous.
2008-01-02 21:00:34 +00:00
dyoung
95bf02050e
Use device_t, device_private().
2008-01-02 20:47:28 +00:00
jmmv
14780346b4
Remove this; objections from joerg@ and ad@, and I agree with them that
...
additional kernel configs are not the way to go because they are not
flexible at all. Plus ad@ is working on a real solution (bootprop).
2008-01-02 20:40:43 +00:00
yamt
22d570119a
use kmem_alloc instead of malloc.
2008-01-02 19:44:36 +00:00
yamt
677860cb8a
use kmem_alloc instead of malloc.
2008-01-02 19:26:45 +00:00
yamt
c68e4b1c69
remove PIPE_WANTW, PIPE_WANTR and PIPE_WANTCLOSE. cv_waiters is enough.
...
this fixes a deadlock between pipe_direct_write and pipeclose.
XXX this code should be simplified.
it's mostly pointless to have two struct pipes linked together,
esp. when we don't support bi-directional pipes.
2008-01-02 19:16:00 +00:00
pooka
4f69d01d2f
Add the ability to run puffs in userspace. This means that puffs
...
can now be developed in userspace using puffs for development
(I hate emulators, they are annoyingly clumsy).
To e.g. mount psshfs using puffs-on-puffs, run fs/bin/syspuffs/syspuffs
with the regular mount_psshfs command line as an argument:
golem> ./syspuffs /usr/sbin/mount_psshfs ftp.netbsd.org:/pub /puffs
This will make the mount appear as usual, with the exception that the
requests will be passed through puffs both in the kernel and userspace:
ftp.netbsd.org:/pub on /puffs type puffs|p2k|puffs|psshfs
2008-01-02 18:15:12 +00:00
ad
77ab895b0c
LKMs don't care about the MULTIPROCESSOR option any more.
2008-01-02 17:52:02 +00:00
yamt
03539d901d
pmap_extract_ma:
...
- TRUE/FALSE -> true/false
- (P == FALSE) -> (!P)
2008-01-02 17:33:08 +00:00
christos
ad809afe5c
PR/37663: Guy Harris: bpf_validate rejects valid programs that use the multiply instruction
2008-01-02 15:58:01 +00:00
pooka
3c068d8021
fix vmlocking2 fallout:
...
* I heard a wild rumor that vp_interlock is a mutex these days (hi ad!)
* init new locks (hi ad)
* observe that with simple_locks only deadlocks would be caught while
releasing unlocked locks would go unnoticed. make locking work (hi pooka)
2008-01-02 15:44:03 +00:00
ad
ae47be00a8
Provide valloc(), fix vfree().
2008-01-02 13:42:47 +00:00
ad
896ac1329e
Build intr.c.
2008-01-02 12:49:53 +00:00
joerg
9f9b7d3adb
Better description, this is not GENERIC after all.
2008-01-02 12:49:30 +00:00
joerg
956f82654b
Add some missing dependencies on assym.h.
2008-01-02 12:46:23 +00:00
ad
888ef28a4d
Fix merge error.
2008-01-02 12:46:07 +00:00
yamt
41f847fb03
make pmap_pv_cache static.
2008-01-02 12:31:32 +00:00
yamt
d450c78d16
g/c pv_page stuffs.
2008-01-02 12:30:30 +00:00
xtraeme
b88ea32e70
- Initialize the callout with CALLOUT_MPSAFE, like it was done before
...
in sysmon_envsys_events.c.
- Separate sme_event_check_low_power() into sme_battery_check(),
sme_acadapter_check() and sme_battery_critical() (no functional changes).
2008-01-02 12:20:26 +00:00
ad
a108410386
Regen.
2008-01-02 11:57:29 +00:00
ad
b4284a686b
Merge vmlocking2 to head.
2008-01-02 11:57:13 +00:00
ad
b2f788f2ae
4.99.48 - vmlocking2 merged
2008-01-02 11:51:59 +00:00
ad
e871738d3d
Regen.
2008-01-02 11:51:15 +00:00
ad
4a780c9ae2
Merge vmlocking2 to head.
2008-01-02 11:48:20 +00:00
mrg
a386f0e8b3
build an INSTALL kernel. it's just GENERIC with md(4) root space.
2008-01-02 11:32:15 +00:00
sborrill
37c7a4d0f3
Configuration file is boot.cfg, not boot.cnf, so fix comments
2008-01-02 10:39:39 +00:00
dyoung
80c0fcd21b
Improve device detach routine. Now I can detach nsclpcsio0 and
...
its children.
Fix an off-by-one bug in the sensor initialization which stopped
it from completing.
Extract sensor initialization into a new subroutine. If there is
an error while initializing sensors, do not let sc_sme dangle.
2008-01-02 10:21:08 +00:00
dyoung
09767a906c
In sysmon_envsys_create(), initialize the callout structure. Stops
...
panics with a DIAGNOSTIC kernel.
In sysmon_envsys_find_40(), wait until an envsys is not busy before
settings its busy flag, in the pattern of sysmon_envsys_find().
2008-01-02 10:15:53 +00:00
dogcow
fad5ee1397
const char casting, to make gcc happy. (not that sun2 compiles these days
...
without other patches.)
2008-01-02 06:53:09 +00:00
pooka
b0e1200d26
unstaticate putterdebug
2008-01-02 05:27:21 +00:00
dyoung
5493a07f14
Use LIST_FOREACH().
2008-01-02 03:06:02 +00:00
mrg
3259c65b6e
add COMPAT_40, raid and RAID_AUTOCONFIG options.
2008-01-02 02:32:25 +00:00
dyoung
5b4182ee05
Use TAILQ_FOREACH().
2008-01-02 02:29:14 +00:00
dyoung
66938db654
Cosmetic: fix indentation.
2008-01-02 02:25:27 +00:00
dyoung
a142fc9c6b
Add a debug message with aprint_debug_dev(). Use the right bus
...
tag.
2008-01-02 02:05:19 +00:00
dyoung
60e2cd65a0
Fix XEN2_DOMU (and amd64?) builds: move ether_mediastatus(),
...
ether_mediachange() to their own module that we compile only if
the kernel configuration demands support for both MII buses and
ethernet. Thanks to Tom Spindler for suggesting that these routines
move to dev/mii/.
2008-01-02 00:41:07 +00:00
pooka
ffd37c1db1
pass mmap to file systems
2008-01-01 22:31:42 +00:00
pooka
d89e3e05a2
emulate a couple more locking interfaces
2008-01-01 22:03:24 +00:00
yamt
48a1e4c2c1
a simple performance monitor based profiler, inspired from linux oprofile.
2008-01-01 21:28:37 +00:00
yamt
13d9847b0a
add swapgs.
2008-01-01 21:24:17 +00:00
yamt
cfb66876d1
try to detect processor resource sharing topologies. ie. package/core/smt IDs.
2008-01-01 20:32:10 +00:00
yamt
7aa31c1c3b
make the nmi handler safer.
...
XXX should use IST.
2008-01-01 19:49:05 +00:00
njoly
dfd4477d85
s/i386/__i386__/.
2008-01-01 17:40:22 +00:00
chris
736004cf1c
Add property to aceride to allow the forcing of compat mode.
...
This allows cats to override the BIOS (aka ABLE) settings, which enable
native mode, but doesn't route the interrupts correctly.
Discussed last year on tech-kern and port-cats.
2008-01-01 14:57:05 +00:00
chris
c93dd30159
Add support for kcore headers to arm32 kernel core dumps.
...
The kcore code is based on i386's kcore header handling.
Having an asm stub for dumpsys, to dump the registers onto the stack, and
then call the C code to do the memory dump is based on amd64's core dump
code.
This allows a successful core dump on cats.
Part of fixing PR cats/18026.
2008-01-01 14:06:42 +00:00
yamt
e01ad62b66
always consider T_NMI as !T_USER regardless of trapframe.
2008-01-01 13:40:20 +00:00
jmmv
e92603e152
Revert previous by removing the apm entry. Even though the driver seems
...
to work, we do not build any userland support for it; see 1.183's commit
message. Per jmcneill@'s request.
2008-01-01 13:35:36 +00:00
yamt
e550a539ee
add x86_cpuid2, which can specify ecx register.
2008-01-01 12:51:08 +00:00
yamt
aa3e923c59
add some dependencies on assym.h.
2008-01-01 11:35:33 +00:00
jmmv
b35cc6641f
Add a trimmed-down configuration file for the VMware Fusion virtual machine
...
suitable for the subset of hardware devices it provides.
2008-01-01 11:20:42 +00:00
jmmv
4d71e761d0
Add the ACPI apm emulation device.
2008-01-01 11:05:27 +00:00
jmmv
14b3c39f2a
Add and enable piixpm. Confirmed working under VMware Fusion.
2008-01-01 10:48:36 +00:00
he
aa5a643b16
Follow up the change to soackaddr_dl by using CLLADDR() and propagating
...
const to camentry().
2008-01-01 01:04:20 +00:00
ad
90d0dce26b
Welcome to 2008.
...
Don't forget to update copyright notices when you add new code.
2008-01-01 00:00:18 +00:00
ad
6f612ecfc5
Put back ttclos, a lot of the drivers use it.
2007-12-31 23:33:08 +00:00
dyoung
73a1d6fbf5
Don't buffer packets while the link is down, but drop them on the
...
floor like most other ethernet drivers do.
bnx(4) has "vanilla" MII media-handling, so use ether_mediachange
and ether_mediastatus.
2007-12-31 22:52:14 +00:00
dyoung
b50b53e4c1
struct ethercom changed. Welcome to 4.99.47.
2007-12-31 22:49:39 +00:00
dyoung
aca36c0c26
Add media-handling code for several ethernet drivers with MII buses
...
to share.
2007-12-31 22:48:41 +00:00
dyoung
040eedb464
Extract common debugging code from gem_tint() and gem_start(),
...
creating gem_txsoft_print().
2007-12-31 21:43:57 +00:00
ad
fe8a16b16c
Hang the correct processes when no output/input available. PR kern/37603.
...
From christos@.
2007-12-31 21:11:13 +00:00
dyoung
34de2dfb48
In gem_tint(), synchronize the correct descriptors for a Tx packet:
...
synchronize the N descriptors starting with the packet's first
descriptor, not with its last. This ought to help the defined(GEM_DEBUG)
&& IFF_DEBUG case.
2007-12-31 21:02:00 +00:00
dyoung
2b99c93d85
gem_start() pads a Tx packet to the minimum ethernet frame length
...
by adding a segment to the Tx chain. That entails using one more
descriptor. It did not synchronize the last descriptor.
In gem_start(), clarify and repair DMA synchronization of the Tx
descriptors. Sync them all.
2007-12-31 20:54:41 +00:00
christos
7b9a3d09d5
no more sleep constants.
2007-12-31 20:48:44 +00:00
dyoung
10769d1048
gem_start() assigned last_txs, but never used it otherwise, so
...
remove it.
2007-12-31 20:39:45 +00:00
dyoung
4941977e05
Cosmetic: remove superfluous parentheses, shorten staircase.
2007-12-31 20:35:11 +00:00
dyoung
ea67dea885
Re-order operations to ensure that if defined(GEM_DEBUG) && IFF_DEBUG,
...
gem_tint() prints a coherent set of descriptors that the NIC has
finished processing. See comments for more information. Compile-tested
on sparc64 and on macppc.
2007-12-31 20:31:02 +00:00
garbled
4ae431e265
On the 745x cpu, you have to invalidate cache slightly differently than
...
you do on the other cpus. Add an if statement that takes this into account.
2007-12-31 18:54:34 +00:00
garbled
1c93f00dd2
Add a bunch of PVR values for a variety of processors. Taken from
...
various manuals, and linux.
2007-12-31 18:44:47 +00:00
ad
2ecdf58c2c
Remove systrace. Ok core@.
2007-12-31 15:31:24 +00:00
martin
4bf6db2543
Fix unusued variable warning (depending on options). Noticed by
...
Adrian Portelli on port-sparc64.
2007-12-31 14:10:15 +00:00
ad
9f6b8c4d04
Remove COMPAT_HPUX.
2007-12-31 13:38:47 +00:00
dyoung
f72e4b15e1
Fix 'tags' target.
2007-12-31 10:45:22 +00:00
dyoung
fd5d1d790d
Use device_t, device_private(), aprint_error_dev().
2007-12-31 09:12:18 +00:00
wiz
41643cbfd9
Proxy-commit for xtraeme:
...
Use sysmon_wdog_unregister(), not sysmon_wdog_register(), in
itesio_detach().
2007-12-31 01:53:58 +00:00
wiz
2af02278c7
Proxy-commit for xtraeme:
...
add dependency for itesio on sysmon_wdog.
2007-12-31 01:52:34 +00:00
macallan
3e23f460d5
'never try to fix more than one thing at once, especially if one is a crash'
...
backout bogus G4 CPU revision 'fix'
2007-12-31 01:37:13 +00:00
pooka
312cc39e60
pull in atomic ops from vmlocking2
2007-12-30 23:30:26 +00:00
pooka
7baf23bce3
fake sigcantmask
2007-12-30 23:29:06 +00:00
macallan
3987217f14
Remove a superfluous /* FALLTHROUGH */
...
Also switch back to waiting for L2CR_L2IP in cpu_enable_l2cr() - now my 2nd
G4 spins up again.
2007-12-30 23:21:21 +00:00
pooka
a5ee2954b8
namespace a bit: vfsops -> puffs_vfsop_x() and vops -> puffs_vnop_x()
2007-12-30 23:04:12 +00:00
pooka
c7ac51486c
tablefull: subr_prf -> subr_prf2
2007-12-30 22:55:21 +00:00
macallan
eddfeaff1f
Fix a logic botch when setting up L3 cache - don't attempt to do so on CPUs
...
that can't have L3 cache. While there also fix revision reporting for MPC7400
so what we report matches MacOS X.
2007-12-30 22:39:15 +00:00
ad
f38bbfb0c5
Pull up 1.104.2.3:
...
Avoid mutex recursion with kqueue. Reported by martin@.
2007-12-30 22:03:01 +00:00
smb
1d2e422408
Add pmf register/deregister to ucom and ugensa. (Addtionally, let a
...
Sierra wireless card be recognized as a ugensa.)
2007-12-30 21:49:47 +00:00
plunky
aeab3db895
request and keep a mask of supported commands per unit in order
...
to block unsupported HCI commands sent by unprivileged users
reaching the device.
2007-12-30 18:26:42 +00:00
joerg
47708a0e13
Missing assym.h dependency.
2007-12-30 16:07:02 +00:00
yamt
33871803b1
pull CMOVxx from the amd64 version.
2007-12-30 13:28:20 +00:00
joerg
8d9503a349
Enable wedge autodiscovery and wedge support for GPT. Both MBR and BSD
...
disklabel support is *not* enabled, but documented.
2007-12-30 13:15:21 +00:00
jdc
c4b53cee4f
Make extent mapping error more meaningful. OK martin@.
2007-12-30 12:54:23 +00:00
joerg
85f3dbd137
i386func.S needs assym.h.
2007-12-30 12:34:12 +00:00
jdc
7d55a9be13
Regenerate for "Add Apple Shasta GMAC (From FreeBSD)".
2007-12-30 09:30:02 +00:00
jdc
1e2c6ece4c
Add Apple Shasta GMAC (From FreeBSD).
2007-12-30 09:28:28 +00:00
skrll
53e9e3b501
G/C all the cpu options it doesn't work and it's not the supported way.
...
Don't add options to COPTS - it loses the default optimisation level.
Kernels are now compiled with -O2.
2007-12-30 08:56:59 +00:00
skrll
250bd03568
Initilise sysctllog to NULL so sysctl_createv, et al don't look at garbage
...
on the stack.
2007-12-30 08:32:14 +00:00
pooka
ec137c87f4
steal 1.4.2.1 from vmlocking2: cv_xwait_sig()
2007-12-30 03:35:20 +00:00
dyoung
7be7d500af
For consistency with other softc members, s/ethercom/bnx_ec/.
2007-12-30 00:56:45 +00:00
dyoung
ae461c2ed3
Cosmetic: remark that EPIC may deserve one or two custom PHY drivers.
...
Change a !(bittest) to (bittest) == 0.
2007-12-30 00:04:47 +00:00
dyoung
66a371fa27
Use LIST_EMPTY(), LIST_FOREACH().
2007-12-29 23:58:48 +00:00
dyoung
13e9109580
De-__P().
2007-12-29 23:12:38 +00:00
reinoud
fc7694435a
Add GENERIC32 configuration file for 32 bit architectures. This
...
configuration includes GENERIC but disables EXEC_ELF64.
2007-12-29 20:22:25 +00:00
reinoud
0202db78c9
define opt constants away for i386
2007-12-29 20:21:01 +00:00
reinoud
39e4fad4c1
*** empty log message ***
2007-12-29 20:19:37 +00:00
reinoud
ebc09eacd8
To make NetBSD/userland to boot on i386 choose some defaults in vmparam.h
...
since for i386 they are defined in page size constants wich NetBSD/userland
doesn't know yet. Also undefine ptrace's __HAVE_PTRACE_MACHDEP since i386
has that but NetBSD/userland not.
2007-12-29 20:07:22 +00:00
dyoung
66c8374872
Get rid of bnx_suspend_resume(), it did redundant resets.
...
Merge bnx_if_stop() and bnx_stop(). Handle bnx_stop(, 1) by doing
a reset.
Protect the bnx_stop() call in bnx_detach() with splnet().
Thanks to joerg@ for suggesting the above.
In bnx_stop(), deactivate the PHYs with mii_down(). Return right
away if !IFF_RUNNING.
Use LIST_EMPTY().
In bnx_ifmedia_upd(), propagate all mii_mediachg() return codes to
the caller except for ENXIO, which just means that the PHY is
suspended. In bnx_init(), propagate bnx_ifmedia_upd() return codes
to the caller.
In bnx_intr(), replace a common subexpression with a variable,
'sblk'.
In bnx_tick(), let the MII bus keep ticking after the link is up:
check link status and exit after calling mii_tick(), not before.
2007-12-29 19:51:38 +00:00
dyoung
401b2c3477
Remove the device_is_active() check from each individual PHY's
...
service routine. Add a wrapper for PHY_SERVICE(), called phy_service(),
and check device_is_active() there. Make the mii_*() routines call
the PHY service routines thorugh phy_service() instead of PHY_SERVICE().
In mii_phy_resume(), restore a PHY's state after resetting it by
sending a MII_MEDIACHG command. This change makes bnx(4) resume
more reliably and more quickly; it should help other NICs to resume,
too, if they attach PHYs through MII.
2007-12-29 19:34:55 +00:00
reinoud
540893b8f7
Fix enough to get i386 more-or-less compiling. The i386 needs u_long to be
...
an unsigned long too or uvm will complain.
2007-12-29 18:30:17 +00:00
dsl
2fb0ada366
Fix build of macppc with COMPAT_MACH
2007-12-29 18:12:37 +00:00
tsutsui
c220cab823
Fix typo in comments.
2007-12-29 17:59:20 +00:00
tsutsui
e5434d17a5
ANSIfy.
2007-12-29 17:54:41 +00:00
tsutsui
7bfee5be48
Fix typo in comments. Mostly from OpenBSD.
2007-12-29 17:53:23 +00:00
jmcneill
402a3d3535
-Dfree=kernfree, to match -Dmalloc=kernmalloc
2007-12-29 17:48:23 +00:00
tsutsui
c3a9c74a16
ANSIfy and some KNF.
2007-12-29 16:54:49 +00:00
tsutsui
8021ef3f6c
Remove __P().
2007-12-29 16:48:03 +00:00
degroote
55718e804e
Fix the ipsec processing in case of USE rules with no SA installed.
...
In case where there is no more isr to process, just tag the packet and reinject
in the ip{,6} stack.
Fix pr/34843
2007-12-29 16:43:17 +00:00
jmcneill
aed987feb1
Add -z to usage strings.
2007-12-29 16:28:40 +00:00
jmcneill
a724fac145
Define init_main's main away to kernmain, and provide our own MD main entry
...
point. We do this since we don't have a proper bootloader, so we can
instead parse boot arguments here.
$ ./netbsd -h
-h: unknown flag
usage: ./netbsd [-acdqsvx]
(ex. "./netbsd -s")
2007-12-29 16:13:46 +00:00
jmcneill
dab73a34c7
Mention -x in command_help
2007-12-29 16:02:46 +00:00
jmcneill
372f1f5260
#ifdef _X86_foo_H -> _ARCH_USERMODE_INCLUDE_foo_H, to match the rest of
...
the sources.
2007-12-29 15:44:31 +00:00
degroote
d23595095d
Restore correctly the sp level in case of FAST_IPSEC + IPSEC_NAT_T
2007-12-29 15:13:55 +00:00
degroote
bd4ac64c48
Add some statistics for case where compression is not useful
...
(when len(compressed packet) > len(initial packet))
2007-12-29 14:56:35 +00:00
degroote
61e79ba32a
Simplify the FAST_IPSEC output path
...
Only record an IPSEC_OUT_DONE tag when we have finished the processing
In ip{,6}_output, check this tag to know if we have already processed this
packet.
Remove some dead code (IPSEC_PENDING_TDB is not used in NetBSD)
Fix pr/36870
2007-12-29 14:53:24 +00:00
jmcneill
e38d794d0c
libkern bits for usermode port.
2007-12-29 14:39:33 +00:00
jmcneill
38365ca359
Import work-in-progress NetBSD/usermode port.
2007-12-29 14:38:30 +00:00
wiz
d190819143
Recognize Marvell 88E1116 Gigabit PHY.
2007-12-29 13:09:36 +00:00
wiz
cd80761b22
regen (+ Marvell 88E1116 Gigabit PHY)
2007-12-29 13:08:53 +00:00
wiz
7bfee0e94d
Add Marvell 88E1116 Gigabit PHY.
2007-12-29 13:08:28 +00:00
plunky
2f47a8f906
remove unused def for btr_uclass
2007-12-29 11:30:27 +00:00
dyoung
f5207c77ac
Use LIST_FOREACH().
2007-12-29 08:19:35 +00:00
agc
112bd8f1d4
Make the version number in the comment match the value given in
...
the definition.
As noted by Hisashi T Fujinaka (htodd) on current-users.
2007-12-29 08:16:46 +00:00
xtraeme
a6d89167f6
Erm, update another comment that was outdated with latest changes.
2007-12-29 06:18:35 +00:00
xtraeme
05c541c9b4
Update a comment that I wanted to correct for long time now...
2007-12-29 06:15:47 +00:00
xtraeme
507639572d
Update itesio(4) comments.
2007-12-29 06:09:04 +00:00
xtraeme
7abc984e72
Added support for the Watchdog Timer built in the IT871[268] Super I/Os.
...
The WDT supports any value between 1 and 65535 seconds (or minutes, but
but the driver only uses seconds).
2007-12-29 06:05:06 +00:00
elad
bb06b7c1b1
4.99.46: addition and removal of 'ep_random' from 'struct exec_package'.
2007-12-29 01:35:30 +00:00
martin
aa1b67be38
Make the copy of the syscall return value to register A0 independend of
...
options COMPAT_AOUT_M68K. Works around PR port-m68k/37631.
XXX we will phase out the copy to A0 completely and handle it in userland
XXX in the future.
2007-12-29 00:02:52 +00:00
joerg
08acf5f65c
Prepare for timecounter support on amiga.
2007-12-28 20:49:49 +00:00
joerg
153e6ec350
Be friendly to timecounter enabled architectures.
2007-12-28 20:18:45 +00:00
riz
42a4e6ef13
As discussed on tech-userlevel, add NetBSD GPT partition types for
...
swap, ffs, lfs, raidframe, ccd and cgd. gpt(8) now defaults to
NetBSD ffs if no type is given, but previous FreeBSD types are
still recognized in the DKWEDGE_AUTODISCOVER code.
2007-12-28 19:53:09 +00:00
ad
d6a5f3c8fa
Pull up 1.71.8.1.
2007-12-28 18:22:16 +00:00
reinoud
a661982b31
Use uvm_vnp_setwritesize() on file extending to instruct UVM to NOT read-in
...
the newly added space first. This significantly speeds up write speed for
msdosfs and making it at par with ffs wich already had this patched.
Speed increase measured on my IDE disc from 2Mb/sec to 32 Mb/sec
2007-12-28 17:46:48 +00:00
elad
0f25f24ed8
Provide 8 more bits of stack randomization, from the PaX author.
...
While here, don't make too much use of one random value, and call
arc4random() directly. Allows for the removal of 'ep_random' from the
exec_package.
Prompted by and okay christos@.
2007-12-28 17:14:50 +00:00
joerg
02d07b4e9d
Remove delaytab and just compute the reminder directly. This requires
...
two muls and a shift, which needs at most 2ms on a 25MHz i386 and should
end up as fast as delay(1) was before due to using a reminder of 2.
Discussed with ad@.
2007-12-28 14:05:22 +00:00
yamt
ac257c9a5b
sprinkle more kmem_poison_check.
2007-12-28 13:49:25 +00:00
ad
afb5e69ead
Pull up 1.87.2.8.
2007-12-28 13:11:16 +00:00
hannken
bdc290470e
maxfiles is now an u_int.
2007-12-28 10:00:18 +00:00
dogcow
0a9401426e
XEN only gets defined in opt_xen.h; move the ifndef check after the include.
2007-12-28 07:04:54 +00:00
garbled
0abe9cf449
Add one more convenience function to rtas, rtas_has_func, and add a
...
global int machine_has_rtas that can be used to decide if a machine has
rtas functionality or not. Take a crack at power off support for the
pegasos, which doesn't work right, probably due to a firmware bug.
2007-12-28 05:12:41 +00:00
garbled
f217f96524
Take advantage of the new rtas_call function and get rid of the uneeded
...
rtas_reboot() function. Still reboots even.
2007-12-28 04:47:37 +00:00
garbled
ae7424d959
Rewrite the rtas_call command, to allow ports to call rtas directly from
...
outside rtas.c, by simply issuing the right token. This makes using the
rtas functionality much simpler.
2007-12-28 04:45:57 +00:00
dholland
9784aa9aba
Regen.
2007-12-28 00:35:23 +00:00
dholland
45274b234f
typo fix: brige -> bridge
2007-12-28 00:34:00 +00:00
ad
0ed5b8dd38
sched_pstats: need proclist_mutex to send signals.
2007-12-27 22:13:19 +00:00
joerg
53c1ce668c
opt_physmem.h only exists for !Xen.
2007-12-27 21:31:35 +00:00
garbled
47b06f10ce
change some printf's to aprint_normal.
2007-12-27 17:49:36 +00:00
garbled
28d432f9cc
Add an infinate loop after the reboot call so we don't somehow drop past
...
it if it fails.
2007-12-27 17:25:02 +00:00
garbled
86909579bf
Make the reboot function work when in single/multi user mode. I have no
...
idea why this makes it work, but apparently it needs to return status,
and if it doesn't, it won't reboot. (unless you call it at the askroot
prompt, then it worked fine). *boggle*.
2007-12-27 17:23:54 +00:00
christos
c9a64311d7
make this compile again.
2007-12-27 17:18:11 +00:00
martin
6cc2e0f273
Remove now superflous (and wrong) extern declaration for maxfiles.
2007-12-27 17:05:28 +00:00
joerg
df7753af9c
Fix typo.
2007-12-27 16:50:43 +00:00
jmcneill
bfa597bd9c
Don't call pmf_check_system_drivers on shutdown.
2007-12-27 16:03:10 +00:00
ad
fb0185d80e
pipe_direct_write: kill a mutex_exit() that escaped.
2007-12-27 15:25:22 +00:00
elad
d36f83120b
PAX_ASLR_DELTA_PROG_LEN -> PAX_ASLR_DELTA_EXEC_LEN, and put it in pax.h.
...
Export randomized bits # for stack and exec base too via sysctl.
okay christos@.
2007-12-27 15:21:52 +00:00
ws
92c079bdac
Change cacheline fixup for 3114's second set of channels, too.
...
Fix provided by Masanori Kanaoka in PR 37519.
Fixed differently to avoid code duplication.
2007-12-27 15:14:23 +00:00
elad
cb6146bcbd
Call pax_init() for PAX_ASLR.
2007-12-27 13:34:43 +00:00
rjs
fa579d4ec4
Change to new softint API.
2007-12-27 12:29:16 +00:00
garbled
cbd61cd9a6
Enable l2 cache on the pegasos
2007-12-27 05:41:51 +00:00
garbled
07cb4134b6
Lots and lots of fixes to the cpu identification code, and dealing with
...
L2 and L3 cache initialization. Mostly to get the L2 enabled on the
pegasos, but since I had the manual, I fixed a few other things I saw
while I was there.
2007-12-27 05:40:49 +00:00
elad
b1111e85d4
Compile in by default (disabled) PaX ASLR for amd64 and i386.
2007-12-26 23:00:50 +00:00
xtraeme
64ee7cfdb7
Fix build without debug enabled:
...
/usr/src/sys/kern/kern_exec.c: In function 'execve1':
/usr/src/sys/kern/kern_exec.c:505: warning: empty body in an if-statement
2007-12-26 22:49:19 +00:00
christos
6a838fb09a
Add missing PAX defines
2007-12-26 22:32:44 +00:00
christos
65c680cad7
Add PaX ASLR (Address Space Layout Randomization) [from elad and myself]
...
For regular (non PIE) executables randomization is enabled for:
1. The data segment
2. The stack
For PIE executables(*) randomization is enabled for:
1. The program itself
2. All shared libraries
3. The data segment
4. The stack
(*) To generate a PIE executable:
- compile everything with -fPIC
- link with -shared-libgcc -Wl,-pie
This feature is experimental, and might change. To use selectively add
options PAX_ASLR=0
in your kernel.
Currently we are using 12 bits for the stack, program, and data segment and
16 or 24 bits for mmap, depending on __LP64__.
2007-12-26 22:11:47 +00:00
joerg
0edb50f1a2
Remove #if 0'ed microtime from the simulator days.
2007-12-26 16:39:27 +00:00
joerg
2b35d82f32
Add PHYSMEM_MAX_ADDR and PHYSMEM_MAX_SIZE options. This limit physical
...
memory based on overall size (useful for debugging to keep core dumps
small) or maximum address (when using devices with bus dma limits).
Contrary to REALBASEMEM and REALEXTMEM, they still use the BIOS memory
map and can therefore deal with fragmented memory.
2007-12-26 16:28:15 +00:00
ad
ea3f10f7e0
Merge more changes from vmlocking2, mainly:
...
- Locking improvements.
- Use pool_cache for more items.
2007-12-26 16:01:34 +00:00
njoly
890b62431b
Regen for readdir syscall.
2007-12-26 13:51:53 +00:00
njoly
3a6c84afbc
Add readdir syscall.
2007-12-26 13:50:48 +00:00
njoly
a09fc3498a
Fix readdir syscall retval to return 1 (instead of getdents number of
...
byte read) on success.
2007-12-26 13:48:53 +00:00
yamt
2cbcb46f49
- share idt entry allocation code among x86.
...
- introduce a function to reserve an idt entry and use it instead of
manipulating idt_allocmap directly.
- rename idt to xen_idt for amd64 xen. add missing #ifdef XEN.
2007-12-26 11:51:10 +00:00
dogcow
453afff1c4
ding dong, the witch is __dead. Not sure why it was even bothered with here.
2007-12-26 10:19:41 +00:00
dyoung
d2a6fcd7d7
Add device suspend/resume/detach. (Tested with drvctl -S bnx0,
...
drvctl -Q bnx0, drvctl -d bnx0.)
Separate device_t storage from softc storage and use CFATTACH_DECL_NEW().
2007-12-26 04:06:29 +00:00
mrg
bc98ae9212
move
...
extern struct powerpc_bus_dma_tag pci_bus_dma_tag;
where everyone can see it. fixes ofppc builds.
2007-12-26 00:58:05 +00:00
he
32dafd4672
Convert to using if_set_sadl() instead of arc_storelladdr(), catching
...
an overlooked setting of ifnet->if_sadl. This follows up the recent
change to net/if.h.
2007-12-25 23:31:26 +00:00
he
81018e0a2e
Bump SYMTAB_SPACE so the symbol table fits again.
2007-12-25 22:47:03 +00:00
perry
b6a2ef7569
Convert many of the uses of __attribute__ to equivalent
...
__packed, __unused and __dead macros from cdefs.h
2007-12-25 18:33:32 +00:00
macallan
7eb34fdf1c
get rid of macppc's private pci_bus_dma_tag
2007-12-25 17:55:10 +00:00
joerg
9a98cd19ff
Add initial version of calling VGA POST from vga_resume. This is the
...
equivalent to "vbetool post" using x86emu in the kernel.
2007-12-25 14:22:25 +00:00
ad
891d658a22
4.99.45 struct buf + pool constants changed
2007-12-25 02:53:38 +00:00
ad
f4c9b5b65a
Make SMP the default on i386. For the time being the noacpi kernel does
...
not have it enabled.
2007-12-25 01:03:31 +00:00
ad
76184a8cdc
Wups, the log softint can't be mpsafe yet.
2007-12-25 00:00:00 +00:00
garbled
a42bf0b72b
Fix a segv if you forget to set the -m option.
2007-12-24 19:34:41 +00:00
hamajima
0e3cc22bed
Add compat_13_netbsd32_sigreturn() for 32bits programs with COMPAT_13+EXEC_AOUT.
2007-12-24 17:35:00 +00:00
hamajima
e56b5e9499
Match on board ethernet controller on VGN-TX91PS.
2007-12-24 17:07:40 +00:00
hamajima
2b65bf0e5d
regen.
2007-12-24 17:05:52 +00:00
hamajima
e4fcdf9886
Add Intel 82801GB Ethernet Controller
2007-12-24 17:03:20 +00:00
ad
31224ff917
Make values of PR_WAITOK/PR_NOWAIT match KM_SLEEP/KM_NOSLEEP. This makes it
...
trivial to emulate most of Solaris' kmem_cache interface with a few macros.
2007-12-24 16:45:16 +00:00
njoly
1a1f7ef9de
Regen for old_uname syscall.
2007-12-24 15:57:01 +00:00
njoly
1fe07a25dd
Add old_uname syscall.
2007-12-24 15:56:20 +00:00
perry
970ad9314d
Remove __attribute__((__noreturn__)) from things already marked __dead
...
Found by the department of redundancy department.
2007-12-24 15:46:45 +00:00
ad
e2209e397c
Install sys/atomic.h
2007-12-24 15:15:47 +00:00
ad
c2e7ec2566
Reserve a major for ZFS.
2007-12-24 15:12:05 +00:00
ad
2e1c75d2bd
Don't hide members of 'struct buf' behind macros. It can confuse 3rd party
...
source that uses the same element names.
2007-12-24 15:11:19 +00:00
ad
aeb73b56d5
b_un.b_addr -> b_data
2007-12-24 15:06:38 +00:00
ad
1af608286b
Export do_sys_unlink, do_sys_rename to the rest of the kernel.
2007-12-24 15:04:19 +00:00
ad
bc64d5411e
b_un.b_addr -> b_data
2007-12-24 15:00:20 +00:00
ad
57afe5efd9
+ MOUNT_ZFS, VT_ZFS
2007-12-24 14:58:37 +00:00
ad
ce6680f888
Add back mutex_owner() for Solaris compat.
2007-12-24 14:57:56 +00:00
smb
34da33dfe3
Add missing call to pmf_deregister() in the USB_DETACH routine.
2007-12-24 14:41:19 +00:00
njoly
0cebe57b9c
Regen for getpgid.
2007-12-24 14:26:50 +00:00
njoly
122287e6f0
Add getpgid syscall.
2007-12-24 14:25:30 +00:00
njoly
24eca5e1f1
Regen for linux_sys_getpgid removal.
2007-12-24 14:21:40 +00:00
njoly
47bf9f4b4d
Kill unneeded linux_sys_getpgid and use native sys_getpgid instead.
2007-12-24 14:17:17 +00:00
phx
66e67a4f6b
Make USB, IEEE1394 and viaaudio attach to the Pegasos2.
...
USB works fine. IEEE1394 is untested. Audio doesn't work (playing white noise).
Need to set IO/MEM-enable for IEEE1394 and audio, as the firmware (Smart
Firmware 1.2) doesn't do it.
Patch approved by Tim Rightnour.
2007-12-24 13:54:58 +00:00
kiyohara
51311b8619
Remove white-spaces.
2007-12-24 07:54:26 +00:00
macallan
7500033ffa
check for __HAVE_PRIVATE_PCI_BUS_DMA_TAG instead of macppc when (not)
...
declaring pci_bus_dma_tag
while there move #include <machine/isa_machdep.h> to the ISA block so archs
without ISA won't see it. Now macppc builds again.
2007-12-24 01:31:08 +00:00
macallan
ddf0036d4b
#define __HAVE_PRIVATE_PCI_BUS_DMA_TAG
2007-12-24 01:27:34 +00:00
rmind
862a6b5f0b
OK, I was using whisky..
...
Fix previous - use foreach, and just return after first found entry.
The pmf_all_events list should not have duplicate entries (perhaps
pmf(9) should document this point).
2007-12-23 23:19:11 +00:00
joerg
83ba2e10a4
Remove dead power handling code.
2007-12-23 22:21:56 +00:00
rmind
099e4a9a20
pmf_event_deregister: fix use-after-free.
...
Found by: CID 4754.
2007-12-23 22:09:39 +00:00
jmcneill
940524edab
Deregister activity handler on detach.
2007-12-23 19:14:03 +00:00
jmcneill
13f097963d
Always enable the Fn key quirk if a device node for the Sony Programmable
...
Interrupt Controller (SNY6001) is not present.
2007-12-23 18:03:02 +00:00
jmcneill
087888e1dd
Add sony* at acpi?
2007-12-23 17:33:57 +00:00
jmcneill
9f7f6d9be0
Move Sony Notebook Controller (sony(4)) driver from MD to MI directory,
...
as it can be used on amd64 as well.
2007-12-23 17:29:26 +00:00
jmcneill
8f31e2d8cd
Remove wskbd attachment, it never worked right anyway. Instead, deliver
...
hotkey events to powerd.
2007-12-23 17:25:45 +00:00
rjs
4cec9c5ce2
Fix prototype.
2007-12-23 10:28:39 +00:00
hannken
f20fe37f57
Fix include order: netbsd32_syscallargs.h needs svr4_32_types.h.
2007-12-23 10:18:48 +00:00
tsutsui
0cbdb8cc76
Use __arraycount().
2007-12-23 03:04:57 +00:00
jmcneill
8fce0f055c
Move display switching out of the kernel; deliver this (and other) events
...
to sysmon so a powerd script can handle them.
2007-12-22 18:38:13 +00:00
jmcneill
ebad57771c
Handle hotkey events using /etc/powerd/scripts/hotkey_button, ok xtraeme
2007-12-22 18:35:13 +00:00
dsl
a1e817b5ba
Define 'struct intrframe' in terms of 'struct trapframe' since the two are
...
assumed to match by a lot of code (including that which saves the regs).
This only slightly reduces the number of places the trapframe register
layout is defined.
2007-12-22 18:35:00 +00:00
christos
4d16498d9e
Use M_NOWAIT in audio_stream_ctor; it can be called from a softintr context
...
through pmf_resume.
2007-12-22 18:34:56 +00:00
christos
18bf1f8006
someone forgot /g in the vi s command.
2007-12-22 17:49:32 +00:00
dsl
44a023c35b
Further constification of the syscall args buffer.
...
It will get __UNCONST() applied in the systrace code if/when systrace tries
to change the arguments. This sucks since the syscall args might be in
the trap frame, and the syscall might return ERESTART so the restarted call
would use the wrong arguments.
OTOH systrace() (as a security measure) is almost impossible to implement
for a threaded app (validated filenames can be changed before namei() reads
them into memory).
The current code is just plain broken for threaded apps - data that needs
to be lwp-specified is proc-specific.
I believe ad is planning to nuke systrace ...
2007-12-22 16:19:34 +00:00
matt
f7dbcaa3d4
Make sure ip_newid etal doesn't return an ip_id of 0.
2007-12-22 16:04:45 +00:00
ad
08b0783a17
t_linesw->l_modem would ideally be called with tty_lock held, but before
...
that can happen someone needs to beat all the drivers into shape.
2007-12-22 15:45:15 +00:00
matt
0ec69f885b
Fix offset calculation.
...
Make sure that all frags use the same TOS.
2007-12-22 15:41:11 +00:00
matt
f064a5136b
Add ipq_tos to struct ipqe. (Doesn't increase size since the last member
...
was a u_int16_t).
2007-12-22 15:40:02 +00:00
ad
a11ac30cf3
Don't recursively acquire tty_lock when zstty_softint() is called directly.
2007-12-22 15:36:37 +00:00
ad
93b4e84394
membar_memory -> membar_sync
2007-12-22 15:33:42 +00:00
tsutsui
9e4e6d48cb
In icu_intr_establish(), don't panic if the specified irq
...
is already in use and just return NULL instead.
Such situation could happen with devices which have
unconfigured PCI interrupt pins (because firmware
doesn't configure multiple function devices) and
each driver could handle the return value properly.
2007-12-22 14:42:21 +00:00
skrll
6698b79073
Minor change to comment.
2007-12-22 14:14:31 +00:00
skrll
c54df2db09
Add some more trap types and HPPA_BREAK_SS. From OpenBSD.
2007-12-22 14:11:10 +00:00
skrll
4fef0969e0
Align the stack when delivering signals and don't waste a HPPA_FRAME_SIZE.
2007-12-22 14:09:03 +00:00
skrll
0361d1fef2
Cast the argument to HPPA_FRAME_ROUND to uintptr_t
2007-12-22 14:06:47 +00:00
jmcneill
6fffc8ef3c
Add experimental display switching support.
2007-12-22 13:06:30 +00:00
dsl
43e74e4cc8
Add a few buckets of 'const' and 'static' to the system call trace code.
...
sys_trace() still needs to be able to update the syscall args.
2007-12-22 11:38:54 +00:00
dsl
35e44a2658
Fix the remaining sys_sysarch() stub function.
2007-12-22 08:59:02 +00:00
tsutsui
b3b089f419
Use (char *) on pointer arithmetic.
2007-12-22 08:29:40 +00:00
tsutsui
f498887b08
Apply changes for struct ifnet->if_sadl constify:
...
http://mail-index.netbsd.org/source-changes/2007/12/20/0033.html
2007-12-22 08:23:01 +00:00
tsutsui
f35eb8772f
Put a workaround for gcc ICE on ddb/db_command.c.
2007-12-22 08:17:57 +00:00