matt
f76d61c1c0
KDASSERT -> KDASSERTMSG
2014-04-12 16:03:59 +00:00
uebayasi
04729d8900
execve_runproc: Correct thinko in Rev. 1.386; the new SP always points to
...
after (higher adderss) argc/argv/env/aux/strings regardless of stack growing
direction . Machines with grow-up stack will detect the top of
argc/argv/env/aux/strings by the address of *argv[] via ps_strings:ps_argvstr.
This means that old comments about RTLD_GAP are all obsolete.
With help from Nick Hudson.
2014-04-12 15:08:56 +00:00
skrll
1099eb26d0
Remove buggy linux completion API emulation and use the common version.
2014-04-12 13:28:41 +00:00
gdt
91dff1f8f3
revarprequest: Avoid leaking mbuf.
...
In revarprequest, an mbuf could perhaps be leaked in an error path.
My reading of the code is that this is not possible, because ar_pro is
set to ETHERNET_IP, and ar_tha can only be null in the 1394 case.
But, better to have the free call anyway; ar_tha does not have a
documented interface contract :-)
Pointed out by Maxime Villard.
2014-04-12 12:24:50 +00:00
skrll
ff0ef56469
Trailing whitespace
2014-04-12 09:09:47 +00:00
skrll
43da0057cb
Fix typo and unbreak the build for various arm kernel builds.
2014-04-12 08:39:58 +00:00
uebayasi
c1047adce3
Don't #define DEBUG_EXEC.
2014-04-12 07:38:32 +00:00
uebayasi
d01b6ecafe
execve_runproc: Refactor debug code.
2014-04-12 07:33:51 +00:00
uebayasi
93fb83ebaa
execve_runproc: Move a long code block handling credential into a separate
...
function. No functional changes.
2014-04-12 06:31:27 +00:00
uebayasi
763d7b32d6
execve_runproc: Unbreak __MACHINE_STACK_GROWS_UP machines. Clarify the stack
...
address allocation code. Summarize an awful big comment about the _rtld()
"gap".
(The log message in Rev. 1.384 was wrong; the new stack address is passed
not via the 3rd register argument, but via the SP. The 3rd is for ps_strings.)
2014-04-12 05:25:23 +00:00
uebayasi
7dd91721cc
Reorder a new lines. Comments.
2014-04-11 18:02:33 +00:00
buhrow
9ac053a4cf
Fix up some KNF errors.
2014-04-11 18:01:12 +00:00
christos
e9d34c2f4d
mention -V none
2014-04-11 17:41:09 +00:00
christos
0b1777bf87
recognize -V none
2014-04-11 17:30:03 +00:00
uebayasi
4282002059
execve_runproc: The stack address passed to the newly execve()'ed process,
...
via the 3rd register argument, always points to the stack base address (==
minsaddr (min stack address) + ssize (stack size)). Clarify that.
2014-04-11 17:28:24 +00:00
uebayasi
8ab74c3b1b
execve_runproc: Reorder a few local vars. Avoid reuse. No functional changes.
2014-04-11 17:06:02 +00:00
matt
c5ab5d969b
Back changes from 1.349 on since the -Wl,-x bug has been fixed in binutils.
2014-04-11 16:51:43 +00:00
matt
2df058a481
whitespace cleanup
2014-04-11 16:32:12 +00:00
christos
2e21bd91e3
explain what's going on, add another kludge for -g
2014-04-11 15:56:09 +00:00
christos
2e8a2b3a38
oops missed one instance of fixman
2014-04-11 13:18:35 +00:00
uebayasi
6770193e9c
Clarify stack size calculation in copyargs(). Comments.
2014-04-11 11:49:38 +00:00
uebayasi
8f07d0cf93
Clean up assertions.
2014-04-11 11:32:14 +00:00
uebayasi
5dcee2c64e
Protect not only proc::p_flag but also lwp::l_ctxlink and proc::p_acflag with
...
proc:p_lock.
2014-04-11 11:21:29 +00:00
uebayasi
5ddf7749cf
Try to decrypt stack size calculation code in execve_loadvm().
...
No functional changes. Two potential miscalculations remain.
2014-04-11 11:11:06 +00:00
joerg
bc36d10400
Mark ixgbe_disable_queue as unused.
2014-04-11 06:50:26 +00:00
msaitoh
0b9303018d
Fix the definition of CTRL_GIO_M_DIS. This bit is not bit 3 but bit 2.
...
Reported by pooka@.
2014-04-11 04:42:34 +00:00
matt
77384fcdce
Add a kernel for the CUBIETRUCK (CUBIEBOARD3). Allow direct mapping of all
...
memory (but for now allow the memory mapped above KERNEL_BASE to used for
poolpages).
2014-04-11 04:19:47 +00:00
matt
eb38db9aee
VERBOSE_ARM_INIT -> VERBOSE_INIT_ARM
2014-04-11 03:10:13 +00:00
matt
13066d8272
Deal with ASID tagged VIVT icaches (not that we have any cpus with them but...)
2014-04-11 02:39:03 +00:00
matt
5ecfb30e9d
Simplify calls into .text by using KERNEL_BASE_VOFFSET.
2014-04-11 02:37:45 +00:00
matt
80167e25f5
Supply CPP define KERNEL_BASE_VOFFSET which is the physical to virtual
...
offset of the kernel.
2014-04-11 02:36:43 +00:00
uebayasi
11c21c773e
Cache struct exec_package * for readability. No functional changes.
2014-04-11 02:27:20 +00:00
christos
318c2b5cda
PR/48729: Torbjörn Granlund: Avoid negative index in array ref.
2014-04-11 01:49:45 +00:00
pooka
26a5a77234
remove obfuscation macros
2014-04-11 01:03:08 +00:00
christos
7a4471249a
PR/48722: David H. Gutteridge: use HOST_SH to execute fixman
2014-04-10 23:28:11 +00:00
pooka
d672154267
Pretend that we have slightly more reasonable stack size limits.
...
(we don't have stacks, that's why we pretend)
2014-04-10 22:14:03 +00:00
asau
dd8566755f
Mark /lib/libnpf.so as a part of NPF to fix builds without NPF (MKNPF=no).
2014-04-10 22:11:57 +00:00
plunky
daae7d153c
the value of HOST_MKDEP previously depended on USETOOLS;
...
make it do so again, and centralise the USETOOLS=no case
into bsd.host.mk
2014-04-10 19:02:18 +00:00
tsutsui
7a138543c8
Fix a botch on switching from apci (and dca) to MI com(4) 10 years ago.
...
I.e. fix apci device address per FRODO_BASE macro change
in frodoreg.h rev 1.2. Now bootloader works with serial console
on HP425e (which has only com at frodo).
Thanks to miod@openbsd for providing his 425e.
2014-04-10 18:10:09 +00:00
wiz
49f7bce00f
Mention the word 'inode' next to st_ino so it's easier to find.
...
Bump date.
2014-04-10 17:11:15 +00:00
skrll
6fac70af06
Fix a typo - it's "#define". Use defined(foo) rather than just foo in
...
preprocessor conditional.
ok matt@
2014-04-10 16:07:50 +00:00
matt
5c53644782
Address PR/48710.
...
r3 is not trashed during the routine so the level is preserved.
The only two real bugs was not initializing r3 to 0 to start with L1 cache
and the invalid fetching the set count from r3. The mov r1, #0 should have
been mov r3, #0 and has been corrected.
Instead of two shifts, just use ubfx to extract the set bits and then compare
them to 0.
Add some other minor optimizations that make the code a little clearer.
2014-04-10 02:55:13 +00:00
matt
ffe8c21fa8
change cortex_cpufunc to armv7_cpufuncs. CPU_CORTEX -> CPU_ARMV7
2014-04-10 02:49:42 +00:00
matt
28043ab4c2
emit VERBOSE_INIT_ARM
2014-04-10 02:48:40 +00:00
matt
58a0a0c4d3
Fix pasto.
2014-04-10 02:45:55 +00:00
matt
6950cdf3f9
Fix pmap_extract to deal with non-4KB pages.
2014-04-10 02:45:02 +00:00
matt
829b3baa31
Deal with non-4KB pages properly.
2014-04-10 02:44:05 +00:00
pooka
ef453332be
add aio driver as rump kernel component
2014-04-10 00:09:08 +00:00
pooka
885b424da9
regen
2014-04-09 23:57:26 +00:00
pooka
9f45fed20c
rump kernel wrappers for aio syscalls
2014-04-09 23:55:37 +00:00