elad
9778bb7296
make veriexec.h be generated again; thanks cube@
2006-07-25 18:04:03 +00:00
riz
e0f4b4c3cf
Adapt to change in args for falloc(). Reported by Hisashi T Fujinaka
...
on current-users.
2006-07-25 05:14:38 +00:00
mrg
9eca1294f7
fix a typo in a comment and a very minor KNF.
2006-07-25 00:23:38 +00:00
dogcow
cc44d2fe07
mechanically go through and
...
s,include "veriexec.h",include <sys/verified_exec.h>,
as the former has apparently gone away.
2006-07-25 00:23:06 +00:00
dogcow
52a142f555
fix typo in utterly uncompilable code.
2006-07-25 00:10:42 +00:00
elad
05eb39fb84
replace magic numbers for strict levels (0-3) with defines.
2006-07-24 21:32:39 +00:00
elad
32e391d158
finally do things properly. veriexec_report() takes flags, not three ints.
2006-07-24 21:15:05 +00:00
manu
a640310a53
typo
2006-07-24 19:01:49 +00:00
gdt
cf30106955
Add UGEN_BULK_RA_WB, requested by cube@.
2006-07-24 17:41:30 +00:00
elad
5d611badde
some fixes:
...
- adapt to NVERIEXEC in init_sysctl.c.
- we now need "veriexec.h" for NVERIEXEC.
- "opt_verified_exec.h" -> "opt_veriexec.h", and include it only where
it is needed.
2006-07-24 16:37:28 +00:00
kardel
587059915b
get tickle_tc() prototyped unconditionally
2006-07-24 16:37:24 +00:00
elad
93a2eaef51
prevent removal of monitored files as early as ids mode.
...
okay blymn@
2006-07-24 16:27:15 +00:00
gdt
f9f3dc0a85
Add UGEN_BULK_RA_WB, which allows users of ugen(4) to request read
...
ahead and write behind, improving performance for the Universal
Software Radio Peripheral (USRP) used with GNU Radio.
Enable UGEN_BULK_RA_WB in GENERIC and GENERIC_LAPTOP; behavior is
unchanged unless the new ioctl is called.
This code was written by Joanne Mikkelson under funding from DARPA's
ACERT program.
ok'd by christos@, tested by Berndt Josef Wulf
2006-07-24 14:24:48 +00:00
drochner
53f4a934ae
revert previous (executable mapping of data needed for secondary CPU
...
spinup), this is not needed anymore
2006-07-24 10:57:13 +00:00
drochner
b5d3716437
Set the "NXE" bit (if available) early, before the cpu_info struct
...
is accessed. Without this, the (secondary) CPU chokes on the NX bit in
the PTE.
2006-07-24 10:55:25 +00:00
ad
f474dceb13
Use the LWP cached credentials where sane.
2006-07-23 22:06:03 +00:00
kent
6f99efd46f
For ThinkPad T60, make the default value of outputs.linein.dir "output"
2006-07-23 16:05:21 +00:00
bouyer
d252c65e9c
Add a /dev/amr* control file for amr(4) devices, which allows sending raw
...
commands to the controller.
Add a amrctl(8) control tool, which for now only allows to get status
from the adapter (status of adapter, logical volumes and and individual
drives).
From FreeBSD, with some adjustements by Andrew Doran and me.
2006-07-23 12:01:25 +00:00
uwe
68272cc770
tlb_exception: Move and indent TLB_ASSERT to reduce visual clutter.
...
Fix function name in the panic message. Print expevt on panic.
Split panic message so that the dumped numbers are on a separate line.
2006-07-22 22:43:43 +00:00
uwe
3ed02eac7c
exp_type[] was constified in exception.c but an extern declaration in
...
db_interface.c was not updated. Declare it publicly. While here,
constify the array itself too.
2006-07-22 21:58:29 +00:00
tsutsui
84180e1158
- reorganize bootinfo structures and fix bootinfo handling in bootloader
...
(mostly based on pmax)
- pass symbol info from bootloader to kernel via bootinfo
(currently bootinfo is allocated in the bootloader and
copied by kernel later; maybe we should rethink about this)
- use passed bootinfo to initialize ksyms(4) in kernel
- remove options SYMTAB_SPACE from kernel config files
- bump bootloader version
2006-07-22 18:15:05 +00:00
rpaulo
25ec6d007f
revert stuff that shouldn't have gone in.
2006-07-22 17:45:03 +00:00
rpaulo
f5f6aa2ed3
TCP RFC is 793, not 783.
2006-07-22 17:39:48 +00:00
martin
a4cb6f93d2
Remove unused variable to make it compile again.
2006-07-22 15:09:09 +00:00
tsutsui
6efaa65c79
Add "-I${S}/../common/include" to CPPFLAGS for libprop sources in libkern.
...
XXX: shouldn't this be handled by sys/lib/libkern/Makefile.inc?
2006-07-22 14:11:35 +00:00
elad
e2706baefd
kill a VOP_GETATTR() we don't need for veriexec.
2006-07-22 10:40:49 +00:00
elad
a92c1615a4
deprecate the VERIFIED_EXEC option; now we only need the pseudo-device to
...
enable it. while here, some config file tweaks.
tons of input from cube@ (thanks!) and okay blymn@.
2006-07-22 10:34:26 +00:00
elad
a6e0095c33
oops, no 'p' here. from xtraeme@.
2006-07-22 09:59:24 +00:00
elad
7e7591e119
if LOCKDEBUG, assert that we can sleep in kauth_authorize_action().
...
discussed with yamt@ on tech-kern.
2006-07-22 09:24:25 +00:00
elad
6f83bb0086
don't call kauth_authorize_generic() when holding a lock, from yamt@.
2006-07-22 09:22:21 +00:00
yamt
54a9d2b0f7
- genfs_getpages: in the case of PGO_LOCKED, check if we can acquire
...
g_glock as suggested by Chuck Silvers on tech-kern@.
- genfs_rel_pages: handle PGO_DONTCARE so that it can be used for the above.
2006-07-22 08:49:13 +00:00
yamt
f9458a6ba1
- in genfs_getpages, take g_glock earlier so that it can't be
...
intervened by truncation.
it also fixes a deadlock. (g_glock vs pages locking order)
- uvm_vnp_setsize: modify v_size while holding v_interlock.
reviewed by Chuck Silvers.
2006-07-22 08:47:56 +00:00
tsutsui
83d364980f
TAB/space cleanup.
2006-07-22 06:58:17 +00:00
tsutsui
ecc22258ee
- remove parentheses from return
...
- remove trailing spaces
2006-07-22 06:42:41 +00:00
tsutsui
999dc402f0
KNF, remove register decls
2006-07-22 06:40:44 +00:00
tsutsui
9b4ab881f1
- include <m68k/m68k.h> for fputype decl
...
- some KNF
2006-07-22 06:40:20 +00:00
tsutsui
2bf43cdfa1
remove __P(), ANSIfy, KNF, use pmap_t rather than struct pmap *
2006-07-22 06:37:27 +00:00
tsutsui
2895c250c2
KNF, ANSIfy, remove register decls
2006-07-22 06:36:06 +00:00
tsutsui
4d891ed888
KNF and misc cosmetics
2006-07-22 06:34:41 +00:00
tsutsui
f430313b2d
- remove unused decls.
...
- remove parentheses from return arg
2006-07-22 06:32:17 +00:00
tsutsui
c15c158ffc
KNF, ANSIfy, de-__P(), bzero() -> memset()
2006-07-22 06:27:00 +00:00
uwe
acfbe0b252
Report traps from user break controller as ksi_code = TRAP_TRACE
2006-07-22 03:22:15 +00:00
uwe
2e7b010133
Minor cosmetics.
2006-07-22 03:06:56 +00:00
uwe
43d9f78e91
Using "irq" in different functions to either x or 1<<x is confusing.
...
Rename.
2006-07-22 02:13:06 +00:00
uwe
c50fbd7f2b
We don't need to update HD6446X_NIMR when (dis)establishing an
...
interrupt as splx will update it from the recomputed mask anyway.
2006-07-22 01:53:49 +00:00
uwe
485a350c1b
hd6446x_intr_priority_update: simplify.
2006-07-22 01:34:55 +00:00
uwe
e8ceae81ee
Shave off one instruction in hd6446x_intr_raise.
2006-07-22 01:16:16 +00:00
gdamore
b846198ad4
Initial implementation for Marvell 88E6060 10/100 5-port PHY switch, from
...
Sam Leffler, used in various products including AR5312-based designs. This
is not enabled in any configs yet, nor tested by anyone other than Sam. I
will be testing this more later, and adding it to appropriate configs once
I have verified (unless someone else beats me to the punch.)
2006-07-21 23:55:27 +00:00
tsutsui
b6558b0616
Use bus_space_map(9) and bus_space_vaddr(9).
2006-07-21 18:40:58 +00:00
tsutsui
a75de8e2db
Use more proper macro.
2006-07-21 18:11:01 +00:00
tsutsui
3c612311d0
Use bus_space_map(9) and bus_space_vaddr(9) rather than iomap().
2006-07-21 18:05:30 +00:00
kent
15c376e363
* azalia_init_corb()
...
No need to confirm CORBRPRST is set even with ICH6/ICH7
2006-07-21 17:30:26 +00:00
gdamore
01f0465721
Regen.
2006-07-21 17:20:59 +00:00
gdamore
e3a079b540
Update ADMtek pci device ids to match data sheets. While here, add the 9513
...
device (although I've never seen one, I have a datasheet for it. :-)
2006-07-21 17:20:20 +00:00
ad
3029ac48c7
- Use the LWP cached credentials where sane.
...
- Minor cosmetic changes.
2006-07-21 16:48:45 +00:00
tsutsui
888ea5adc5
Use macro defined in dioreg.h.
2006-07-21 15:14:11 +00:00
kent
21623cc733
support for EAPD, Balanced I/O, and LR-Swap
2006-07-21 14:40:12 +00:00
yamt
13170f18a9
assert_sleepable: panic if curlwp == NULL.
2006-07-21 10:22:51 +00:00
yamt
696edc2b76
use ASSERT_SLEEPABLE where appropriate.
2006-07-21 10:08:41 +00:00
yamt
9862c5bef2
add ASSERT_SLEEPABLE() macro to assert we can sleep.
2006-07-21 10:07:29 +00:00
tsutsui
7d4b57d7bc
Some KNF.
2006-07-21 10:01:39 +00:00
perseant
1e9b73d972
Oops, commit the correct version of lfs_rfw.c. The roll-forward functionality
...
is known not to work in this version (as it did not previously) but it should
at least compile.
2006-07-20 23:56:27 +00:00
perseant
83771be892
Separate the (non-working) LFS kernel roll-forward code into its own file,
...
lfs_rfw.c.
2006-07-20 23:49:07 +00:00
bjh21
cf7ce97e4b
Silly error: xos_cli() should call XOS_CLI, not OS_CLI.
2006-07-20 23:35:20 +00:00
perseant
20227e112e
Note partial segments that are written by the cleaner, to help out the
...
roll-forward agent.
2006-07-20 23:16:50 +00:00
perseant
186ffd50ab
Loop on the check for lfs_nowrap, so we don't allow a process to squeeze by.
2006-07-20 23:15:39 +00:00
perseant
5fdcd70349
Move the kauth checks up front, so that all new LFS fcntl calls are subject
...
to the check for superuser privilege.
2006-07-20 23:14:09 +00:00
perseant
8c161d1081
Don't try to write all the vnodes, when the cleaner needs a vnode to be
...
recycled.
2006-07-20 23:12:26 +00:00
christos
cb6bd87d8a
PR/34043: mrt at notwork dot org: 3.99.22 kernel crashes at *_vptofh() called
...
from vfs_composefh_alloc() due to uninitialized "fidsize".
2006-07-20 16:18:14 +00:00
christos
1c50629119
When there are too many empty entries in a row, and we need to try to
...
read the next block, free the cookie buffer before doing so to avoid
a memory leak. Reported by Mark Davies.
2006-07-20 15:12:23 +00:00
tsutsui
2e21abf224
Identify models HP362 and HP382. From OpenBSD, tested on my HP382.
...
Note now options HP362 and options HP382 are required for these models
in your kernel config file.
2006-07-20 13:21:38 +00:00
rumble
ec5b122721
Regen.
2006-07-20 13:12:32 +00:00
rumble
4d3ba0cd44
Beautify.
2006-07-20 13:12:01 +00:00
rumble
db767e167c
Add entries for the Phobos G100, G130 and Set Engineering GIO Fast Ethernet
...
cards.
2006-07-20 13:11:27 +00:00
bjh21
5bdcc8987d
-mshort-load-words has been removed in GCC 4. It was only an optimisation,
...
so just stop using it.
2006-07-20 10:53:12 +00:00
rumble
b0631951f9
Disable haltwo(4) by default. The driver does not properly determine when
...
the audio hardware is not present and causes a hang on Challenge-S systems.
Approved by pooka@ and sekiya@.
2006-07-20 10:37:25 +00:00
cube
2d03dc4c3e
Fix an obvious overlook (struct fileassoc_hook is not defined in
...
fileassoc.h anymore). I could say "please compile-test", but then, I'm not
doing it either for that commit.
2006-07-20 09:00:41 +00:00
kochi
c8920f2898
eliminate bogus acpi debug #define symbols
2006-07-20 05:05:26 +00:00
ad
fe65535924
Try again.. Move l_cred into the startzero section, and fix the define.
...
Doesn't change the layout of struct lwp.
2006-07-20 00:17:10 +00:00
ad
464ac13fb4
Bump version to NetBSD 3.99.23 (LWP creds).
2006-07-19 22:29:25 +00:00
ad
c0f87b2ba1
Move l_acflag into the section that gets zeroed in newlwp().
2006-07-19 22:06:09 +00:00
ad
2b79369c7e
- Hold a reference to the process credentials in each struct lwp.
...
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.
2006-07-19 21:11:37 +00:00
tsutsui
2c2371cf55
Adjust comments.
2006-07-19 19:29:02 +00:00
tsutsui
82cc83ca42
Set cpuspeed for HP_400 and HP_425 explicitly.
2006-07-19 19:25:48 +00:00
tsutsui
4c07c7291c
Adapt stand sources to changes of intio device offset macro.
2006-07-19 19:23:56 +00:00
tsutsui
e4b249fede
oops, fix typo
2006-07-19 18:28:58 +00:00
tsutsui
d0e89b46cb
- strncpy() -> strlcpy()
...
- adjust buffer length
2006-07-19 18:25:40 +00:00
tsutsui
83ed44a817
some KNF
2006-07-19 17:32:15 +00:00
tsutsui
f94698e954
Define base address offsets of intio devices in intioreg.h
...
and replace various magic numbers with the macro.
2006-07-19 17:21:23 +00:00
tsutsui
33663964ec
Use iobase address passed from attach args.
2006-07-19 17:18:03 +00:00
tsutsui
d72fb94231
- use __arraycount()
...
- remove parentheses from return values
2006-07-19 16:23:41 +00:00
tsutsui
6b93d0f87d
Use CPUFLAGS="-march=vr5000 -mabi=32".
2006-07-19 15:33:53 +00:00
blymn
36c3e07ffa
Add destination file vnode to rename checking.
2006-07-19 12:45:19 +00:00
blymn
ee551118c6
Add extra argument to rename check to check destination file.
2006-07-19 12:44:11 +00:00
kent
9f8e1fe441
fix crash by reading a mixer value with AD1981HD codec, which
...
has invalid connection lists.
2006-07-19 02:40:18 +00:00
itohy
67d67209d7
Make new device (vendor 0x1317, product 0x9511) work as AN983.
2006-07-18 14:26:57 +00:00
itohy
3cb3cfb1dd
Regen from pcidevs rev 1.807.
2006-07-18 14:21:02 +00:00
itohy
060bfcacf0
Identify vendor 0x1317, product 0x9511 as ADMtek AN983B,
...
since OpenSolaris says it is "ADMTek Comet 983b".
2006-07-18 14:19:14 +00:00
tsutsui
fd040c4006
Add and update misc items.
2006-07-18 13:24:39 +00:00
tsutsui
e621e8f3df
- always enable options MIPS3_ENABLE_CLOCK_INTR so that spllowerclock(9)
...
works properly
(XXX: the real fix is to implement proper CLFK_BASEPRI())
- prepare an independent statclock(9) handler which use MIPS3 CPU internal
clock interrupt. Enabled by options ENABLE_INT5_STATCLOCK, but not enabled
by default.
2006-07-18 12:51:01 +00:00
tsutsui
fe55d37a26
Remove obsolete comment.
2006-07-18 12:21:42 +00:00
salo
36848f108e
G/C apm_power_print() for APM_POWER_PRINT case, make it compile.
...
ok <christos>
2006-07-17 21:04:17 +00:00
christos
52f01eaf1c
remove lhs cast for gcc4
2006-07-17 19:29:31 +00:00
gdamore
df112a3055
Wait a little longer, because some devices (eg bt3c) take a few seconds to
...
enable when they are loading firmware so we need to wait a bit longer.
Patch from Iain Hibbert, at his request.
2006-07-17 19:20:16 +00:00
elad
8ee43586ab
move the fileassoc_delete_file() call above the VOP_REMOVE() one, yamt@
...
says vp might not be valid after it.
2006-07-17 19:05:36 +00:00
ad
e7447d9340
- Always make p->p_cred a private copy before modifying.
...
- Share credentials among processes when forking.
2006-07-17 15:29:06 +00:00
ad
16fc727817
Just use proc0.p_cred where root credentials are needed, instead of
...
allocating a new kauth_cred_t.
2006-07-17 14:49:16 +00:00
ad
2af3d29e01
- Don't cast kauth_cred_t to (struct ucred *), just set pc_ucred = NULL.
...
- Fill ucred::cr_ref.
2006-07-17 14:47:02 +00:00
ad
55a5faa1ef
- Only acquire cr_lock when changing cr_refcnt.
...
- When freeing, test the value of cr_refcnt from inside the lock perimiter.
- Change some uint16_t/uint32_t types to u_int.
- KASSERT(cr_refcnt > 0) in appropriate places.
- KASSERT(cr_refcnt == 1) when changing the credential.
2006-07-17 14:37:20 +00:00
christos
ef1750eb29
make APM_POWER_PRINT compile.
2006-07-17 13:23:46 +00:00
martin
5958a5d814
This requires <sys/lock.h> - make it include it directly.
2006-07-17 11:38:56 +00:00
martin
d91f1187f9
Back out previous - it apparently was not even compile tested.
2006-07-17 11:36:50 +00:00
christos
7358f7042d
PR/34007: Noriyuki Shiota: vmstat fails on the multiboot kernel booted by
...
GRUB-0.97. Initialize some previously unititiazed ELF header fields.
2006-07-16 21:16:22 +00:00
elad
77de54cbf0
get rid of CURTAIN() macro. inline the last use of it, together
...
with a nice XXX comment (assigned to me of course) that we should
be doing this differently.
2006-07-16 21:13:00 +00:00
elad
d4410e6fde
CURTAIN() -> KAUTH_GENERIC_CANSEE.
2006-07-16 20:21:42 +00:00
elad
d9a7152c3e
add KAUTH_GENERIC_CANSEE, which is like the KAUTH_PROCESS_CANSEE, only
...
for two kauth_cred_t rather than kauth_cred_t and struct proc *.
advise against using it in the man-page; it should be used only in cases
where we either don't have an object-specific op or when we can't easily
use one.
2006-07-16 20:10:11 +00:00
elad
9be7229906
expose less api; prompted by yamt@.
2006-07-16 19:37:55 +00:00
kardel
e804524e26
fix another t{s,v}tohz() fallout (invalid remaining time)
...
now passes regression/sys/kern/sleeping
2006-07-16 19:23:11 +00:00
elad
c6d34abf63
oops, forgot to commit that one. thanks Arnaud Lacombe.
2006-07-16 18:49:29 +00:00
cube
b1b29cb4ae
Remove that example. It was obsolete even before 3.0 release.
2006-07-16 10:52:22 +00:00
yamt
402cb9eb95
adapt to vfs_copyinfh -> vfs_copyinfh_alloc rename.
2006-07-16 07:52:02 +00:00
rillig
f2634b6a2b
Reordered the declaration-specifiers so that "inline" comes before
...
"int", which fixes a gcc warning.
2006-07-16 06:32:42 +00:00
rillig
07e31b3af5
When debugging output is disabled, define DPRINTF() to a proper
...
statement expression instead of the empty string. Fixes a gcc warning in
ibcs2_ioctl.c.
2006-07-16 06:31:42 +00:00
rillig
b102417f76
Fixed the gcc warning that "static" should come before "const".
2006-07-16 06:06:20 +00:00
rillig
e769ad7ca4
Added type information for the parameter r of isapnp_read_reg.
2006-07-16 06:01:03 +00:00
gdamore
d5875505ba
Remove unused memp. Fixes coverity CID 3713 from run 61.
2006-07-15 20:52:59 +00:00
elad
4f60437127
minor api cleanup, and remove useless VOP_GETATTR() calls.
2006-07-15 20:07:36 +00:00
elad
a904c6895a
update my email on the copyright to @netbsd.org
2006-07-15 16:48:51 +00:00
elad
a890e27076
move veriexec_clear() from dev/verified_exec.c to kern/kern_verifiedexec.c
2006-07-15 16:43:35 +00:00
elad
e3f6ad54bf
dont use magic numbers.
2006-07-15 16:42:12 +00:00
elad
904a157292
some cleanup and fixes:
...
- fix possible panic and vfs refcnt issue
- use log(9) instead of printf(9) where possible
- indent
- stop logging fsid/fileid
2006-07-15 16:33:16 +00:00
martin
631d071e84
FHANDLE_SIZE_MIN is an allowed value for the requested size (it happens
...
to be the old static size on 32bit archs, so the compat_30 code uses it)
2006-07-15 16:32:29 +00:00
tsutsui
970c192eba
- configure PCI space for viaide so that DMA will work even if the firmware
...
doesn't map DMA registers properly
- enable viaide secondary port explicitly which isn't enabled by some firmware
Tested on RaQ and RaQ2.
2006-07-15 08:08:23 +00:00
elad
c4afa933de
add (commented out) fileassoc(9) kernel options on some popular archs.
2006-07-15 07:55:20 +00:00
skrll
96bba029ff
KNF
2006-07-15 06:44:43 +00:00
yamt
96cfc7d98a
remove unused code and add some comments.
2006-07-15 06:33:40 +00:00
yamt
73f44d02f7
do_setresuid, do_setresgid: use the suser privilege only when necessary.
2006-07-15 06:31:34 +00:00
yamt
bfe8806772
kauth_cred_setgroups: fix an assertion.
2006-07-15 05:54:56 +00:00
yamt
b0c4bb36d9
nfs_getreq: fix a kauth fallout.
...
pointed by nanashi-san. http://pc8.2ch.net/test/read.cgi/unix/1145181361/786
2006-07-15 05:54:10 +00:00
kardel
7e5391a22a
rename boottimebin to timebasebin as this
...
struct actually keeps the start of the UTC
time scale and not the boot time. the relationship
is: utc-time = up-time + timebase.
background: when doing an ACPI sleep the uptime
freezes and on wakeup the tc_setclock() leads to
a new timebasebin - this had no relationship with
a boottime as the structure was previously called.
discussed on tech-kern@
anomalies (moving boottime, uptime describing running time)
where discovered by Arnaud Lacombe.
2006-07-14 23:01:12 +00:00
kardel
97b1c42feb
keep NetBSD boottime semantics:
...
- only set at boot
- only tracking delta of set-time operations
-> will keep boottime stable across ACPI sleeps
uptime(1) will report the time since last boot
2006-07-14 22:44:28 +00:00
kardel
9a7410ffff
reduce sleep time by slept time for retrys
2006-07-14 22:35:15 +00:00
kardel
ac3f10a8d9
make inittimeleft() and gettimeleft() available (for e. g. kern_event.c)
2006-07-14 22:33:27 +00:00
martin
b9dade0e59
netbsd32_sys___fhstat30 and netbsd32_sys___fhstatvfs have nothing to do
...
with compat_30 - so use full/variable sized filehandles here too.
Fixes PR kern/34004.
2006-07-14 22:09:01 +00:00
elad
1c8d298b89
move security.setid_core.* to kern.coredump.setid.*, as requested by yamt@.
2006-07-14 21:55:19 +00:00
christos
29b80779c5
make this compile again.
2006-07-14 20:06:57 +00:00
elad
b5d09ef065
okay, since there was no way to divide this to two commits, here it goes..
...
introduce fileassoc(9), a kernel interface for associating meta-data with
files using in-kernel memory. this is very similar to what we had in
veriexec till now, only abstracted so it can be used more easily by more
consumers.
this also prompted the redesign of the interface, making it work on vnodes
and mounts and not directly on devices and inodes. internally, we still
use file-id but that's gonna change soon... the interface will remain
consistent.
as a result, veriexec went under some heavy changes to conform to the new
interface. since we no longer use device numbers to identify file-systems,
the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now
kern.veriexec.tableN.* where 'N' is NOT the device number but rather a
way to distinguish several mounts.
also worth noting is the plugging of unmount/delete operations
wrt/fileassoc and veriexec.
tons of input from yamt@, wrstuden@, martin@, and christos@.
2006-07-14 18:41:40 +00:00
yamt
a1c2fd0906
introduce filehandle size limits:
...
- FHANDLE_SIZE_MAX: refuse unreasonable size allocation, esp. when
it's a user-specified value.
- FHANDLE_SIZE_MIN: pad small filehandles with zero for compatibility.
XXX it might be better to push this into filesystem dependent code so that
new filesystems can choose smaller handles.
2006-07-14 18:30:35 +00:00
yamt
cf80fa09d3
- sys___getfh30:
...
- restructure code so that it doesn't try to allocate user-specified
unbound amount of memory.
- don't ignore copyout failure in the case of E2BIG.
- rename vfs_copyinfh to vfs_copyinfh_alloc for consistency.
2006-07-14 18:29:40 +00:00
gdamore
e19a48dbd2
Cleanup old aucom entries. Left marked obsolete in majors, and removed from
...
dev/DEVNAMES.
2006-07-14 17:44:07 +00:00
yamt
3b9db50e99
oops, fix FHANDLE_SIZE.
2006-07-14 17:31:42 +00:00
gdamore
4c26da3f0e
Add support for 10-bit addressing, per i2c specs. This has not been tested
...
with any actual 10-bit devices (as I don't have any), but it doesn't seem to
impact 7-bit addressing any. Approved by christos@, briggs@, and thorpej@.
2006-07-14 17:25:17 +00:00
christos
a2f707bc1b
factor out common code.
2006-07-14 16:02:45 +00:00
yamt
2d1ef0388d
- fix buffer overruns in fhopen and friends.
...
- share some code among them.
2006-07-14 15:59:29 +00:00
yamt
050993bda6
add some convenient macros for fhandle_t.
2006-07-14 15:58:40 +00:00
christos
199b3952c8
- rename sleepts to sleeptv since it is a timeval.
...
- don't initialize it needlessly.
- fix the poll code the same way the select code was fixed, so that it
computes the remaining time to sleep properly.
2006-07-14 15:52:44 +00:00
yamt
e221f55a3b
sys___getfh30: fix a vnode lock botch in rev.1.244.
2006-07-14 14:28:58 +00:00
yamt
387e1097ba
sys___getfh30: remove unnecessary casts.
2006-07-14 14:00:46 +00:00
seanb
13d47e9c25
Consistently establish / disestablish shutdown hook
...
in the bus layer and remove from common ath_attach().
Having it in both layers (on some bus architectures)
was causing a double call to ath_stop() on shutdown
which in turn was tickling the bus lockup described
therin on slower machines.
2006-07-14 13:37:25 +00:00
xtraeme
911aafad9f
Make this build again and fix the bus_space_tag_t member of the softc,
...
it's defined in the com_regs struct now.
2006-07-14 05:02:00 +00:00
pavel
7173632277
sys_getfh -> compot_30_sys_getfh
2006-07-13 23:52:55 +00:00
pavel
336e41ffa7
regen (sys_getfh -> compat_30_sys_getfh)
2006-07-13 23:48:08 +00:00
pavel
50a6eaa646
use the COMPAT_30 getfh.
2006-07-13 23:47:17 +00:00
pavel
20d6f5666c
regen (sys_getfh -> compat_30_sys_getfh).
2006-07-13 23:45:54 +00:00
pavel
485f2e18be
use the COMPAT_30 getfh. And do it always - don't protect it by
...
#if defined(NFS) || defined(NFSSERVER).
2006-07-13 23:44:34 +00:00
martin
dee43775e6
Small simplification, pointed out by Christian Hattemer in private mail.
2006-07-13 23:43:13 +00:00
pavel
b15a1164c7
regen
2006-07-13 23:40:55 +00:00
pavel
6ac5157e79
request the COMPAT_30 getfh in the master files. (Changes to the generated
...
ones would be lost.)
2006-07-13 23:38:57 +00:00
pavel
a360a47f63
regenerate again to have correct source RCS Id
2006-07-13 23:26:24 +00:00
pavel
56194475a6
regen.
2006-07-13 23:23:52 +00:00
pavel
037b2fed75
do not protect the getfh syscall by
...
#if defined(NFS) || defined(NFSSERVER).
The native syscall also isn't.
2006-07-13 23:22:30 +00:00
martin
f8fef2f801
regen
2006-07-13 23:10:40 +00:00
yamt
9cb0d9a9d8
compat_30_sys_getfh: s/fhandle_t/struct compat_30_fhandle/ (fix overrun.)
2006-07-13 23:04:02 +00:00
gdamore
34537908ab
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
...
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.
Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.
This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.
Approved by core@. Fixes PR port-evbmips/32362.
2006-07-13 22:56:00 +00:00
pavel
65ace88efa
regenerate again to have correct source RCS Id
2006-07-13 22:35:06 +00:00
martin
74709a8860
Apply _KERNEL_OPT
2006-07-13 22:08:00 +00:00
gdamore
b67e43bbbc
Register name for "psm" driver.
2006-07-13 22:05:53 +00:00
martin
3fb505e6b2
Version the lfs_cleanerd internal fcntl() for filehandles too,
...
so old cleaners should work with newer kernels.
2006-07-13 22:05:52 +00:00
martin
edf136d748
fix typo
2006-07-13 21:51:50 +00:00
gdamore
2f446293b4
Activate argpio. Apparently I forgot to commit this change earlier.
...
Noticed while merging other com(4) changes.
2006-07-13 21:38:24 +00:00
bjh21
642809bdd7
Bump version number for today's changes.
2006-07-13 21:32:12 +00:00
martin
b2fb3338d9
Adapt to getfh versioning
2006-07-13 21:31:31 +00:00
gdamore
ccee3fc76f
Revert yamon_getenv() so it returns char *. While this is suboptimal, it is
...
the only convenient way to use the returned value with numerous library
routines which have not been altered to properly use constified char *.
This was found to be necessary when I extended yamon to hold a string
describing a video mode for use with my experimental radeonfb.
2006-07-13 21:06:18 +00:00
uwe
4c3c91e691
De-__P. ANSIify.
...
Same object code is generated (except in prf.c, where putchar argument
type was changed to int to match the prototype and one instrcution
changes accordingly).
strategy() in ofdev.c was not ANSIified in this sweep, b/c that
changes code generated at call sites!
2006-07-13 20:03:34 +00:00
garbled
a59f110c72
Rather than hardcode the location of the Interrupt Vector Register, we
...
try to locate it using the residual data. On some machines this doesn't
work, so we fall back to hardcoding it. This should fix isa interrupts
on the 7025-F40, which has the IVR at a different location.
2006-07-13 17:50:37 +00:00
martin
9adca95023
COMPAT_SUNOS* uses COMPAT_30 getfh too
2006-07-13 17:39:47 +00:00
bjh21
0867d7e87d
RCS ID header.
2006-07-13 16:48:18 +00:00
bjh21
c5e6021bb2
Pass the argument to OSModule_Free in the correct register. This stops
...
NBFS leaking memory.
2006-07-13 16:29:46 +00:00
martin
508a062fec
Make freebsd_sys_getfh use compat_30_sys_getfh
2006-07-13 16:28:38 +00:00
bjh21
99d7b7bca3
Fix error handling in nbfs_close().
2006-07-13 16:11:41 +00:00
bjh21
723176de91
Handle Service_FSRedeclare correctly. NBFS now works after restarting
...
FileSwitch.
2006-07-13 16:09:58 +00:00
bjh21
bd0da079fe
Add Service_FSRedeclare.
2006-07-13 16:03:23 +00:00
bjh21
a0121cb653
Sensible error handling, with libsa errors being mapped to useful RISC OS
...
errors. Also centralise our filing system number (as yet unassigned) in
nbfs.h.
2006-07-13 15:51:54 +00:00
martin
81b2f47532
Do not automagically UP the interface when setting the address.
...
Together with previous ifconfig changes, this fixes PR 30694, at
least for pppoe (and other sppp based) interfaces.
2006-07-13 14:04:50 +00:00
martin
8e562bd728
No arg names in prototypes
2006-07-13 13:43:27 +00:00
martin
1db12186aa
Welcome to 3.99.22 (getfh(2)/vfs_composefh changed)
2006-07-13 12:01:48 +00:00
martin
a3b5baed42
Fix alignement problems for fhandle_t, exposed by gcc4.1.
...
While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ,
version the getfh(2) syscall and explicitly pass the size available in
the filehandle from userland.
Discussed on tech-kern, with lots of help from yamt (thanks!).
2006-07-13 12:00:24 +00:00
martin
da409b10aa
This needs <sys/param.h> for NGROUPS
2006-07-13 11:07:19 +00:00
drochner
dee4b5b02f
Map kernel stack and "struct cpuinfo" of secondary processors with
...
execute permission. (I don't understand yet why the latter is needed.)
This fixes crashes of MP kernels reported by Kurt Schreiner and in
the context of PR port-amd64/33927 (which is about a different problem
otherwise).
MP kernels reported to boot again by Dave Huang and Kurt Schreiner.
2006-07-13 10:53:08 +00:00
simonb
4f3492d966
Add a blank line between two unrelated parts of code.
2006-07-13 07:36:04 +00:00
simonb
580c3efb5a
Add ksyms pseudo device.
2006-07-13 04:52:04 +00:00
simonb
d70131b1fd
Move the ksyms pseudo device to the miscellaneous section.
2006-07-13 04:50:36 +00:00
kent
c02a4b5cc3
regen for VT82xx HDA
2006-07-13 04:00:13 +00:00
kent
656314001f
- add VIA VT8237A/8251 High Definition Audio Controller
...
- add some tabs
2006-07-13 03:59:29 +00:00
kent
5b129585f8
For MCP55, don't check CORBRPRST flag
...
a part of PR#33741
2006-07-13 03:57:40 +00:00
ross
afb5180310
wrap as(1)-only elements in #ifdef _LOCORE
2006-07-12 23:52:21 +00:00
he
7a66dda031
Omit specifying the secondary bootloader on the installboot command line
...
for sparc64 systems. This should fix PR#33987.
Also adapt to the way sparc64 32-bit kernels now report its CPU
architecture -- these still need the sparc64 boot loader, but now
report hw.machine = sparc. Adapt by testing machdep.cpu_arch
instead.
Hints from martin and mrg.
2006-07-12 21:34:45 +00:00
garbled
40bedaf4c8
Add support for rebooting 7024 and 7025 models. Since I cannot figure
...
out how to properly reboot these machines, instead we make use of the
auto-poweron-alarm time, and power cycle the machine to simulate a
reboot. This is a hack, but until I get documentation on these machines,
at least you will be able to reboot them.
2006-07-12 21:28:33 +00:00
perry
c857ec66f9
Note that people should not be using UFS_DIRHASH.
2006-07-12 18:45:51 +00:00
martin
30b452e3dc
Some interfaces are initially created with zero addresses on them
...
(like pppoe). Make the loop over all interface addresses cope.
Problem reported by Christian Hattemer.
2006-07-12 17:26:11 +00:00
gdamore
2fe9781d59
Initialize batt for gcc 4.x, and while here add $NetBSD$ comment.
2006-07-12 15:03:24 +00:00
yamt
e81b1eeaa7
implement NETRXF_csum_blank/NETTXF_csum_blank tx checksum "offloading".
2006-07-12 15:03:08 +00:00
yamt
897bdba2b9
implement a simple NETTXF_csum_blank/NETRXF_csum_blank workaround
...
so that we can talk with linux guests at least.
just fill checksum field of received packets if the flag is set.
maybe should be revisited later.
2006-07-12 15:02:15 +00:00
yamt
2b405338d9
revert the previous because it doesn't work without destdir populated.
...
pointed by Valeriy E. Ushakov.
2006-07-12 14:56:59 +00:00
tron
e12e4b2966
Remove test for M_CSUM_TSOv6 flag which is not (yet) defined in
...
NetBSD-current.
2006-07-12 14:07:02 +00:00
yamt
ed6b31b9e9
-I${S}/../common/include for libprop.
2006-07-12 13:51:18 +00:00
yamt
4adfbedff5
include stdlib.h for exit().
2006-07-12 13:50:23 +00:00
hira
7c54838d63
Fix typo (discarge -> discharge).
2006-07-12 13:16:36 +00:00
tron
9563ec16dc
Add diagnostic checks for hardware-assisted checksum related flags in
...
the mbuf which supposed to get sent out:
- Complain in ip_output() if any of the IPv6 related flags are set.
- Complain in ip6_output() if any of the IPv4 related flags are set.
- Complain in both functions if the flags indicate that both a TCP and
UCP checksum should be calculated by the hardware.
2006-07-12 13:11:27 +00:00
christos
2fbd5d820a
Prevent zerodivide (from Kouichirou Hiratsuka)
2006-07-12 11:31:39 +00:00
gson
c14814103c
Assert RTS on open. Fixes PR kern/33929.
2006-07-12 07:36:25 +00:00
simonb
cc85b518f1
Remove unused ppc4xx_tlb_unpin() function.
2006-07-12 06:22:17 +00:00
skrll
b819728719
Note this driver is for the i82596CA and i82596DX/SX chips and provide
...
links to documentation on developers.intel.com
2006-07-12 05:12:06 +00:00
peter
58224a41e7
Add power hooks for "ep* at pcmcia?".
...
ok christos@
2006-07-11 22:49:47 +00:00
peter
09f0de7ce4
Add power hooks for "ne* at pcmcia?".
...
ok christos@
2006-07-11 22:48:37 +00:00
tron
8fe4e4040d
Clear mbuf checksum flags before passing it to ip6_output(). We might
...
recycle a mbuf which contained a hardware provided checksum. This
fixes "traceroute6" to a machine which is using a wm(4) interface
that has UDP or TCP checksum offload enabled.
2006-07-11 22:13:56 +00:00
drochner
e16c6a6b67
include machine/bus.h explicitely, fixes build problem
2006-07-11 17:37:14 +00:00
drochner
d94734d110
use timecounter code in dev/ic/acpipmtimer.*,
...
kill interface attribute in device declaration
2006-07-11 14:47:49 +00:00
yamt
eeb2c6eb23
inittodr: if xen3, add processed_system_time (system_time) to
...
shadow_tv (wc_sec/nsec) as linux guest does.
2006-07-11 12:26:58 +00:00
perry
39ddc4631d
Make sure that the remaining battery life is set to zero if the value
...
is known to be invalid. Discussed with Christos (and based on his comments).
2006-07-11 02:35:30 +00:00
simonb
8c6707812d
Use c99 uintN_t.
2006-07-11 00:25:42 +00:00
simonb
f0b22f966f
Sprinkle some KNF. Still a bit more needed...
2006-07-11 00:18:04 +00:00
simonb
22cbf12aca
Remove some incorrect licencing goop.
2006-07-11 00:17:34 +00:00
simonb
a4c494b1d1
Remove some incorrect licencing goop.
2006-07-10 23:22:28 +00:00
simonb
52b60673ac
Update for timecounters (s/time.tv_sec/time_second/).
2006-07-10 23:20:43 +00:00
christos
358557d37b
fix some field names (Arnaud Lacombe)
2006-07-10 22:46:06 +00:00
christos
9dc3ec85f6
Fix gcc4 bogus initialization warnings from Arnaud Lacombe
2006-07-10 22:38:28 +00:00
xtraeme
d0e49918a6
Attach amdpm timer on AMD8111 too, as was suggested by Nicolas Joly.
2006-07-10 20:11:29 +00:00
christos
26115e2d37
PR/33968: Nicolas Joly: amdpm(4) timer, fix and AMD8111 support
...
Refactor the code to use different variable names to hold each conf register
and avoid reading/witing the conf space multiple times.
2006-07-10 20:03:42 +00:00
gdamore
d3788a855d
New psm driver for use on Ultrabook IIi. Right now it supports the power
...
button and lid switch. I will add environmentals (battery, etc.) later.
2006-07-10 17:54:08 +00:00
thorpej
55e8bbeb6e
Put appropriate prefixes on property names to reduce chances of name
...
collisions.
2006-07-10 16:28:44 +00:00
peter
b794520dcd
Wrap long lines, unwrap a short line.
2006-07-10 15:37:26 +00:00
peter
fac34f3d31
Moves the PF_GENERATED m_tag to the new packet in icmp_error.
...
This is needed because the pf code can call icmp_error with setting
this tag, but the new packet should not be filtered when it comes back
to pf(4).
ok christos@
2006-07-10 15:35:39 +00:00
fvdl
64d1b810eb
kern/33961: add kgdb support and remove some redundant (and incorrect) register
...
offset definitions from reg.h
2006-07-10 13:09:47 +00:00
freza
75998ff7ee
Fix recent ibm4xx/intr.c rework:
...
- Recalculate masks _after_ new interrupt handler is enqueued, otherwise
the very last one won't ever be enabled (from hannken@)
- We can't use splhigh() to protect intr_calculatemasks() since it would
use soon-to-be-invalid mask. Instead, fiddle PSL_EE directly as we do
in other places.
Reviewed and tested (evbppc/explora) by hannken@
2006-07-10 12:52:13 +00:00
fvdl
6bde80fce7
Do not try to disable link devices (using _DIS) at startup. This causes
...
problems on some systems. Leave the code commented out, we might want
to revisit this at some point in the future.
2006-07-10 09:18:36 +00:00
christos
d957913795
Fix a bit of debugging code (from Arnaud Lacombe)
2006-07-09 21:31:40 +00:00
christos
bb97a3d660
url for M$ file changed.
2006-07-09 19:25:18 +00:00
mlelstv
8261b32756
move and renumber bthub major to avoid conflicts with other archs
2006-07-09 18:56:35 +00:00
manu
2e26811b6b
If the user process requests a non null timeout, make sure we do not turn
...
it into an infinite timeout because of a conversion
2006-07-09 18:51:28 +00:00
drochner
bf84051422
some fixes for removable media (USB floppies in particular):
...
-allow to open RAW_PART, even if readdisklabel() doesn't like what it sees
-fix PERIPH_MEDIA_LOADED toggling on every other open attempt
-Don't reset PERIPH_REMOVABLE if prevent/allow fails - this is normal
for floppy drives. The flag is required for media change detection.
Honour XS_CTL_SILENT for the "no door lock" printouts, and set that flag
where scsipi_prevent() is called during open/close.
Tested with a USB floppy and a USB cardreader.
2006-07-09 17:12:21 +00:00
he
22e14a460c
Add 8k more SYMTAB_SPACE so that it fits again.
2006-07-09 16:52:54 +00:00
peter
a93b4acd14
Nit: The silicon revision level is in bits 7:4, so we must right shift
...
by 4 bits. Also removed an unneeded include.
2006-07-09 14:47:30 +00:00
reinoud
b1b70c855b
Fixing a bad case of walking/writing out of allocated space.... the
...
allocated space was 2048 bytes, but when adding 1024 to the variable
`unix_name' to split the allocated space in half it effectively starts just
OUTSIDE the allocated space. This ought to fix memory corruption bugs when
using UDF.
This is a routine to revisit one day.
2006-07-09 13:58:47 +00:00
blymn
af4af92111
Fix behaviour of files with no signatures on exec.
2006-07-09 10:13:53 +00:00
christos
86c579f9d0
include files.apm
2006-07-09 06:22:32 +00:00
christos
cfa1686dee
include files.apm
2006-07-09 01:59:42 +00:00
christos
160a42523a
- Tidy up some debugging/diagnostic messages.
...
- Add a delay for the topic95b after we power on. It makes things work without
CBB_DEBUG on!
2006-07-08 23:02:55 +00:00
christos
4829e29205
remove INTRDEBUG
2006-07-08 21:23:38 +00:00
christos
10b8651771
remove functions we don't use
...
and adjust to the new prototype.
2006-07-08 20:30:57 +00:00
christos
eaa95b68b5
- apm.c -> apmbios.c and s/NAPM/NAPMBIOS/
...
- adjust to new function call signatures.
2006-07-08 20:30:00 +00:00
christos
1b36a60be8
Adjust to the new apm backend.
2006-07-08 20:28:06 +00:00
christos
3c00d4c7e1
expose the ioctl internal function now used by the acpi_apm code.
2006-07-08 20:26:06 +00:00
christos
4998e59f23
Add acpi apm attachment based on sysmon hooks.
2006-07-08 20:23:53 +00:00
christos
9ad7368bb4
Make apm an MI backend to be used by the i386 bios implementation and the
...
acpi implementation. Based on work by jmcneil.
2006-07-08 20:22:19 +00:00
christos
ff1066c12a
- all the polling code is stale and broken. Mention it.
...
- the topic95B bridge does not set CB_SOCKET_STAT_PWRCYCLE
- put back the delay code that was removed *again*.
This makes my libretto 100CT work again.
2006-07-08 20:20:27 +00:00
rpaulo
4e0b046439
Add a missing piece from RFC 3542. KAME-NetBSD-current branch
...
revision 1.1.1.2.2.5:
do not call pfctlinput2(PRC_MSGSIZE) on fragmentation to avoid
notification storm
From Keiichi SHIMA:
"In the current NetBSD code, the PRC_MSGSIZE message will be generated
for every fragmented packets when a node is trying to send a big
packet. That was the intermediate behavior while RFC3542 was under
discussion."
By (obviously) the KAME project.
2006-07-08 19:58:40 +00:00
tsutsui
79d3d94bff
KNF.
2006-07-08 18:32:53 +00:00
christos
1a9d8ea2c7
Fix use the proper ioh.
2006-07-08 18:19:01 +00:00
skrll
eb4039be03
KNF some comments and whitespace.
2006-07-08 16:24:08 +00:00
skrll
e5a112d805
Spelling in comments. No functional change.
2006-07-08 16:07:47 +00:00
kardel
b36308b48b
when adjusting the left over timeout value in selcommon()
...
do actually subtract the elapsed time instead of adding it.
2006-07-08 16:01:25 +00:00
kardel
e472b9091e
fix a bug reported by Steven M. Bellovin regarding oversleeping
...
select(2) timeouts. Introduced via timecounter branch from a
tvtohz() conversion.
The left over timeout was not decremented when re-starting
the sleep in select.
2006-07-08 12:16:09 +00:00
kardel
d788cc37f6
report true clock resolution based on the frequency information
...
from the underlying counter in clock_getres(). For frequencies
above 1GHz report a resolution if 1 nsec.
2006-07-08 12:10:33 +00:00
ross
dd8ab8abc4
add new split personality for ELF64
2006-07-08 06:36:42 +00:00
yamt
d9530c47ba
add DEBUG code to detect modifications on free memory.
2006-07-08 06:01:53 +00:00
yamt
7d19947ffd
make a multiple inclusion protection macro match with the filename.
2006-07-08 05:57:41 +00:00
yamt
85d844ab45
agr_ioctl: wrap a long line after kauth merge.
2006-07-08 05:56:48 +00:00
matt
46d05ada18
Don't bcopy to 0 because gcc4 doesn't like. Instead use a structure copy
...
to 0 to do the equivalent thing. XXX this is evil.
2006-07-08 00:27:30 +00:00
matt
c266c91b24
Reorganize pmap_extract so that *pap is always set to quash gcc4
...
uninitialized use warnings.
2006-07-08 00:26:21 +00:00
matt
08f6d0142a
Make GCC3/GCC4 happy with these asms.
2006-07-08 00:25:24 +00:00
matt
53ea8158b4
With VAX & GCC4, use builtin memset and memmove.
2006-07-08 00:24:26 +00:00
matt
34b5f92bac
Don't define bpendtsleep on vax (gcc4 optimizer will duplicate the asm
...
that contains it result in a multiple symbol definition in gas).
2006-07-08 00:23:29 +00:00
gdamore
d266f72a20
Add AR531X GPIO support. This also registers the reset button with sysmon,
...
so that when it is pressed the default reset button action (currently board
reset, no change to data in flash) is taken.
While here, remove the AR531X generic config, because it just doesn't make
sense.
2006-07-07 22:03:19 +00:00
ross
c389a93699
Add _LP64 version of _mcount for ppc64
2006-07-07 21:28:03 +00:00
ross
d08a822069
Add stmd and lmd macros.
2006-07-07 21:26:54 +00:00
yamt
fa517f1fc0
make this compilable without kernfs in the case of !DOM0OPS && XEN3.
2006-07-07 18:15:53 +00:00
yamt
aa5b46a800
xbdsize: fix an null dereference.
2006-07-07 17:59:21 +00:00
skrll
e5bd1e1629
Disable DDB_DEBUG by default
2006-07-07 09:40:54 +00:00
skrll
0fd55006fe
Fix use of user_backtrace. It takes a lwp pointer now.
2006-07-07 09:38:47 +00:00
cherry
8e4670dadf
Towards building libc/arch/ia64
2006-07-07 06:42:32 +00:00
simonb
5f14059883
Regen.
2006-07-07 01:22:31 +00:00
simonb
bbed75b78f
Add another Intel 3945 wireless minipci device id.
...
Small part of kern/33778 by Jean-Baptiste Campesato.
2006-07-07 01:21:37 +00:00
simonb
90498e88b2
s/writting/writing/.
2006-07-07 00:56:15 +00:00
perseant
a2aa7212a8
Protect lfs_order_freelist() with the segment lock.
2006-07-06 22:27:19 +00:00
perseant
b8ec630ade
Fix a typo that caused a "multiple free" panic on unmounting a resized lfs.
2006-07-06 22:14:18 +00:00
martin
6bfe6be406
Make it compile on 64 bit machines
2006-07-06 21:55:06 +00:00
ross
96cf233754
more refinements for ppc64 PIC/PLT/TOC issues
2006-07-06 15:26:51 +00:00
scw
5914c06c4c
Fix the entries for SPR_DC_ADR and SPR_DC_DAT.
2006-07-06 15:09:54 +00:00
wrstuden
1b9990ba67
Fix len=-4 issues.
...
When receiving a packet, if a receive buffer has length 0,
treat it the same way we treat a failed mapping.
Fix contributed by Wasabi Systems.
2006-07-05 23:51:50 +00:00
perry
202456461a
Patches contributed by KIYOHARA Takashi, taken from FreeBSD.
...
These apparently sync up the sources to the current FreeBSD driver.
Tested by Matthias Drochner.
2006-07-05 18:46:42 +00:00
xtraeme
9c392ba6f4
Repeat after me, use __KERNEL_RCSID.
2006-07-05 18:17:59 +00:00
bouyer
de888ac7f5
Comment out acpi0, until someone can make it compile again after the recent
...
acpi changes.
2006-07-05 17:00:46 +00:00
itohy
3b04fb4334
Back out previous change. The problem was not here. Oops.
2006-07-05 15:19:38 +00:00
drochner
ff6945ed02
obey VM_PROT_EXECUTE in pmap_kenter_pa (just use protection_codes[])
2006-07-05 14:36:29 +00:00
drochner
8d2b5419d9
make this compile with standard warning level
2006-07-05 14:33:20 +00:00
drochner
8c61e0077d
Request executable memory for LKM code/data areas. This fixes LKMs
...
on alpha (which were broken for more than a year appearently and noone
noticed). (The other archs didn't suffer because their pmap_kenter_pa()
doesn't support non-executable mappings.)
2006-07-05 14:31:00 +00:00
drochner
ef8848c74a
Introduce a UVM_KMF_EXEC flag for uvm_km_alloc() which enforces an
...
executable mapping. Up to now, only R+W was requested from pmap_kenter_pa.
On most CPUs, we get an executable mapping anyway, due to lack of
hardware support or due to lazyness in the pmap implementation. Only
alpha does obey VM_PROT_EXECUTE, afaics.
2006-07-05 14:26:42 +00:00
bjh21
6431f3b2de
Descend into nbfs -- I think it's useful now.
2006-07-04 23:08:51 +00:00
bjh21
c6bb58fda2
We don't actually use NEWVERSWHAT, but we should still try to make it correct.
2006-07-04 23:08:10 +00:00
bjh21
ac8af88277
Add some definitions necessary for the latest NBFS, plus a couple of
...
functions that my boot32 hacks are likely to require.
2006-07-04 23:06:51 +00:00
rpaulo
81cc271bc5
Add missing semicolon.
2006-07-04 23:05:11 +00:00
bjh21
6022ed9721
Fix missing newline at end of file.
2006-07-04 22:42:11 +00:00
bjh21
b314f251e2
Add suppport for FSEntry_file 255, loading whole files. Now I can open
...
/etc/passwd in Zap.
2006-07-04 22:34:54 +00:00
christos
96c223fe5a
spell NACPI correctly.
2006-07-04 18:46:42 +00:00
christos
f73658ad42
put depend back.
2006-07-04 18:43:35 +00:00
christos
e619d191dd
more typos.
2006-07-04 18:43:13 +00:00
christos
9f1b8cb28e
Another missed dependency.
2006-07-04 18:41:41 +00:00
rpaulo
32404d58a1
Coverity CID 3805: Close the firmware_handle on error and avoid leaks.
2006-07-04 18:26:29 +00:00
martin
1a8d6cd53d
Initialize the "console screen" once - no matter if we are console or
...
not.
2006-07-04 18:14:44 +00:00
christos
a5bf930cbd
PR/33912: tron: Building GENERIC kernel fails
...
Fallout from ACPI changes.
2006-07-04 14:53:47 +00:00
itohy
16b4260abb
Do not define the link_set symbol as static, or a.out linker won't find it.
2006-07-04 14:09:37 +00:00
he
c3480eebba
The declaration of mpacpi_active needs to be unconditional because
...
there's an unconditional use.
2006-07-04 10:05:06 +00:00
jld
3ebfa1a07d
Fix accidentally unsigned comparison, which was causing the timer event
...
handler to run ~forever in the face of slightly unexpected input from
Xen (system_time apparently going backwards). Pointed out by kardel@.
2006-07-04 07:35:28 +00:00
simonb
78877867ee
Remove some unused variables.
2006-07-04 06:25:50 +00:00
christos
d16c773e0b
fix typo
2006-07-04 00:47:47 +00:00
christos
01158ea892
Apply fvdl's acpi pci interrupt configuration code.
...
- MPACPI is no more.
- MPACPI_SCANPCI -> ACPI_SCANPCI
2006-07-04 00:30:21 +00:00
christos
8fed18e200
another dependency.
2006-07-04 00:16:05 +00:00
christos
4914e0cd44
typo
2006-07-04 00:13:35 +00:00
christos
8ace01b173
athrate_sample.o needs the generated header file
2006-07-04 00:10:34 +00:00
skrll
4b14ca6f7c
Actually drop into ddb for unknown traps (with the right conditions)
2006-07-03 19:48:30 +00:00
cherry
daf99d36cd
towards exec(): first round at fixing USPACE
2006-07-03 17:02:56 +00:00
cherry
46c3dfbc17
misc #define cleanups
2006-07-03 17:01:45 +00:00
cherry
f0def1c53a
fix nbmake-ia64 to clean include links
2006-07-03 16:50:40 +00:00
yamt
d145ea66dc
change KMEM_QUANTUM_SIZE from sizeof(void *) to (ALIGNBYTES + 1).
...
the latter is larger on eg. sparc.
noted by Christos Zoulas.
http://mail-index.NetBSD.org/port-sparc/2006/07/02/0001.html
2006-07-03 09:18:35 +00:00
christos
2f4b451441
Make sure we have at least PIPE_BUF bytes available in the socket send buffer.
...
Review and comment by yamt.
2006-07-03 02:34:39 +00:00
mrg
8a3f21aea4
always include the code to lookup bootinfo for memory size. however,
...
don't use it if biosbasemem or biosextmem are non-zero. this allows
one to set these variables in /netbsd rather than a kernel rebuild with
options REALBASEMEM/REALEXTMEM, as used to be. PR#33659.
2006-07-03 01:25:33 +00:00
mrg
ba1331d1b0
don't pass unsigned char * to functions wanting char *.
2006-07-03 01:21:50 +00:00
bjh21
32bed2b7b7
Add support or FSEntry_Func 14 and FSEntry_Func 15, which seem to be the
...
important directory-listing entry points.
2006-07-02 22:06:16 +00:00
bjh21
1b0f046ee7
Define LIBSA_NO_TWIDDLE, since NBFS really shouldn't twiddle().
2006-07-02 22:05:07 +00:00
bjh21
7ec4d05a27
Add a *NBFS command to select NBFS as current filing system.
2006-07-02 22:03:23 +00:00
bouyer
2707ad28d9
Add a kernel config file for Xen3 Dom0, built as part or i386 release.
2006-07-02 21:28:39 +00:00
bouyer
a2847deb82
Fix a bogus gcc4 uninitialized warning.
2006-07-02 18:54:25 +00:00
bouyer
0692f212b3
Move acpi_timer.h outside of __HAVE_TIMECOUNTER, as we need acpitimer_init()
...
for the non-timecounter case too.
2006-07-02 18:53:33 +00:00
cherry
2d00b8d1f2
nits
2006-07-02 17:28:11 +00:00
cherry
efe41d02f0
trying MFS for ski FS
2006-07-02 17:23:59 +00:00
bouyer
b96fedac26
block device backend driver for Xen3. Add
...
pseudo-device xbdback
in your config file to use.
2006-07-02 16:35:24 +00:00
bouyer
3fc47e70cc
Fix a off by one error in xstart_mmu[] that would cause bad corruption
...
when handling full batch of requests.
Linux expects to have 16 btyes free between the start of the RX buffer and the
start of the packet, handle this.
Get rid of the "hotplug-status" hack, we now have proper tools to deal with
it in userland.
Various minor fixes and code reorg.
2006-07-02 16:32:49 +00:00
bouyer
9b4c2c6758
m_copyback() doesn't adjust m->m_len if the data to copy is smaller than
...
the mbuf's size. Set it to a proper value before calling m_copyback().
This should fix panics in m_makewritable() reported by several peoples.
While there, add MCLAIM() calls where appropriate, a few more #ifdef DEBUG
checks, and various minor fixes.
2006-07-02 16:29:49 +00:00
tsutsui
344bead7dc
Rearrange DELAY() macro to use an asm statement so that we'll get more
...
proper delay.
2006-07-02 11:24:43 +00:00