Commit Graph

226567 Commits

Author SHA1 Message Date
uebayasi
532bc286ec execve_runproc: Isolate new stack arg filling code into a function. 2014-04-15 17:06:21 +00:00
uebayasi
e4f9e005a5 execve_runproc: Isolate ps_strings filling code into a function. 2014-04-15 16:44:57 +00:00
uebayasi
0244fbfc39 execve_runproc: Simplify &argc address calc. The set of (argc, argv, ...)
is located just "behind" the initial SP.  SHRINK, then ALLOC, and you get
&argc.
2014-04-15 16:13:04 +00:00
uebayasi
9605f3cc61 exec_loadvm: Isolate stack size calc logic into separate functions. 2014-04-15 15:50:16 +00:00
pooka
db08ffef5a update to new pci_intr_string() 2014-04-15 13:47:06 +00:00
pooka
e9c74271a7 add multi-inclusion protection 2014-04-15 13:41:46 +00:00
hannken
0e9394463c Add __diagused. 2014-04-15 12:37:59 +00:00
macallan
63aa316f6c fix same pasto as in sparc/cpu.c - print frequency in MHz if we say it's in MHz 2014-04-15 12:22:49 +00:00
joerg
7209984597 Add initial unwind support for SPARC/SPARC64. 2014-04-15 11:44:26 +00:00
macallan
d2bb74c027 cpu0 at mainbus0: mid 8: RT620/625 @ 125000 MHz, on-chip FPU
unfortunately that's too good to be true, so print frequency in MHz when we
say it's in MHz
2014-04-15 10:39:44 +00:00
macallan
a825263fc6 print chip revision on attach 2014-04-15 10:24:54 +00:00
joerg
8b6ddbe40e Append to CPPFLAGS.${src}, don't overwrite it. 2014-04-15 10:02:21 +00:00
hannken
2f1e07219a Fix a deadlock where one thread exits, enters fstrans_lwp_dtor()
and wants fstrans_lock.  This thread holds the proc_lock.
Another thread holds fstrans_lock and runs pserialize_perform().
As the first thread holds the proc_lock, timeouts are blocked and
the second thread blocks forever in kpause().

Change fstrans_lwp_dtor() to invalidate, but not free its info
structs.  No need to take fstrans_lock.

Change fstrans_get_lwp_info() to reuse invalidated info before
trying to allocate a new one.
2014-04-15 09:50:45 +00:00
maxv
05b3bfa0ba There's no need for this NULL-check. 2014-04-15 06:14:55 +00:00
buhrow
061d6339a9 Checking in cosmetic changes -- no functional change.
(Suggestions made by Taylor Campbell)
2014-04-15 05:27:54 +00:00
pooka
9426d42dd4 build hypercalls if RUMP_PCI_USER is defined 2014-04-14 23:53:42 +00:00
pooka
d1e65a1e3d fix typo 2014-04-14 22:56:53 +00:00
pooka
5145f215c7 * make it possible for rumpcomp_pci_intr_establish() to know which
device it's establishing the interrupt for
* make it possible to implement bus_dmamem_map() properly
2014-04-14 21:43:00 +00:00
pooka
540fe34fd1 add necessary -I for /dev/pci* creation 2014-04-14 21:36:22 +00:00
pooka
fcfbee3413 be even more explicit about handling only bus 0 2014-04-14 21:34:08 +00:00
pooka
5ce7a9bfb7 Add a vacookie to busdma_segment, for potential help with bus_dmamem_map() 2014-04-14 21:31:00 +00:00
reinoud
4ff24160d3 Implement sscom interrupt masking and acknowledgement routines 2014-04-14 21:16:15 +00:00
joerg
68aeaa009b Use correct library path for -m32 on sparc64. 2014-04-14 21:09:02 +00:00
matt
36d3623386 Add hook to set L2 cache to write-through 2014-04-14 20:53:28 +00:00
matt
7550e9f8cc Support (untested) SHEEVA_L2_CACHE and SHEEVA_L2_CACHE_WT options.
Move prototypes out to <arm/cpufunc.h> to their own file.
Add sdcache routines to cpufunc_asm_sheeva.S
Add code sheeve_setup to init the sdcache and sdcache info.
2014-04-14 20:50:46 +00:00
reinoud
18444ed2d1 For Exynos4 platforms, re-implement PoP detection so we can detect 1Gb
systems.
2014-04-14 19:45:40 +00:00
joerg
a33c368664 Using bcopy/memcpy with NULL arguments is valid as long as the size is
also 0.
2014-04-14 18:18:58 +00:00
joerg
4b91d83710 Some architectures like SPARC need to apply a fixed offset to the return
address. Introduce such a constant.
2014-04-14 18:15:17 +00:00
uebayasi
e9a654c6e7 Use ldscript. Identical output confirmed. 2014-04-14 15:05:19 +00:00
pooka
a81a378780 Remove extraneous sysctl setup calls now done as part of regular attach. 2014-04-14 14:30:24 +00:00
isaki
17f708ab43 Remove -mc68000 asm option for GCC4.8 (or new binutils?).
With this option, new gcc complains that "boot_ustar.S:21: Error:
selected processor does not have all features of selected architecture".
I'm not sure about the essence of this error, but this option maybe
not needed because there is no need to consider about 68000 here.
2014-04-14 14:24:27 +00:00
uebayasi
3d725db397 copyinargs: Redo previous; if given fakearg is longer than arg buf (which is
very unlikely to happen), there's no point to continue with truncated arg.
Just give up and return E2BIG.
2014-04-14 13:14:38 +00:00
uebayasi
3645dc518b Other boot loaders name ELF *.sym, not *.syms. Follow that convention. 2014-04-14 13:04:44 +00:00
martin
719b3cdc66 The sparc64 port switched to TOPDOWN_VM finally. 2014-04-14 10:57:46 +00:00
martin
9c098a4b96 Implement and enable TOPDOWN_VM. From Chuck Silvers. 2014-04-14 10:54:08 +00:00
uebayasi
dd3e806542 copyinargs: Replace a hand-written string copy loop with strlcpy(3). Carefully
reuse return value of strlcpy(3) to iterate.
2014-04-14 05:39:19 +00:00
jakllsch
89097d7fef don't run off the end of the source resource buffer 2014-04-14 01:56:18 +00:00
joerg
728ced6ed6 Bail out if backtrace(3) failed. 2014-04-13 20:58:26 +00:00
reinoud
d8b6e743da Remove old trustzone headerfile inclusion 2014-04-13 20:53:35 +00:00
reinoud
3e82afb24f Remove unused code snippet 2014-04-13 20:52:29 +00:00
reinoud
cf9ae6b4ff Remove old trustzone headerfile inclusion 2014-04-13 20:49:36 +00:00
reinoud
92a7b0930f Split off Odroid-U* kernel from combined config file 2014-04-13 20:47:20 +00:00
reinoud
5062dc67f8 Remove trustzone firmware indirect calls by explicit calling the exynos
routines in exynos_soc.c

While here, also remove unused variable conaddr
2014-04-13 20:45:25 +00:00
joerg
44e617ea85 Move definition of what the native register layout is into
Registers.hpp.
2014-04-13 19:04:01 +00:00
skrll
85857b7e96 The ctf tools are controlled by MKCTF now. Mark the debug files
accordingly.
2014-04-13 17:13:27 +00:00
reinoud
17b664f2de Redefine IS_EXYNOS4_P() to check for the product family instead of summing up
variants
2014-04-13 17:06:02 +00:00
tsutsui
c6dcfa5a19 Add sti(4) at sgc screen console support. From (the late) OpenBSD/hp300.
Tested on HP9000/425e, which was sent from Miod Vallat and
demonstrated at Open Source unConference 2014 Kagawa.
2014-04-13 15:45:26 +00:00
pooka
360bbc64e4 add some sort of bus_space_barrier() 2014-04-13 15:43:26 +00:00
pgoyette
aa1b1c5be2 If we pmf_register on attach, we should pmf_deregister on detach. 2014-04-13 13:19:50 +00:00
christos
645afb65f7 Fix use after free:
https://rt.openssl.org/Ticket/Display.html?id=2167&user=guest&pass=guest
https://rt.openssl.org/Ticket/Display.html?id=3265&user=guest&pass=guest
2014-04-13 13:14:15 +00:00