NetBSD/sys/arch/riscv
maxv ca08b3e761 Make copystr() a MI C function, part of libkern and shared on all
architectures.

Notes:

 - On alpha and ia64 the function is kept but gets renamed locally to avoid
   symbol collision. This is because on these two arches, I am not sure
   whether the ASM callers do not rely on fixed registers, so I prefer to
   keep the ASM body for now.
 - On Vax, only the symbol is removed, because the body is used from other
   functions.
 - On RISC-V, this change fixes a bug: copystr() was just a wrapper around
   strlcpy(), but strlcpy() makes the operation less safe (strlen on the
   source beyond its size).
 - The kASan, kCSan and kMSan wrappers are removed, because now that
   copystr() is in C, the compiler transformations are applied to it,
   without the need for manual wrappers.

Could test on amd64 only, but should be fine.
2020-06-30 16:20:00 +00:00
..
compile Misc changes in RISC-V. Start changing the memory layout, too. 2019-06-01 12:42:27 +00:00
conf Trailing whitespace 2020-03-14 16:12:15 +00:00
htif Beginnings of RISCV kernel support. Note that the pmap support is not yet 2015-03-28 16:13:56 +00:00
include Mark the .ident section as mergable string section to avoid redundant 2020-04-17 14:19:43 +00:00
riscv Make copystr() a MI C function, part of libkern and shared on all 2020-06-30 16:20:00 +00:00
Makefile