Commit Graph

225546 Commits

Author SHA1 Message Date
rmind
f1567f86d3 npfctl_bpf_cidr: another buf fix in handling IPv6 masks (bug found on ARM). 2014-03-15 08:46:01 +00:00
ozaki-r
609ba481a5 Implement DTrace FBT provider for ARM
- Finding probable functions
- Replacing instructions
- Emulating instructions

It is tested only on ARMv7 CPUs yet, for example,
-m evbarm (-a earm) kernel=BEAGLEBONE.
2014-03-15 08:00:19 +00:00
ozaki-r
48e9045322 Enable invop handler on module load
It sets a fbt handler to dtrace_invop_jump_addr on module load,
which is used to call the dtrace probing function from the trap
handler.
2014-03-15 07:49:15 +00:00
ozaki-r
26e6962bfe Make arm/dtrace_isa.c buildable
This is a band-aid for build, but it works anyway.
We have to do a real fix in the future.
2014-03-15 07:43:01 +00:00
ozaki-r
b394d987ee Add a trap handler for DTrace FBT provider 2014-03-15 05:58:30 +00:00
ozaki-r
b544726383 Add breakpoint definitions for DTrace 2014-03-15 05:54:20 +00:00
dsl
092f718fed There is some very odd code in s_exp2.c that only works if 'double'
values are rounded to 53 bit mantissa in teh x87 registers.
This hasn't been true since Nov 11 2013.
Forcing a store-load for 'double' in STRICT_ASSIGN() seems to fix things
  (at least enough for the few random test cases).
I suspect the code could be changed so that the number of mantissa bits
  didn't matter.
2014-03-14 22:21:31 +00:00
mrg
f6e33f02a8 remove various set-but-unused variables. 2014-03-14 21:59:41 +00:00
matt
2b85113592 Cleanup sscom to make more SoC invariant 2014-03-14 21:40:48 +00:00
matt
c4aa7bf7ad #include <arm/locore.h> 2014-03-14 21:39:48 +00:00
matt
e6355c4f2a #include <sys/evcnt.h> 2014-03-14 21:39:29 +00:00
tsutsui
be5ebbc954 Sync bus error and address error handlers with other m68k implementation.
Tested on X68030.  Needs tests on 040 and 060turbo
(though it should work as other m68k ports).

The x68k port implemented 68060 support including these vector handlers
as early as amiga back in 1996, but even after amiga's locore.s was
improved several times (updating vectors at runtime to switch handlers
per CPU types etc.), x68k's one has not been updated.
After that, atari and mac68k pulled amiga's implementation,
hp300 pulled mac68k, and then most other m68k ports pulled hp300 ones.

Probably that's the reason why only x68k had different implementations
(i.e. no reason that avoids using common handler implementation),
and now it's time to prepare common arch/m68k/m68k/busaddrerr.s.
2014-03-14 20:24:24 +00:00
cherry
27f396ba32 Add crtstuff for ia64. Compile tested only 2014-03-14 18:15:02 +00:00
cherry
c6bc9640b2 Tweak the argument order passed to the elf executable entry point (usually "__start"),
so as to make call to the C function ___start() easier from assembler.
We setup the memory stack frame for ___start(), before calling it.
2014-03-14 17:45:37 +00:00
cherry
0131c6b645 Add RCSID() macro 2014-03-14 17:36:03 +00:00
ginsbach
55791dff41 add missing break 2014-03-14 13:17:18 +00:00
christos
14e72322f6 Don't SSP a file that uses alloca. 2014-03-14 12:17:53 +00:00
roy
7488a0a59f Note import of dhcpcd-6.3.2 2014-03-14 11:32:34 +00:00
roy
083b63d1f4 Sync 2014-03-14 11:31:11 +00:00
rmind
167f6f25d6 NPF: add support for "stateful-ends". 2014-03-14 11:29:44 +00:00
roy
f19170ec2b Import dhcpcd-6.3.2 with the following changes:
* Improvements to autoconf build emulation
  * CARRIER/NOCARRIER are now run outside of the IPv4 runs
  * validate domains correctly which contain a - on non bash shells
  * don't remove IPv6 addresses from internal state when added as tentative
  * HUP now rebinds, ALRM now releases - the -x and -k flags work as
    they used to
  * Add -M, --master option to force dhcpcd into master mode even if one
    interface is specified on the command line
  * Fix a crash when receiving a reconfigure key
  * Dumping a DHCPv4 lease works again
  * SEND_DAD code removed
  * hoplimit is no longer defined for DHCPv6 messages
  * hoplimit of 255 for IPv6 RS/ND message is now defined at the socket
    instead of ancillary data with the message
2014-03-14 11:27:36 +00:00
pooka
b649a59f0c Remember to bump revision for the "int my time VIF_DYING" change yesterday. 2014-03-14 10:06:22 +00:00
martin
06481cf218 Remove unused variables 2014-03-14 08:55:40 +00:00
martin
7046111bd6 Remove an unused variable 2014-03-14 08:50:08 +00:00
khorben
4a9c7f6c2b Fixed wrong cast and invalid array access in the calibration framework, as
documented in PR kern/45872. The AA() macro accessed sample coordinates as
long integers, whereas they are really stored as signed integers.

Fixes calibration on my Wetab device.
2014-03-14 05:03:19 +00:00
justin
54d90457f6 If dlopen returns NULL assume we are statically linked and return,
rather than getting a warning when dlinfo fails.
2014-03-14 01:18:39 +00:00
pooka
519e5d9ffc + rumpkern_time 2014-03-14 01:05:57 +00:00
pooka
41e29f6bc7 Add rumpkern_time for nanosleep, clock_gettime, setitimer, etc. 2014-03-14 01:02:34 +00:00
pooka
c9bffc6f73 regen: time/timer related syscalls for rump kernels 2014-03-14 00:56:37 +00:00
pooka
527bb3b75d Add rump kernel syscall wrapper flag for a bunch of time-related
syscalls (nanosleep, clock_gettime, etc.).  These are mostly intended
for situations where a rump kernel runs on an OS-less host.
2014-03-14 00:52:08 +00:00
christos
e46a69d605 make this compile again 2014-03-14 00:06:52 +00:00
matt
2ec48d6f19 Add IST_MPSAFE flag 2014-03-13 23:48:38 +00:00
matt
eba2d1649a Support MPSAFE interrupts. 2014-03-13 23:47:53 +00:00
matt
099c329ed1 Add a commented out IST_MPSAFE 2014-03-13 23:45:32 +00:00
matt
530e5cfa09 Warn if a cpu failed to hatch. 2014-03-13 23:45:02 +00:00
matt
a6936c94e5 More CPUCFG registers 2014-03-13 23:44:31 +00:00
pooka
bfdd7f7dd6 No reason to attach if_virt as a RUMP_COMPONENT(), simply use MODULE(). 2014-03-13 21:11:12 +00:00
pooka
253367bf89 remove unnecessary header inclusions 2014-03-13 20:59:12 +00:00
pooka
c284920659 allow VIF_DYING() implementation to protest 2014-03-13 20:55:26 +00:00
pooka
1a04b40215 For compilers without __COUNTER__, make the ctassert name contain
__INCLUDE_LEVEL__ ## _ ## __LINE__.  It's not perfect, but at least it's
better than just __LINE__ since it avoids collisions between .c's and .h's.

Incidentally, why does half of the kernel call CTASSERT() and the
other half __CTASSERT()?
2014-03-13 20:36:01 +00:00
martin
74a4cee79e Help the hack verifying malloc alignment expectations and force the
word size definition on sh* to be a compile time constant. We do not
provide a single library supporting both variants, so we pick the
smaller alignment for now.
2014-03-13 19:33:23 +00:00
pooka
be1e2f2afe Rename rumpcomp_user.c -> virtif_user.c
Convert to new-style RUMPCOMP_USER_SRCS in Makefile.
2014-03-13 18:14:13 +00:00
hannken
073156cfce Add __diagused. 2014-03-13 16:33:52 +00:00
gdt
539b747f08 Use -f with cp, for 444 sources. 2014-03-13 16:19:24 +00:00
gdt
4ebed9fad8 Use cp -pf rather than cp -p.
Otherwise, those with sources that are 444 encounter failures.
2014-03-13 16:14:27 +00:00
pooka
bb154207c8 remove compiler-rt duplicates to fix build 2014-03-13 16:09:11 +00:00
matt
6e76b62446 Fix non-armv6 case. 2014-03-13 12:59:08 +00:00
joerg
84c4c059a1 It's nonliteral format strings it should not warn about. 2014-03-13 12:54:49 +00:00
gson
d34c9aa571 Add -lrumpnet_netinet6 to the rump_server invocation, to stop
rpc.rquotad from printing the error message "rpc.rquotad:
_svc_tli_create: could not open connection for udp6: Address family
not supported by protocol family".  The error message currently ends
up in /dev/null because it is printed to stderr after calling daemon()
with noclose=0, but if the daemonization is moved to a later point to
fix the race condition of PR misc/48282, it will actually appear on
stderr and break the test, which is expecting stderr to be empty.
2014-03-13 12:45:14 +00:00
pooka
300f37afc0 Do not process linkmaps if there is exactly one link map present
(i.e. there is no ld.so).  Makes statically linked rump kernels work on
glibc (at least for me).

based on some discussion with Justin Cormack
2014-03-13 11:21:54 +00:00