Commit Graph

226838 Commits

Author SHA1 Message Date
tsutsui
bc4b954757 Fix stupid botches in previous.
Use a proper device unit number if a unit number or non-default device
is specified on the boot command.
2014-04-21 11:06:55 +00:00
matt
8ed9a6d892 Since all our compilers support __DBL_* and __FLT_*, use them to define
{DBL,FLT}_{DIG,MIN,MAX}
2014-04-21 10:53:47 +00:00
joerg
09f7b6d69d /usr/include/g++/bits/${CONFIG} directories are created independent of
MKGCC, so fix file lists.
2014-04-21 00:17:50 +00:00
dholland
a468ec4988 Don't bother using variables whose value is never changed from the
initialization value.
2014-04-20 23:31:40 +00:00
dholland
4e3b1a0bd4 Use an enum type for PRINTMODE vs. WIDTHMODE. Compiler output diffs have
been checked.
2014-04-20 22:48:59 +00:00
matt
d268b0955a Allow setting of console speed in init. 2014-04-20 22:45:27 +00:00
aymeric
0a70cfa1fe Call mutex_destroy() on sc_kqlock in tap_detach(). Found by LOCKDEBUG. 2014-04-20 22:39:51 +00:00
matt
bb849c1f44 Reduce resident_count by number of pages, not number of ptes. 2014-04-20 22:31:34 +00:00
maxv
6547a55a59 This thing is totally buggy: 'data_len' is modified by the fs, so calling
kmem_free with it while its value has changed since the kmem_alloc is far
from being a good idea.

If the kernel figures out that something mismatches, it will panic
(typically with kernfs).
2014-04-20 21:26:51 +00:00
christos
37052397df include cpufunc_proto.h since things need it. 2014-04-20 16:06:05 +00:00
abs
a260d75005 Mark /rescue/ldconfig as 'pic' only to enable building static releases (NOPIC=).
Only MKX11=no tested.
2014-04-20 13:41:21 +00:00
martin
124511af77 Fetch the ethernet address from u-boot boardinfo and provide it as mac-address
property for ethernet controllers.
2014-04-20 10:06:08 +00:00
tsutsui
18155f04b3 Add proper consinit(9) support for sti(4) at sgc framebuffer on hp300.
The cnattach functions for sti(4) and service switch check method
for 425e in com_frodo.c are taken from OpenBSD.
The strategy how to choose the console device in hp300_cninit() is
quite diverged from 4.4BSD and OpenBSD so it's tweaked by me.

Also put several changes in sti_sgc.c to reduce diffs from OpenBSD/hp300.

Tested on 425e and 362 (which still uses gendiofb(4), not sti(4)).

XXX: sti(4) requires uvm_km_alloc(9) and uvm_map_protect(9)
     to copy and call ROM functions on the executable memory region, so
     it can be called before UVM and related initializations are complete.
     Probably it's time to consider about MI "deferred consinit()" API
     in init_main.c (or elsewhere) for modern complicated VM system...
2014-04-20 04:12:54 +00:00
uebayasi
82d46164cd execve_runproc: Isolate emul specific code into a function. 2014-04-20 00:20:01 +00:00
uebayasi
f207cc4217 copyinargs: Shorten a local var name. 2014-04-19 23:00:27 +00:00
uebayasi
ea85945d7a copyinargs: Plug theoretical memory leak when fakearg is too long.
Pointed out & reviewed by Maxime Villard.
2014-04-19 22:59:08 +00:00
joerg
f76ae5ef4f Basic unwind support for HPPA. 2014-04-19 21:21:24 +00:00
matt
7c2e5bb200 Use the conspeed and div/frac from the uart to figure out the frequency
for the console.   XXX until we actually compute from the chip clocks.
2014-04-19 19:47:55 +00:00
apb
e9ba37c365 Clarify the NetBSD-specific and Linux-specific code at the top of
compat_defs.h:

* Explain why _NETBSD_SOURCE should not be defined on NetBSD.
* Move NetBSD-specific block to the top of the file.
* Improve comment about Linux <feature.h>.
* Move #undef _POSIX_SOURCE and #undef _POSIX_C_SOURCE to the
  Linux-specific block instead of a place that would affect all
  non-NetBSD platforms.  This makes the code match the comment.

This will need to be re-visited if other platforms also need
#undef _POSIX_SOURCE or #undef _POSIX_C_SOURCE.  At present, I suspect
that they are needed only for Linux.
2014-04-19 19:01:08 +00:00
reinoud
2736371fe1 Move the watchdog registers back to the exynos_reg.h 2014-04-19 16:43:08 +00:00
apb
9e61294560 Add note about sending bsd-family-tree changes upstream to FreeBSD. 2014-04-19 16:05:45 +00:00
apb
3ff1cdf566 Set ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
instead of ac_install_sh="$ac_aux_dir/$ac_t -c"
in all configure scripts in the gcc.old/dist tree.
This ensures that the install-sh script is always run
under the correct shell.
2014-04-19 15:57:46 +00:00
snj
1f0d8af3c5 Add 6.0.5 and 6.1.4. 2014-04-19 15:51:46 +00:00
reinoud
aebd3848a9 Enable the exywdt watchdog since its now implemented and remove the
VERBOSE_INIT_ARM; its debugging is not needed normally.
2014-04-19 15:32:18 +00:00
reinoud
69879e5797 Move the WDT register definitions to the C source to unclutter the directory 2014-04-19 15:30:41 +00:00
apb
7f226bea47 Set ac_install_sh="$SHELL $ac_aux_dir/$ac_t -c"
instead of ac_install_sh="$ac_aux_dir/$ac_t -c"
in all configure scripts in the gcc/dist tree.
This ensures that the install-sh script is always run
under the correct shell.
2014-04-19 13:00:57 +00:00
matt
0d68f66d06 Normal memory is not poolpage memory unless poolpage memory is default memory. 2014-04-19 12:48:42 +00:00
matt
e5f2235165 Add PCI register definitions 2014-04-19 12:48:03 +00:00
matt
5a400bbb3d ldscript for ppc64 kernels 2014-04-19 12:46:04 +00:00
apb
441c2cf2f8 Use $(SHELL) to run move-if-change. 2014-04-19 12:41:31 +00:00
bad
89fef8a2c6 Add support for accelerated AES_CBC in ubsec(4) for BCM5823 and newer.
Update man-page and bump date.
Adjust OpenBSD RCS IDs to reflect roughly the version we are in sync with.
2014-04-19 12:29:24 +00:00
wiz
c07d6dcd59 At least event(3) looks better when passed through tbl(1), so set USETBL. 2014-04-19 08:03:21 +00:00
skrll
e396d66cd0 Deal in 4KB pages for vchiq regardless of ARM page size. 2014-04-19 07:28:18 +00:00
skrll
b34c39e100 Wrap a long line. 2014-04-19 07:17:21 +00:00
skrll
71007d3e1f Comment KNF 2014-04-19 07:10:31 +00:00
tsutsui
e2db4e9107 Note recent hp300 changes for HP9000/425e. 2014-04-19 06:20:51 +00:00
tsutsui
f21b045fdf Add RTC support for HP9000/425e to bootloader too.
Also put several cleanup:
- make local functions and variables static
- use proper variable types
- some KNF

Note it turns out that extreme slowness of netboot on hp300 is
caused by the too slow access of the traditional RTC chip at intio
(i.e. netboot on 425e is so much faster than others). Oh well.
2014-04-19 06:04:58 +00:00
tsutsui
0f84edae2d Add proper RealTime Clock support for HP9000/425e.
As the OpenBSD/hp300 page says 425e doesn't have the traditional
RTC at intio (as it also lacks DCA 16550 serial at intio?),
but after a few hour investigation it turns out that
425e uses mc146818 compatible calendar clock in
the Apollo "frodo" utility chip and the frodo chip on
425e actually has the 32kHz OSC and is actually backed up
by the onboard lithium battery.

Tested on HP425e (with mcclock) and HP362 (with old rtc).
2014-04-19 05:37:54 +00:00
tsutsui
8199d4f410 No need to use annoying HAVE_GCC to handle gcc48 m68k behavior chnages. 2014-04-19 00:55:37 +00:00
matt
20e97df7b4 Move xscale cpu_cpwait back from cpufunc_proto.ht to cpufunc.h 2014-04-19 00:33:24 +00:00
christos
dd5fdb3e67 unbreak gcc4.5 2014-04-19 00:04:12 +00:00
christos
28b2b22058 Include cpufunc_proto.h before locore.h so that we define cpu_cpwait first.
XXX: this is a mess.
2014-04-18 23:50:59 +00:00
bad
7fe4f31ad3 Rewrite the dmamap handling to allocate and cache the dmamaps beforehand.
Calling bus_dmamap_create/destroy is no longer possible in interrupt context.
Move the dmamaps to the end of struct ubsec_q so the rest of the struct
can be cleared with one call to memset().

As a bonus we get a 25% increase in throughput encrypting 8K blocks.
2014-04-18 22:25:58 +00:00
mlelstv
5d7b5c8e23 more unused variables. 2014-04-18 22:02:44 +00:00
christos
9b2bca8f70 add more places where attribute is valid. 2014-04-18 21:54:52 +00:00
christos
719ac47d5d provide a poor man's fmemopen() 2014-04-18 21:53:44 +00:00
mlelstv
a5784f964e include VGA kernel options 2014-04-18 21:45:22 +00:00
mlelstv
b41aa45759 handle unused variables 2014-04-18 21:44:43 +00:00
martin
dcdbdffa7e Explicitly clear p_md.md_flags for newer binaries. Fixes PR port-hppa/48755.
OK: skrll
2014-04-18 18:32:00 +00:00
matt
0bbe3a2196 ARMv6+ platforms no longer have strict alignment requirements. 2014-04-18 15:45:46 +00:00