drochner
61f5f2c87d
-Consistently check the buffer length in getsysinfo(),
...
and require one additional byte for string termination
in the GSI_PLATFORM_NAME case.
This should fix PR kern/33198 by Nicolas Joly.
-Make sysinfo() behave more like the original: return
the length needed and copy out as much as possible.
2006-04-05 15:30:48 +00:00
drochner
9813c5ea29
remove get/setborder from accessops
2006-04-05 15:25:15 +00:00
drochner
8390dd2605
update for accessops change (get/serborder removed)
2006-04-05 15:23:06 +00:00
drochner
cd401662a8
Move the ga_getborder()/vga_setborder() calls from accessops to the
...
ioctl handler.
Also fix error reporting for the vga_getborder() call.
2006-04-05 15:19:54 +00:00
drochner
5b4dd527c3
Use the existing ioctl path to call WSDISPLAYIO_GBORDER/WSDISPLAYIO_SBORDER
...
instead of a separate accessops entry. There is no need to introduce bloat
for the majority of drivers which don't implement this feature.
This should also resolve PR kern/33186 by Valeriy E. Ushakov.
2006-04-05 15:18:25 +00:00
tsutsui
7011c71999
- ANSIfy
...
- KNF
- u_intNN_t -> uintNN_t
- include "ioconf.h" for struct cfdriver panel_cd
2006-04-05 15:14:49 +00:00
tsutsui
194935a114
ANSIfy, KNF
2006-04-05 15:14:10 +00:00
tsutsui
a7c19b0c1a
Include "ioconf.h" for struct cfdriver cpu_cd (though it's currently unused).
2006-04-05 15:07:17 +00:00
tsutsui
da447cc3ab
- ANSIfy
...
- KNF
- u_intXX_t -> uintXX_t
2006-04-05 15:03:27 +00:00
christos
825f80c59c
Fix use after free.
2006-04-05 14:59:29 +00:00
tsutsui
076b3a81c7
Fix function name in panic messages.
2006-04-05 14:03:04 +00:00
tron
442e61c603
Fix "MKUUCP" check so that "cu" installed if "MKUUCP" is not defined.
2006-04-05 13:04:33 +00:00
christos
a2170ce453
make sure that netid always points to an allocated string. Pointed out by
...
enami; thanks.
2006-04-05 12:57:29 +00:00
skrll
6f5914a550
__sigtramp1.S moved to the new compat layout so we should try and build
...
it here.
2006-04-05 12:23:51 +00:00
rtr
1b5ececaf1
fix typo
2006-04-05 11:11:07 +00:00
tron
be0bc38f31
Move "depend" target into block which is only used if ath(4) is enabled
...
in the kernel configuration. This makes it possible to build kernels
without that driver again.
2006-04-05 09:01:28 +00:00
he
22d273f6af
Unbreak the build of this file on our 64-bit ports
...
by casting to or via intptr_t.
2006-04-05 06:55:26 +00:00
gdamore
ca7d761296
Rename AH_DEBUG, AH_ASSERT, and AH_DEBUG_ALQ to ATH_XXX.
...
Use the opt_ah.h for the provided HAL to get options like AH_REGOPS_FUNC.
Add AH_REGOPS_FUNC to a few opt_ah.h that don't have it in this version
of the HAL but need it. (The next version from Sam should have this fixed
in it. If it doesn't, then we'll have to take care at import time.)
Ultimately, this should make future imports even easier, and individual ports
should not have to worry about whether AH_REGOPS_FUNC is properly defined or
not, since the opt_ah.h will just take care of it automatically.
Ok'd by dyoung@.
2006-04-05 06:54:26 +00:00
gdamore
c79321a24b
Add rule to make athhal_options.h from ${ATH_HAL}.opt_ah.h, so that we
...
can automatically use the AH_XXX options that the HAL was built, without
requiring additional machine-specific configuration.
A follow up commit will activate this change.
2006-04-05 05:07:38 +00:00
cherry
45a06839c0
Backing out previous commit for more review.
2006-04-05 02:40:57 +00:00
uwe
ccf4b50a2c
KNF: no parentheses around return value.
2006-04-05 01:13:50 +00:00
uwe
a31a2f7d75
ANSI'ify.
2006-04-05 01:05:50 +00:00
uwe
7494d34448
Tell config to generate fs_ffs.h as vfs_bio.c checks for defined(FFS).
...
Include that header in vfs_bio.c so that bioops are not redefined.
2006-04-05 00:52:16 +00:00
christos
c721423ddc
Use the standard macros to compute the ioctl length instead of rolling our
...
own. Thanks to Chuck for noticing.
2006-04-05 00:50:59 +00:00
uwe
54826c03de
Define ddb_regs in db_interface.c.
...
Change its definion in db_machdep.h into a declaration.
2006-04-05 00:38:51 +00:00
uwe
aa1af65e56
kernelstack and proc0paddr are defined in arm32_machdep.c
...
Change local definions into declations.
2006-04-05 00:37:11 +00:00
uwe
c29aeed86e
Don't define, just declare want_resched here.
2006-04-05 00:15:25 +00:00
uwe
0eaa91ef03
Add dc_stride member to igsfb_devconfig.
...
Eliminate all mentions of rasops_info from igsfb_ioctl(), we have all
the information in igsfb_devconfig now. It's semantically correct to
serve that info from there, not from a cached copy in rasops_info.
2006-04-04 23:43:40 +00:00
uwe
771831be53
Use bus_space_vaddr() to get the address of the framebuffer.
2006-04-04 23:00:15 +00:00
uwe
fc2595db94
Use designated initializers for wsscreen structs. It takes less space
...
and is easier to read. While here, update function name in comment.
2006-04-04 22:36:15 +00:00
uwe
3995a3168e
Nuke delay() that sneaked in with one of old revisions. It's not
...
necessary.
When we attach as console on netwinder, the timer is not yet attached,
so delay() resorts to a busy loop. That loop takes BIGNUM seconds(!)
to complete. That makes you think the machine wedged.
2006-04-04 22:25:23 +00:00
christos
48cf428279
Turn if/then/elif into a switch
2006-04-04 21:35:20 +00:00
christos
cda1870a45
Coverity CID 28: Fix resource leak.
2006-04-04 21:29:42 +00:00
christos
99f1624bd3
Coverity CID 97: Remove dead code.
2006-04-04 21:27:42 +00:00
jld
00f39ded1b
Change diagnostic assertions to DEBUG-conditionalized printfs.
...
(Alternately, XEN_CLOCK_DEBUG may be defined to enable just the
checks in this module.)
2006-04-04 21:08:47 +00:00
wiz
d2420fdc86
Bump date for previous.
2006-04-04 20:48:21 +00:00
wiz
e9821b1244
Sort SEE ALSO; mark up -; end sentence with dot.
2006-04-04 20:45:41 +00:00
wiz
0f177102d6
Whitespace nits.
2006-04-04 20:34:46 +00:00
bouyer
65b5449cc4
Add NetBSD CVS Id.
2006-04-04 20:30:30 +00:00
wiz
e4293af91f
Sort SEE ALSO, bump date for previous.
2006-04-04 20:26:33 +00:00
wiz
9f0633f5c3
Sort options. Add RCS Id. Adapt a bit for NetBSD; needs more work
...
(e.g. removing kldloader references)
2006-04-04 20:25:14 +00:00
riz
99cd9e5be7
Correct a couple of typos in comments ("Hook info" -> "Hook into",
...
"prescision"->"precision")
2006-04-04 19:38:38 +00:00
mrg
a9fc8e65cd
actually, chuq says that now kcopy(9) should return a real errno in
...
the failure case (usually what ever uvm_fault() returned.)
2006-04-04 18:50:27 +00:00
mrg
d7ac53c209
be explicit about what the return values of kcopy(9) are: zero for success
...
and non-zero for failure. (this documents practice - there are -1, EFAULT
and semi-random non-zero values returned.)
2006-04-04 17:33:40 +00:00
christos
5e406be836
Coverity CID 1083: Avoid possible NULL pointer deref.
2006-04-04 17:30:20 +00:00
pavel
929734802b
Correct typo in a panic message.
2006-04-04 17:12:57 +00:00
martti
cda1799407
IPF 4.1.13
2006-04-04 16:20:21 +00:00
martti
7967220333
Removed BROKEN_TCP_WINDOW_CHECK hack.
2006-04-04 16:19:05 +00:00
martti
10531caa29
Removed file.
2006-04-04 16:18:56 +00:00
martti
b52bb48fee
Fix compilation problems.
2006-04-04 16:18:27 +00:00