203100 Commits

Author SHA1 Message Date
dyoung
e08fcd397b Update set lists for changes related to new-style <sys/bus.h>.
While I'm here, repair sparc64 set list.
2011-07-17 23:37:32 +00:00
mrg
210f684c14 actually use CFATTACH_DECL_NEW() and device_private() for mspcic. 2011-07-17 23:34:17 +00:00
mrg
794d81a9dd convert all the "empty softc" (just "struct device") drivers to using
device_t/cfdata_t and CFATTACH_DECL_NEW().

the mspcic driver was also converted since it does not ever touch the
sc_dev it used to have in there.
2011-07-17 23:32:37 +00:00
dyoung
bcbb44b510 Switch to new-style <sys/bus.h>. hp700 releases are unbuildable for
reasons not related to my changes here, so I'm not 100% that a release
build will run to completion with these changes in place.
2011-07-17 23:32:21 +00:00
dyoung
9c93e701a6 Switch sparc and sparc64 to new-style <sys/bus.h>. 2011-07-17 23:29:10 +00:00
dyoung
7d2843a545 Switch more PowerPC ports having PCI support to new-style <sys/bus.h>. 2011-07-17 23:27:02 +00:00
dyoung
d181d57cd1 Enable new-style <sys/bus.h> on several PowerPC ports supporting PCI
buses.  Make non-inline implementations of bus_space(9) and bus_dma(9)
routines and move them to appropriate .c files.

This may leave amigappc in a bad state, sorry.  Fortunately, it will be
easy to repair by imitating the bus.h -> bus_{defs,funcs}.h split in
some other PowerPC port.
2011-07-17 23:23:53 +00:00
mrg
ace9f0e4af convert all the sparc drivers that attach on my ss20 to use device_t,
cfdata_t and CFATTACH_DECL_NEW().

fd/fdc could use better testing, but i'm pretty sure i got it right.
2011-07-17 23:18:23 +00:00
dyoung
6e7a8e528f #include <sys/bus.h> not <machine/bus.h>. 2011-07-17 23:08:56 +00:00
dholland
84a8bd42ce minor amendment to previous 2011-07-17 22:14:47 +00:00
dholland
d1917ffca2 Provide correct locking for ufs_wapbl_rename. Note that this does not
fix the non-wapbl rename; that will be coming soon. This patch also
leaves a lot of the older locking-related code around in #if 0 blocks,
and there's a lot of leftover redundant logic. All that will be going
away later.

Relates to at least these PRs:

  PR kern/24887
  PR kern/41417
  PR kern/42093
  PR kern/43626

and possibly others.
2011-07-17 22:07:59 +00:00
dholland
9ae442b9dd At the end of ufs_rmdir, don't use a dangling vnode pointer to call
fstrans_done. Ok hannken@
2011-07-17 22:02:26 +00:00
dholland
3d3932fe1c Fix typo in ufs_rmdir that causes locking botches. This code should be
unreachable because the FS-independent code contains the same test... but
I'm not sure if that applies if nfsd is involved.
2011-07-17 22:00:38 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
christos
ab0103dee5 fix type punned warnings in debugging code. 2011-07-17 20:47:39 +00:00
joerg
9777e8c193 Update to Clang/LLVM r135360. Most importantly, this adjusts the
cc -print-search-dirs output to expand sysroot-prefixed library paths to
make live easier for libtool.
2011-07-17 20:07:56 +00:00
joerg
5158e28f3b Disable Clang's integrated assembler for the AES-NI files for now.
Somewhere in this mess of .byte streams, corruption happens. Disassembly
only shows slightly different filling of alignment sequences, further
analysis is needed.

XXX This should be rewritten to be proper assembler code
2011-07-17 19:48:31 +00:00
jym
4b70f9c001 CR4_PAE is always set to 1 under amd64, so indicate that PAE mode is
enabled. Can be useful for 32-bits test runs on amd64 hosts.
2011-07-17 15:16:58 +00:00
uch
8ef6a31f0e fix freeblock counting 2011-07-17 12:47:38 +00:00
njoly
58b2cc408f Use errx() to display kvm_openfiles error message, the provided buffer
already has it.
2011-07-17 10:22:07 +00:00
dyoung
32cefa1432 Oops, add back struct alpha_pci_conf_readwrite_args. 2011-07-17 04:30:56 +00:00
jakllsch
ff198a0b2c - Fix wmieeepc(4) hotkeys on Eee PC 1215T
- Rework wmi_event_enable into appropriately seperate versions for enabling
   events and collection.
 - Enable all events, not just ones tagged as expensive.
2011-07-17 02:46:01 +00:00
jakllsch
041ea5875c "successfully" spell "succesfully" in a comment. 2011-07-17 02:32:01 +00:00
dyoung
3e7023d63c We don't install <evbmips/bus.h>, so mark the set-list entry obsolete. 2011-07-17 01:37:32 +00:00
dyoung
0e0deeb06f Switch MIPS and MIPS-ish architectures to new-style <sys/bus.h>. This
involves moving some inline bus_space(9) implementation into .c files.
2011-07-17 01:36:50 +00:00
dyoung
ed985acff0 Increase SYMTAB_SPACE. 2011-07-17 01:35:01 +00:00
dyoung
e72ff6f361 Repair device_t/softc so that this compiles. 2011-07-17 01:29:25 +00:00
dyoung
c3b6818a57 We no longer install <machine/bus.h> on amd64 and i386, so mark it
obsolete in the set lists.
2011-07-17 01:20:12 +00:00
dyoung
729a062f00 On i386, good-bye <machine/bus.h>. 2011-07-17 01:18:42 +00:00
dyoung
47f9429e80 On amd64, good-bye <machine/bus.h>.
Up next: update set lists.
2011-07-17 01:17:27 +00:00
christos
27ed5dfb1a - exit with ERROR_EXIT consistently
- don't use warnx() for things that set errno
- check result of setlogin()
- don't call setlogin() without calling setsid()
  should fix kernel warnings like:
	cron (pid NNNNN) changing logname from root to USER
	cron (pid MMMMM) changing logname from USER to root
2011-07-17 01:16:46 +00:00
christos
bd253b6939 calling setlogin() once is good enough. 2011-07-17 01:14:25 +00:00
dyoung
2b3a0c5ab0 Mark libalpha obsolete. 2011-07-17 01:13:22 +00:00
dyoung
ff4557ec84 Don't descend into alpha/.
Up next: fix set lists.
2011-07-17 01:09:00 +00:00
dyoung
5a5f17e82b Don't #include <machine/bus_defs.h> from this header unless _KERNEL
is #defined.  While this header is installed in the alpha userland,
however, <machine/bus_defs.h> is not.

Don't declare any of the alpha_bus_ or alpha_pci_ symbols unless _KERNEL
is #defined.  I cannot find anything but libarch in the base system
that uses the symbols.  Anything using alpha_pci_ symbols ought to use
pci(3), instead.  Up next: don't use those symbols in libarch.
2011-07-17 01:08:12 +00:00
dyoung
7186d1a576 #include <sys/bus.h> not <machine/bus.h>. 2011-07-17 00:52:42 +00:00
tsutsui
44631bea4d Some style nits. 2011-07-16 23:49:10 +00:00
tsutsui
ce89d25111 Add definitions for elf2aout tools. 2011-07-16 23:42:42 +00:00
mrg
7c7bb760e6 revert the previous. it didn't help and wasn't the problem anyway. 2011-07-16 23:07:50 +00:00
apb
217d9c2a09 Reinstate #include <dev/dtv/dtvif.h> which was incorrectly
removed in the previous commit.
2011-07-16 22:41:59 +00:00
apb
76108b75b1 Instead of returning an integer between 0 and 31 (scaled by 1<<24), use
(0.5 + x/2 - 1/x) as an approximation to log2(x) for x from 1 to 2, and
scale the input to fit this range.  Now the error is always less than
0.2%.

Also add an test program, hidden behind #ifdef TEST_DTV_MATH, to print
a table of expected and actual results, and the errors.
2011-07-16 22:30:26 +00:00
matt
2a26aa316e Add netbsd-sd0a 2011-07-16 22:16:59 +00:00
matt
bfb796370f Remove dead devices (replaced by pq3cfi). 2011-07-16 21:58:26 +00:00
matt
6d1159d9c1 Fix off-by-one. 2011-07-16 21:36:18 +00:00
mrg
25439b2d3c apply some static. 2011-07-16 20:25:28 +00:00
jmcneill
f3fc71ee2e add sys/types.h 2011-07-16 16:13:13 +00:00
tsutsui
bf2202e183 Revive NetBSD/luna68k.
Even after almost a lost decade since NetBSD/luna68k was
switched to using ELF format by default back in 2001,
actually only one fix (bus.h) is required for a GENERIC kernel itself
to get multiuser login: prompt on a real hardware.  Hurrahhh!!!

Demonstrated with a working Xorg mono server on the NetBSD booth
at Open Source Conference 2011 Kansai @ Kyoto:
 http://www.ospn.jp/osc2011-kyoto/

"Very impressed," commented by Tomoko YOSHIDA,
Program Committee Chair of the Conference,
and some other OMRON guys.

Special Thanks to Tadashi Okamura, for providing
a working SX-9100/DT "LUNA" for this mission.


Changes details:

sys/arch/luna68k/include/bus.h
 - handle stride properly even on multi and region ops for MI spc(4)
 - also fix stride handling of (currently unused) 2 and 4 byte ops

sys/arch/luna68k/conf/Makefile.luna68k
sys/arch/luna68k/conf/kern.ldscript.head
sys/arch/luna68k/conf/kern.ldscript.tail
 - build a faked a.out kernel using elf2aout(8) tool
   and a linker script derived from cats and shark
   for the LUNA firmware that loads a.out binary directly
   via network or from a UNIOS partition on a local disk

sys/arch/luna68k/dev/omrasops.c
sys/arch/luna68k/dev/omron_rfont.h
 - use the original OMRON font derived from 4.4BSD-Lite/luna68k
   rather than gallant19 which is used on Sun workstations
   (XXX omrasops.c should be rewritten to use generic wsfont(4))

distrib/luna68k/*
distrib/utils/sysinst/arch/luna68k/*
etc/etc.luna68k/MAKEDEV.conf
etc/etc.luna68k/Makefile.inc
sys/arch/luna68k/conf/INSTALL
 - build a ramdisk based INSTALL kernel with sysinst(8) for luna68k
 - also build an installation iso image for luna68k

sys/arch/luna68k/conf/GENERIC
 - enable SYSVSHM (and other SYSV*) options for Xorg server

More Xorg changes (which need some more cleanup) and
isiboot.c fixes will come soon.
2011-07-16 15:52:20 +00:00
tsutsui
a1f5c3dd33 Build nbm68k-elf2aout as a host tool on m68k targets
for an ancient PROM bootloader.
Mostly taken from nbmips-elf2ecoff.
2011-07-16 15:52:01 +00:00
jmcneill
07b278992f If there are CPUs associated with this thermal zone, use their names to
create the temperature sensor name:

[acpitz0]
  cpu0 temperature:    53.000  105.000   41.800                   degC
2011-07-16 15:45:24 +00:00
rmind
3127d2afb9 Initialise cpus_running to 1 on Xen, as it was done on x86.
Problem analysed by hannken@.  Fixes PR/45062.
2011-07-16 14:46:18 +00:00