Commit Graph

27 Commits

Author SHA1 Message Date
joerg
2f6c48363c Reorder using register_t to the point where it is defined. 2016-02-28 22:19:01 +00:00
christos
d84c286204 expose the kernel types for standalone code. 2016-01-23 22:31:19 +00:00
christos
4d497c90e6 Hide {p,v}{addr,size}_t and register_t (and a couple more types that
are machine-specific) from userland unless _KERNEL/_KMEMUSER and a
new _KERNTYPES variables is defined. The _KERNTYPES should be fixed
for many subsystems that should not be using it (rump)...
2016-01-23 21:22:13 +00:00
skrll
0bc3546c15 PR port-arm/50641: src/sys/arch/aarch64/include/db_machdep.h:67: possible bad if test ?
Fix the bl instruction test.
2016-01-11 07:46:15 +00:00
christos
b88569ce68 For processors that have memory breakpoints, add macros for them to help
libproc
2015-09-25 16:05:17 +00:00
christos
5020ab68d5 Provide access to pc/sp/syscall-return registers like we have for mcontext 2015-09-15 15:49:02 +00:00
pooka
01d7ebdd80 Fix PTHREAD_FOO_INITIALIZER for C++ by not using volatile in the relevant
pthread types in C++ builds, attempt 2.

The problem with attempt 1 was making assumptions of what the MD
__cpu_simple_lock_t (declared volatile) looks like.  To get a same type
except non-volatile, we change the MD type to __cpu_simple_lock_nv_t
and typedef __cpu_simple_lock_t as a volatile __cpu_simple_lock_nv_t.
IMO, __cpu_simple_lock_t should not be volatile at all, but changing it
now is too risky.

Fixes at least Rumprun w/ gcc 5.1/5.2.  Furthermore, the mpd application
(and possibly others) will no longer require NetBSD-specific patches.

Tested: build.sh for i386, Rumprun for x86_64 w/ gcc 5.2.

Based on the patch from Christos in lib/49989.
2015-08-27 12:30:50 +00:00
uebayasi
db0ac56ebf Define ${LINKSCRIPT} in one place. 2015-08-24 14:04:24 +00:00
uebayasi
ce93b3da57 Don't mention stab and DWARF sections, because these (poorly mtaintained)
lists only help to make them harder to read.

If those sections are found in inputs, they simply appear in outputs as
orphaned sections, sorted by section types and attributes.
2015-08-24 08:13:07 +00:00
uebayasi
185745d477 Indent with 2 spaces. 2015-08-20 07:00:48 +00:00
uebayasi
92ed610b7f Use ${KERNLDSCRIPT}. 2015-08-20 06:19:36 +00:00
matt
be76bfe406 Use <sys/common_lock.h> for !__arm__ 2015-06-26 18:27:52 +00:00
mrg
4499df58a1 bump CHILD_MAX and OPEN_MAX defaults on several platforms, both to 1024. 2015-05-07 19:14:55 +00:00
skrll
b34320dae9 ARM spells the System Control Register SCTLR 2015-04-27 06:54:12 +00:00
pgoyette
37202cb966 Update device dependency information - the sysmon major device now depends on the sysmon module itself, not on the individual components. 2015-04-23 23:22:51 +00:00
jmcneill
6c00453054 __HAVE_PREEEMPTION -> __HAVE_PREEMPTION 2015-04-14 22:36:53 +00:00
uebayasi
b7590d7122 Use LINKSCRIPT. 2014-11-15 14:25:10 +00:00
dennis
a7844ca222 Correct 32 and 64 bit byte swap inlines 2014-10-29 01:33:39 +00:00
joerg
a26164117a Reorganize symbol table embedding. The existing option SYMTAB_SPACE is
replaced by the make option COPY_SYMTAB set to any value. The copy of
the symbol table is no longer put into a buffer in kern_ksyms.o, but a
small helper object. This object is build first with a dummy size, then
the kernel is linked to compute the real dimension of the symbol table
buffer. After that, the helper object is rebuild and the kernel linked
again.
2014-08-17 21:17:43 +00:00
joerg
6faaf3e4db Use wildcards for stripping/preserving the mapping symbols on ARM and
AArch64. LLVM creates unique symbols in each file of the form $a.n etc.
2014-08-14 18:39:38 +00:00
matt
2592319eb4 Back out last change. 2014-08-13 19:51:27 +00:00
matt
9a93ad7170 Use __ATOMIC_RELAXED in __cpu_simple_lock_init 2014-08-13 19:32:35 +00:00
justin
0d185a7a63 Add formatting for aarch64 as using arm ones errors for ll on 64 bit types 2014-08-13 17:14:41 +00:00
matt
9081096a67 #include <arm/ptrace.h> instead of <arm/asm.h>
(opps)
2014-08-11 22:09:08 +00:00
matt
aac5dcec7d Add some definitions for building RUMP libraries with MKCOMPAT. 2014-08-11 22:08:34 +00:00
matt
7ae11555b5 Use %x/%w as appropriate. 2014-08-11 04:03:59 +00:00
matt
beb9c6d1b5 Preliminary files for AARCH64 (64-bit ARM) support.
Enough for a distribution build.
2014-08-10 05:47:35 +00:00