Ilias Apalodimas a930d69baa efi_loader: replace a u16_strdup with alloc + memcpy
Heinrich reports that on RISC-V unaligned access is emulated by OpenSBI
which is very slow.  Performance wise it's better if we skip the calls
to u16_strdup() -- which in turn calls u16_strsize() and just allocate/copy the
memory directly.  The access to dp.length may still be unaligned, but that's
way less than what u16_strsize() would do

Signed-off-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Use malloc() instead of calloc().
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2022-11-16 08:34:06 +01:00
..
2022-01-18 08:31:02 -05:00
2022-07-11 14:58:57 -04:00
2022-09-15 09:57:11 -04:00
2022-01-19 18:11:34 +01:00
2022-07-26 02:30:56 -06:00
2020-05-18 21:19:18 -04:00
2022-01-19 18:11:34 +01:00
2011-01-18 23:38:08 +01:00
2019-12-02 18:23:07 -05:00
2022-08-12 08:14:23 -04:00
2019-10-31 07:22:53 -04:00
2020-10-30 10:56:11 -04:00
2021-09-04 12:26:01 -04:00
2022-08-10 13:38:30 -04:00
2022-03-15 16:19:29 -04:00
2019-12-06 16:44:20 -05:00
2020-05-18 21:19:18 -04:00
2021-07-14 16:57:35 -04:00
2020-05-18 21:19:18 -04:00
2020-08-24 14:11:31 -04:00
2022-10-27 09:10:08 -04:00
2021-07-15 18:42:05 -04:00
2022-01-19 18:11:34 +01:00
2022-09-03 09:35:48 +02:00
2019-05-05 08:48:50 -04:00