Commit Graph

818 Commits

Author SHA1 Message Date
tsutsui
f2142f537b Revert untested and unnecessary change in previous rev 1.36.
Our autobuild doesn't always reflect the latest fixes.
2015-07-30 15:29:52 +00:00
christos
7c7a7b43d2 add mulsi3, needed by inet_addr.o 2015-07-30 07:44:40 +00:00
matt
c98065b9f6 If the platform support popcount as a __builtin, use that in preference
to the libc versions.
2015-05-29 19:38:59 +00:00
christos
925d349b50 tricks with sizeof() make coverity complain. 2015-05-09 18:49:36 +00:00
riastradh
7fd36dbc4a Add container_of to libkern.
Given x = &c->f, container_of(x, T, f) yields c, where T is the type
of c.

Discussed on tech-kern a while ago:

https://mail-index.netbsd.org/tech-kern/2013/03/21/msg015131.html
2015-04-20 15:22:17 +00:00
mrg
2603e0673f remove various HAVE_GCC=45 fragments. 2015-04-15 19:13:46 +00:00
christos
d36e0de1e1 strtoi and strtou for the kernel 2015-01-16 18:36:31 +00:00
christos
96739e65c5 bcdtobin and bintobcd are now inlines in <dev/clock_subr.h> 2014-11-20 16:25:16 +00:00
matt
6cf6fe02a9 New files for Userland support of UCB RISC-V (both 32-bit and 64-bit) 2014-09-19 17:36:24 +00:00
joerg
35d69bab34 Revert 1.33 and 1.34 for now, until either .INVISIBLE is reinstanciated
or random.S dropped.
2014-09-08 12:12:19 +00:00
matt
27620987b8 New files for OR1K support 2014-09-03 19:34:25 +00:00
matt
905f9a1ab9 Make random.S invisible for coldfire too (e.g. anything not "m68k") 2014-09-01 07:32:35 +00:00
christos
2fac5fd5c7 use .INVISIBLE to hide random.S, instead of extra rules. 2014-08-27 08:51:37 +00:00
tls
ea6af427bd Merge tls-earlyentropy branch into HEAD. 2014-08-10 16:44:32 +00:00
matt
547b3a3b01 Changes to existing files to enable building AARCH64 userland.
evbarm64-el
This is clang only.  While gcc4.8 supports aarch64, no netbsd support has
been written for aarch64 with gcc4.8.
2014-08-10 05:56:36 +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
lneto
4ab4902eb2 lua: updated from 5.1 to 5.3 work3
* lua(1):
  - changed lua_Integer to intmax_t
  - updated distrib/sets/lists and etc/mtree
  - updated bsd.lua.mk
  - fixed bozohttpd (lua-bozo.c)
  - compatibilized bindings: gpio, sqlite
* lua(4):
  - removed floating-point and libc dependencies using '#ifndef _KERNEL'
  - fixed division by zero and exponentiation
  - libkern: added isalnum(), iscntrl(), isgraph(), isprint() and ispunct()
  - acpica: removed isprint() from acnetbsd.h
  - libc: moved strcspn.c, strpbrk.c and strspn.c to common
  - removed stub headers
  - compatibilized bindings: luapmf, luasystm
* reorganized luaconf.h
* updated doc/CHANGES and doc/RESPONSIBLE
2014-07-19 18:38:33 +00:00
jmcneill
65c6ea680a ${.PARSEDIR} not .${PARSEDIR} for Makefile.compiler-rt include 2014-07-04 16:44:26 +00:00
riastradh
6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
pooka
bb154207c8 remove compiler-rt duplicates to fix build 2014-03-13 16:09:11 +00:00
pooka
1ee7f81f1b Do not include compiler-rt in librump. librump is not a toolchain support
library, and toolchain support belongs in the host libc or libgcc or
equivalent entity that is actually supposed to complement the toolchain.

Fixes librump build on (a) Linux ARM (collisions with libgcc)
2014-03-12 00:22:53 +00:00
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
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
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
christos
5e0bd251ff add strncat (for acpi) 2013-12-27 20:25:33 +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
christos
ff19ecf77c For the purposes of static analysis, this never returns. 2013-11-19 16:56:21 +00:00
christos
e382fdd226 mark some variables as unused, but keep them around as comments 2013-11-03 00:01:43 +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
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