Commit Graph

80431 Commits

Author SHA1 Message Date
gdamore
6af18224ef Use a -I to add path to netbsd/ah_osdep, and remove #ifdef __NetBSD__
logic from ah.h.  This was done at the request of sam@.
2006-04-05 23:41:03 +00:00
dyoung
9f1cdb7a4a Fix typo in comment, s/will be never/will never/. 2006-04-05 22:16:42 +00:00
yamt
9f6a649d14 uvm_km_pgremove/uvm_km_pgremove_intrsafe: fix assertions. 2006-04-05 21:56:24 +00:00
bjh21
bb2de9ff3d Very rough initial attempt at a RISC OS filing system based on libsa, to
allow the loading of kernels from a NetBSD file system by a RISC-OS-based
bootloader.  Currently, there's just about enough functionality to allow
BtNetBSD (and hence presumably boot32 on systems where it works) to load
a kernel.  This code has the great advantages over our existing UnixFS
that we actually have the source and can compile it under NetBSD.
2006-04-05 21:33:26 +00:00
bjh21
9a26703601 Use ctype macros. 2006-04-05 21:30:29 +00:00
nonaka
91dcd880bc Regen. 2006-04-05 20:09:47 +00:00
nonaka
fd5e23a861 Added "Faraday Technology" in vendor list. 2006-04-05 20:09:22 +00:00
christos
435a7d0d03 Coverity CID 2721: Avoid bitching for impossible cases, by adding KASSERT. 2006-04-05 19:49:28 +00:00
tsutsui
f8b2282138 ANSIfy, KNF 2006-04-05 15:50:48 +00:00
tsutsui
d8a85de05c ANSIfy. 2006-04-05 15:46:58 +00:00
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
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
tsutsui
076b3a81c7 Fix function name in panic messages. 2006-04-05 14:03:04 +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
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
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
bouyer
65b5449cc4 Add NetBSD CVS Id. 2006-04-04 20:30:30 +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
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
7967220333 Removed BROKEN_TCP_WINDOW_CHECK hack. 2006-04-04 16:19:05 +00:00
martti
9ea58d54bc Upgraded IPFilter to 4.1.13 2006-04-04 16:17:18 +00:00
rpaulo
b5d1102290 Add another bit from FreeBSD that I forgot: in tun_output, don't try to send
an AF_INET packet if TUN_IFHEAD is not set.
From FreeBSD and spotted (again) by DEGROOTE Arnaud.
2006-04-04 15:43:23 +00:00
christos
afa610222b Coverity CID 1002: Yes, this could really be NULL, so check against it. 2006-04-04 14:24:15 +00:00
christos
b33df30820 Coverity CID 1087: Clarify NULL test. 2006-04-04 14:21:55 +00:00
christos
e2b3af9d2c Coverity CID 1140: NULL dereference cannot happen, but protect against it. 2006-04-04 14:18:35 +00:00
christos
41a4245aa5 Coverity CID 2413: NULL deref cannot happen, but nevertheless protect against
it.
2006-04-04 14:16:46 +00:00
gdt
4d48cb3530 Update list of todo items, and note that old items are from 1998 and
thus likely no longer correct.
2006-04-04 13:20:39 +00:00
gdt
73e63e429a Check symlink count and pointer returned from userspace before
dereferencing it.  (I added this during search for the problem fixed by
the earlier readlink buffer allocation fix, and the checks have not
triggered.  Still, it's wrong of the kernel to use pointers from user
space without validation.)
2006-04-04 13:11:08 +00:00
nakayama
616dcaceb9 Add missing "-elf" suffix to ATH_HAL for sparc and sparc64. 2006-04-04 13:00:23 +00:00
rpaulo
ca98b087a8 Fix a if-clause botched in a previous revision now that we have TUN_IFHEAD.
Spotted by DEGROOTE Arnaud <degroote@enseirb.fr>.
2006-04-04 11:33:15 +00:00