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
joerg
72523275ec
Provide _Unwind_Find_FDE for libgcc_s compatibility.
2015-02-17 21:02:33 +00:00
joerg
1c5d00e7d3
Force FPU support for Clang, don't disable IAS completely.
2015-01-29 20:45:16 +00:00
joerg
e9d4ea8b6a
Fix binary search when search value is in the last block, but not equal
...
to the start of the range. PR 49444.
2015-01-29 20:05:56 +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
christos
035b9a6c6d
prefer our own unwind.h
2014-10-23 17:51:22 +00:00
joerg
5e9701e670
Introduce a separate bit mask for the return address. Use it on HPPA.
2014-09-27 12:08:46 +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
a23afddde6
Add OR1K support
2014-09-03 19:27:21 +00:00
matt
905f9a1ab9
Make random.S invisible for coldfire too (e.g. anything not "m68k")
2014-09-01 07:32:35 +00:00
tsutsui
1a8dd01ee2
Revert stupid and untested changes. There was no extra copy in the macros.
...
Christos, you should reread our commit guideline as a Core member.
2014-08-30 14:24:02 +00:00
christos
c30be26b21
remove extra copy of the macro.
2014-08-30 13:09:27 +00:00
tsutsui
e58317de49
Rename padding macros to reflect and clarify the original intention.
...
No binary changes on luna68k (which has -DLIBSA_PRINTF_WIDTH_SUPPORT).
2014-08-30 12:23:38 +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
isaki
7b2cf7659d
Unify all arch/*/stand's atoi() to MI libsa.
...
lib/libsa/atoi.c was separated from lib/libsa/bootcfg.c.
PR/49084
2014-08-10 07:40:49 +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
joerg
3d95c8af33
Fix braino in last commit and free the node iff the insert failed.
2014-07-20 14:40:58 +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
joerg
827ab89a76
Use static_cast for rb_tree_insert_node void * return value.
2014-07-14 11:36:39 +00:00
jmcneill
65c6ea680a
${.PARSEDIR} not .${PARSEDIR} for Makefile.compiler-rt include
2014-07-04 16:44:26 +00:00
joerg
1aed1443e6
IAS is clang specific.
2014-06-30 20:42:31 +00:00
joerg
182cb3ee17
.fpu is not handled correctly by LLVM's assembler parser, so use GAS for
...
now.
2014-06-28 20:18:15 +00:00
rtr
e9c95bf579
patch posted to tech-kern@ 2014/06/25 for review with minor changes
...
resulting from feedback.
move multiple copies of code for parsing boot.cfg file from sparc, i386
and zaurus into libsa/bootcfg.{h,c}. largely retained i386 parsing logic
in addition to keeping sparc dispatch function while remaining consistent
with boot.cfg(5).
previous sparc64 file format has been obsoleted but only used by boot
CDs distrib/sparc64/bootfs/boot.cfg has been updated to compensate.
exported names have been prefixed with either BOOTCFG_ or bootcfg_ as per
feedback from christos@
tested on amd64 & sparc64 but not zaurus.
2014-06-28 09:16:18 +00:00
mrg
ac641cb906
remove remaining makefile support for GCC < 45 that i found.
2014-06-14 20:49:36 +00:00
matt
a50cc6d607
Split COPTS.libunwind.cxx into multiple lines.
2014-06-13 21:31:20 +00:00
mrg
26f35dd6b6
remove the build support for GCC 4.1, and any hacks i found for it.
...
there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)
2014-06-13 01:17:45 +00:00
joerg
0ed4c83ba9
Lazy VFP processing works a lot better if the functions contain a return
...
instruction.
2014-05-14 22:13:36 +00:00
joerg
2f1b7695c4
Support DWARFish unwind for ARM.
2014-05-11 02:07:35 +00:00
joerg
7e3335542c
Missing register validation check.
2014-05-03 23:19:56 +00:00
jakllsch
849344e6ee
Makefile glue to build libgnuefi; similar to libsa or libkern.
2014-04-28 19:09:29 +00:00
joerg
0c55f87954
GC unwind_info_size.
2014-04-28 13:39:23 +00:00
joerg
d013f698cc
Use the return address register from the CIE. Based on patch from Nick
...
Kledzik.
2014-04-26 23:17:38 +00:00
joerg
380ce570fd
Add initial unwind support for MIPS and MIPS64.
2014-04-26 20:15:48 +00:00
joerg
f76ae5ef4f
Basic unwind support for HPPA.
2014-04-19 21:21:24 +00:00
joerg
a997683cbb
Add basic Alpha support to libunwind.
2014-04-15 18:40:34 +00:00
joerg
7209984597
Add initial unwind support for SPARC/SPARC64.
2014-04-15 11:44:26 +00:00
joerg
4b91d83710
Some architectures like SPARC need to apply a fixed offset to the return
...
address. Introduce such a constant.
2014-04-14 18:15:17 +00:00
joerg
44e617ea85
Move definition of what the native register layout is into
...
Registers.hpp.
2014-04-13 19:04:01 +00:00
joerg
8886a873b8
Support SH3 in our unwinder.
2014-04-02 22:34:29 +00:00
joerg
8d85521c7b
SH3 uses unaligned data in the .eh_frame section, so use memcpy.
2014-04-02 22:22:37 +00:00
jakllsch
edd6a404ba
Obtain and/or use ETHER_ADDR_LEN.
2014-03-29 14:30:16 +00:00
jakllsch
836038fc64
Use ETHER_ADDR_LEN more.
2014-03-29 14:25:10 +00:00
jakllsch
2f39df062c
Obtain and use ETHER_ADDR_LEN where appropriate.
...
Drop unnecessary includes.
XXX libsa ether_sprintf() should maybe be ether_snprintf.
2014-03-29 14:20:14 +00:00