Commit Graph

203087 Commits

Author SHA1 Message Date
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
jruoho
5941dd2312 Note that dup2(2) and dup3(2) may not fail with EMFILE; from PR lib/45148. 2011-07-16 14:33:33 +00:00
jruoho
ce5544e745 PR lib/45148 was fixed; remove xfail. 2011-07-16 14:29:15 +00:00
uch
6a2dbe9ae4 core symlink operation moved to v7fs_file_util.c and introduce V7FSBSD_MAXSYMLINKLEN for makefs 2011-07-16 12:35:40 +00:00
uch
f96feeccb7 export v7fs_datablock_addr for makefs 2011-07-16 12:35:32 +00:00
jmcneill
e1214af8f3 Fix a locking problem with the demux, and while here do a bit of
housekeeping and documentation.
2011-07-16 12:20:01 +00:00
nakayama
02b9edfe03 Bring some fixes and minor differences from sparc64 version. 2011-07-16 11:15:52 +00:00
dyoung
9c14481bd4 Use <sys/bus.h> not <machine/bus.h>. 2011-07-15 23:40:56 +00:00
jmcneill
6f708f8d76 add nsclpcsio module to i386 build 2011-07-15 21:08:48 +00:00
jmcneill
ac535e1004 add nsclpcsio module glue 2011-07-15 20:57:01 +00:00
jmcneill
17536f8e9e add module support 2011-07-15 20:56:26 +00:00
jmcneill
28467bc5e1 use lg3303_get_snr, lg3303_get_signal_strength 2011-07-15 20:29:58 +00:00
jmcneill
8b8276a7ab add lg3303_get_snr, lg3303_get_signal_strength, lg3303_get_ucblocks 2011-07-15 20:28:38 +00:00
jmcneill
ee71f9a61a add dtv_intlog10 implementation, from apb@ 2011-07-15 20:27:41 +00:00