Commit Graph

175783 Commits

Author SHA1 Message Date
alc
146b5c4e87 Add the __printflike(), __scanflike() and __format_arg() macros, from FreeBSD
They will be used soon by the Atheros HAL code, many other places can use them
to avoid GCC dependency.
2008-12-10 22:10:47 +00:00
pooka
7243af74cb Make non-mpsafe threads KERNEL_LOCK() before starting execution. 2008-12-10 18:47:01 +00:00
christos
15e362cca8 fix endif comment 2008-12-10 18:07:30 +00:00
christos
0bff293dd2 disable VMEM_DEBUG by default. 2008-12-10 17:32:32 +00:00
tsutsui
f1f16fdb45 Prepare kernel_pmap_ptr as well as other m68k ports which have own pmap.c. 2008-12-10 17:13:53 +00:00
tsutsui
cf4bdf5d25 Restore kernel_pmap_store declaration since it's still used by
most m68k ports in pmap_bootstrap.c.
2008-12-10 17:12:07 +00:00
christos
10fdeaec16 vmem_check_sanity is just too expensive for DEBUG. Enable it only for
VMEM_DEBUG.
2008-12-10 16:59:12 +00:00
joerg
7d8b9145a5 Ignore restrict in the contexts where const and volatile is allowed.
No validation for the use (e.g. that it is used on a pointer), but
enough to not stop valid C99 programs.
2008-12-10 16:12:39 +00:00
christos
453b04f5be fix PGTBL size detection on the intel 965GM. From Anon Ymous. 2008-12-10 15:48:49 +00:00
christos
c900253da8 Martin says:
I had added a getaddrinfo()/getnameinfo() lookup to obtain an FQDN even
if gethostname() would return only the local part of the hostname.
I did not really consider that many systems do not have FQDNs and more
importantly that the calls introduce a high latency (timeout) when DNS
is not available.

On the other hand I do not (or no longer) think that using a non-FQDN is
such a big problem here. Those users/admins that do collect logs from
different hosts and want an FQDN should notice the problem quickly
enough and can easily fix it by correctly setting their hostname.
2008-12-10 15:20:04 +00:00
pooka
37e12a5643 Make kernel biglock recursecount volatile. 2008-12-10 14:55:25 +00:00
tsutsui
7ceeb68913 Account idepth in functions in locore.s that are registered in the
interrupt vector table so that we don't have to track all interrupt paths.
2008-12-10 14:19:02 +00:00
nakayama
2b44f16453 pci_make_tag:
- add assertion for checking spc_busnode initialization.
2008-12-10 12:53:49 +00:00
nakayama
d0b5890006 Add initialization of spc_busmax and spc_busnode in sparc_pci_chipset. 2008-12-10 12:17:02 +00:00
pooka
ee352f3d33 Make kernel_pmap_ptr a const. Requested by steve_martin. 2008-12-10 11:10:17 +00:00
martin
6a9af1aef4 Backout previous - Matt, you probably did a partial update and didn't
pick up the sys/uvm changes.
2008-12-10 09:35:02 +00:00
mrg
595a2e556e revert part of the previous. 2008-12-10 07:12:09 +00:00
mrg
99caaf2dd2 checkpoint my work-in-progress port of this driver.
it boots some way but will crash attaching rtc0.

known TODO items:
- figure out why BUS_SPACE_MAP_LINEAR mappings generate data errors
  (cause of the rtc issue)
- several interrupt issues
2008-12-10 05:56:22 +00:00
mrg
e8f7f45249 import the original openbsd "schizo" PCI driver as found on US-III systems. 2008-12-10 05:26:27 +00:00
mrg
6f91da5c30 fix sparc64 build: provide pmap_kernel(), re-provide pmap_t.
fixes builds for my U60.
2008-12-10 04:23:11 +00:00
mrg
938a858117 clean up and use __func__ in sparc_bus_map() debug messages. 2008-12-10 03:36:22 +00:00
mrg
1d6b36aa0d ofpci_make_tag():
don't write PCI_COMMAND_STATUS_REG with
	PCI_COMMAND_(MEM|MASTER|IO)_ENABLE, or it in.
sparc_pci_childspace():
	move psycho.c:get_childspace() into pci_machdep.c but rename it
psycho_alloc_bus_tag():
	use M_ZERO
2008-12-10 03:31:51 +00:00
lukem
0fa62d4185 Fix dependencies for vi.info 2008-12-09 23:49:42 +00:00
bad
f140528153 Document my fix to src/racoon/privsep.c for the SIG_IGN typo on 2008-12-04. 2008-12-09 23:28:08 +00:00
pooka
223c62813a In case of no _KERNEL_OPT, always define _PMAP_MAY_USE_PROM_CONSOLE 2008-12-09 23:05:25 +00:00
martin
f915c7039b Get rid of get_maxctx() - it doesn't work on newer cpus and we will have
to find a better way for (some) sun4v machines - all sun4u use 13 bit
contexts anyway.
2008-12-09 21:01:02 +00:00
pooka
a6139afb88 pmap_kernel() is syntactic sugar for kernel_pmap_ptr now. 2008-12-09 20:49:40 +00:00
pooka
72b415fb6e 5.99.5: pmap_kernel() unified 2008-12-09 20:48:52 +00:00
pooka
29d439f898 Make pmap_kernel() a MI macro for struct pmap *kernel_pmap_ptr,
which is now the "API" provided by the pmap module.  pmap_kernel()
remains as the syntactic sugar.

Bonus cosmetics round: move all the pmap_t pointer typedefs into
uvm_pmap.h.

Thanks to Greg Oster for providing cpu muscle for doing test builds.
2008-12-09 20:45:44 +00:00
roy
e24ba97e09 Update dhcpcd to 4.0.7 and take ownership. 2008-12-09 19:48:50 +00:00
roy
98454aa775 Import dhcpcd-4.0.7 with the following changes from dhcpcd-4.0.1
DHCP_DECLINE now includes the IP and Server in the message.
Trailing NULLs are stripped from string options.
ntpd is only restarted if it is already running.
ClientID is no longer sent by default.
CSR comes before routers and static routes as per RFC 3442.
Host routes are now added correctly.
If a the interface link flaps but status does not change, do not reset the timer.
2008-12-09 19:34:58 +00:00
christos
37d07dacae PR/40144: Christoph Badura: quiting from vi recovery mode leaves tty settings
garbled. When vi creates a new EXF structure it did not set all the fd related
fields to -1, so if the fd field was never initialized, it was 0 because of
the calloc() call, so closing the file, ended up closing 0, so the terminal
fd was closed and that prevented the ioctl to restore the term settings from
succeeding.
2008-12-09 18:26:20 +00:00
reinoud
cadb068686 Fix two buf_init()'s that are not needed since they were already initialised
by getiobuf().

Also remove ancient IPL_BIO reference from the time it was called from
interrupt context instead of the current soft interrupt.
2008-12-09 17:17:02 +00:00
christos
99089c99f7 PR/40140: Takehiko NOZAKI: fix bug where nvi + x(delete) key may call abort(3) 2008-12-09 16:50:22 +00:00
christos
6d2637b2f4 Allow parsing more than one command line switch. From anon ymous. 2008-12-09 15:38:52 +00:00
tsutsui
5352126149 Sync with src/sys/arch/amiga/dev/siop.c rev 1.59:
> Deal with unrecognized SCSI message byte - restart script to clear the
> ACK.  No longer hangs the driver when an unhandled message byte is seen.
2008-12-09 14:11:11 +00:00
tsutsui
672e181eba Fix typo. 2008-12-09 14:01:48 +00:00
nakayama
b1a235dedb Sync PCMCIA and CardBus devices with i386/conf/GENERIC. 2008-12-09 13:16:22 +00:00
nakayama
e4c05fb61e Fix CardBus, PCI-PCI bridge support borked in previous commit. 2008-12-09 13:14:38 +00:00
hannken
5d923958f5 Remove superfluous target "image_md_pre". It is already present
in Makefile.cdrom and takes precedence from there.

No functional change intended.
2008-12-09 12:01:55 +00:00
njoly
26a5edd122 Add some padding members to linux_msqid64_ds for 32-bit archs. This
fix msgctl(2) IPC_STAT|IPC_64 calls, at least, on i386.
2008-12-09 11:09:11 +00:00
cegger
33d827105a vmem_check_sanity: refactor overlapping check for better readability.
Move use of vmem_check_sanity into locked sections. Pointed out by ad@
2008-12-09 07:54:59 +00:00
roy
29221b9676 Add myself. 2008-12-09 00:50:27 +00:00
pooka
e49857aeaf create i386 link for amd64. per discussion with mrg. 2008-12-08 22:47:55 +00:00
mhitch
58d3184539 Deal with unrecognized SCSI message byte - restart script to clear the
ACK.  No longer hangs the driver when an unhandled message byte is seen.
2008-12-08 22:05:13 +00:00
dyoung
ce732c2d14 Distinguish the NetMos NM9845 Quad UART chip from the NetMos NM9845
Quad UART + One Parallel chip.
2008-12-08 19:32:39 +00:00
dyoung
466fdf18f2 Add elanpex(4) and elanpar(4), commented out. Add some useful
CardBus / PCI / PCMCIA NICs, hifn, and the OpenCrypto framework.
2008-12-08 19:27:50 +00:00
tron
e123b7f433 Force the nVidia nForce 630i MCP73 to attach to ahcisata(4) as well.
It would otherwise attach to pciide(4) and use PIO mode.

Patch submitted by Bernhard Moellemann in PR kern/40134.
2008-12-08 15:35:23 +00:00
pooka
6a5161dfcb Remove rump cpu_counter.h in favour of the arch native one. I'm
sure there was a reason why I originally added this, but I can't
find what would break without it now.  If something does pop up,
I'll fix it properly this time instead of adding silly headers.
2008-12-08 13:31:58 +00:00
pooka
b14e457e9c Don't use -isystem in rump builds. This ensures that only headers
in the kernel tree are used.
2008-12-08 13:10:21 +00:00