Commit Graph

1424 Commits

Author SHA1 Message Date
nakayama
1b088eaae2 Align explicitly to make kernels compiled by clang generate
properly aligned code.
2014-03-07 20:23:09 +00:00
joerg
2ce54a14d1 Provide labs, llabs and imaxabs for kernel use. 2014-02-27 18:05:07 +00:00
joerg
a48c968746 Update compiler-rt glue for the new source layout. 2014-02-26 22:37:55 +00:00
joerg
685add8053 Casting to void is the canonical way of marking a variable as
potentially unused.
2014-02-20 00:29:03 +00:00
njoly
9d9871abbe Revert previous revision. It bkeaks profiling kernel builds.
LIBISPRIVATE unconditionnally set MKPROFILE to no, preventing
profiling kernel library.
2014-02-09 12:53:30 +00:00
joerg
720b2586bd Include compiler-rt in libc, libm and libkern. 2014-01-29 23:37:18 +00:00
joerg
9de82816fc For ARM EABI, includ divide-by-0 trap handlers. 2014-01-29 22:30:24 +00:00
matt
a11fbefc31 Add support for non-EABI (DWARF) ARM exception handling. 2014-01-29 06:59:53 +00:00
joerg
329758262f This is not libc, so don't check the libc arch macro. 2014-01-17 00:49:55 +00:00
joerg
7a05a6aa88 For HAVE_LIBGCC=no, use compiler-rt for quad support. 2014-01-15 21:12:57 +00:00
tsutsui
bb834b97ba Remove obsolete exec.c for a.out. It was superseded by loadfile() long ago. 2014-01-12 15:19:57 +00:00
jakllsch
d2ad8298ea Make libsa fsmod string pointer const. 2014-01-05 21:38:25 +00:00
christos
5e0bd251ff add strncat (for acpi) 2013-12-27 20:25:33 +00:00
jakllsch
cc6c3a11f9 intmax_t might be long long, handle accordingly. from christos 2013-12-24 22:26:21 +00:00
jakllsch
74f35cdadc Add 'j' format modifier for intmax_t. 2013-12-24 21:41:49 +00:00
joerg
a060b1754e Fix typo. 2013-12-20 12:46:42 +00:00
pooka
e546a6c273 Allow overriding CTASSERT. This helps with building NetBSD sources with
compilers that don't support __COUNTER__ -- shifting the CTASSERTs
around to avoid __LINE__ conflicts is a hopeless struggle.
2013-12-15 21:15:41 +00:00
joerg
aceb213538 Allow kernel code to access constant databases by moving cdbr(3) and the
required mi_vector_hash(3) into src/common.
2013-12-11 01:24:08 +00:00
joerg
ab0f68f9e6 libkern build glue for compiler-rt. 2013-12-03 16:15:22 +00:00
lneto
c4a02e0a12 changed lua_Number to int64_t 2013-12-02 04:39:10 +00:00
jakllsch
a88e58194e Fix a use-after-free (well, dealloc actually) issue. 2013-11-27 17:33:03 +00:00
christos
ff19ecf77c For the purposes of static analysis, this never returns. 2013-11-19 16:56:21 +00:00
christos
02a4ce877b make a gcc unitialized variable 2013-11-03 00:44:34 +00:00
christos
e382fdd226 mark some variables as unused, but keep them around as comments 2013-11-03 00:01:43 +00:00
christos
ecffa9b765 XXX: gcc initializations 2013-10-20 17:17:30 +00:00
christos
892b86a26f remove unused 2013-10-20 17:16:57 +00:00
christos
683cfc6937 use new function to avoid array overflow 2013-10-20 17:15:42 +00:00
joerg
3a53a9e14e Add a heavily modified version of Apple's libunwind as released under
MIT license in libc++abi. At the moment, only x86 support is tested.
2013-10-14 01:14:57 +00:00
joerg
69d0b9d44c Let's not use uninitialized variables to write to random memory
locations, shall we?
2013-10-13 20:09:02 +00:00
pgoyette
5beb5eb050 Rework previous (1.24) change. Rather than depending on the
file's flags to decide if decompress cleanup is needed, just
check to see if the open() allocated the 'struct sd *' used for
decompression.

This fixes recent problem where presence of a "load=ffs" command
in my /boot.cfg resulted in a "heap full" error at boot time.

OK martin@
2013-10-11 16:30:31 +00:00
joerg
4d12bfcd15 Pass PICFLAGS down to cc-as-as and use __PIC__ to decide if it is small
vs big PIC mode. Retire -DPIC and -DBIGPIC.
2013-09-12 15:36:14 +00:00
riastradh
04e877f3a1 Fix libkern's prototype for explicit_memset. 2013-08-28 16:20:38 +00:00
matt
f0f9ccc930 Use LIBISPRIVATE?= yes 2013-08-21 08:30:50 +00:00
matt
b3356a40df Thumbify 2013-08-21 08:30:18 +00:00
matt
e1512a262a Simplify by using LIBISPRIVATE?= yes 2013-08-21 05:50:14 +00:00
matt
9a5bd26b35 Some assembly files need to compiled -marm since they are Thumb compatible. 2013-08-20 21:43:03 +00:00
matt
99a7d6ba8e Fix typos (prX not cpX) 2013-08-12 23:42:14 +00:00
matt
0009e83bf7 Add EHABI unwind stubs to libkern so prevent errors in linking if unwind
tables are present.
2013-08-12 23:22:12 +00:00
matt
015cebed78 Support thumb 2013-08-11 04:58:01 +00:00
skrll
0bdf107fbc Another codegen bug that fixes (in this case lots of) atf tests.
rump_server doesn't die so much now.
2013-07-23 14:52:07 +00:00
matt
516ab0fa43 Adjust for coldfire 2013-07-18 22:14:48 +00:00
matt
6b35aaa5b7 Fix typo. 2013-07-18 12:54:08 +00:00
matt
10fa00e357 Reorder a little to make clearer. 2013-07-18 12:53:09 +00:00
matt
0ad8b94ed8 Keep stack longword aligned.
Use longword ops for %d2.
2013-07-18 12:42:24 +00:00
matt
8d43a067dd Convert to motorola syntax 2013-07-18 12:40:42 +00:00
matt
6dedf03e19 Convert to morotola syntax 2013-07-18 12:29:30 +00:00
matt
547d5de4df Don't use %d2 (violates the ABI since it wasn't saved), use %a0 instead.
Use a pcrelative access for the local data avoiding the GOT.
2013-07-18 12:16:40 +00:00
rmind
7ae1c4ed1b libkern: add murmurhash module. 2013-06-29 16:02:01 +00:00
riastradh
82db4b9858 Replace consttime_bcmp/explicit_bzero by consttime_memequal/explicit_memset.
consttime_memequal is the same as the old consttime_bcmp.
explicit_memset is to memset as explicit_bzero was to bcmp.

Passes amd64 release and i386/ALL, but I'm sure I missed some spots,
so please let me know.
2013-06-24 04:21:19 +00:00
dholland
e1610ba4cb Stick ffs_, ext2_, chfs_, filecore_, cd9660_, or mfs_ in front of
the following symbols so as to disambiguate fully. (Christos already
did the lfs ones.)

   lblkno
   lblktosize
   lfragtosize
   numfrags
   blkroundup
   fragroundup
2013-06-23 07:28:36 +00:00