6 Commits
Author SHA1 Message Date
Han Pengfei 44cceee67e pthread: add pthread_{getname_np,setname_npp}
- These two functions imported for Linux/BSD compability.

Signed-off-by: Han Pengfei <[email protected]>
Change-Id: I3e9cada26f1ed043bfaed83e8185dcfff3bd71e2
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5746
Reviewed-by: Jérôme Duval <[email protected]>
2022-10-18 16:30:54 +00:00
Han Pengfei 5a1731bcbc arm/build/ldscript: import ld script and build paras from riscv64
- This will fix page translation fault when accessing
static variables.
- Now with this patch, we made uart pl011 works for qemu.

Change-Id: I8eecc18ad05bd950768b49d9ed268c4c2a3baf25
Signed-off-by: Han Pengfei <[email protected]>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4123
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: X512 <[email protected]>
Tested-by: Commit checker robot <[email protected]>
2021-07-03 09:11:04 +00:00
Han Pengfei b7a6ab94c3 boot/arm: fix bootloader build issues without font and font_spleen
Change-Id: Ie9595f79de43bbb155c997bdbcf109e8e971e862
Signed-off-by: Han Pengfei <[email protected]>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4086
Reviewed-by: Jérôme Duval <[email protected]>
2021-06-12 17:45:25 +00:00
Han Pengfei cd9b0eed94 efi/dtb: Fix dtb malloc failed for kernel args
kernel_args_malloc should be used after heap_init, or it will failed
when we new some region instance.

Change-Id: I457057b1e0ff6d4def9e101485e38fec1848d8de
Signed-off-by: Han Pengfei <[email protected]>
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3912
Reviewed-by: Alex von Gluck IV <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
2021-05-17 08:45:37 +00:00
Han Pengfei 2db2b2123b headers: Make structure padding explicit in efi_memory_descriptor
The EFI memory descriptor 64-bit aligns PhysicalStart on both 32- and
64-bit platforms. Make the padding explicit for arm efi and referring
32-bits platform.

- Same fix in FreeBSD: https://reviews.freebsd.org/rS320234
- Confirmed with NetBSD: https://github.com/NetBSD/src/blob/trunk/sys/external/bsd/gnu-efi/dist/inc/efidef.h#L191
- Confirmed with Linux: https://github.com/torvalds/linux/blob/5ee96fa9dd78b2dc81b587e33074d877002d7605/include/linux/efi.h#L137
- Confirmed with Zircon: https://github.com/vsrinivas/fuchsia/blob/master/zircon/kernel/lib/efi/include/efi/boot-services.h#L34

The Early Zircon/Fuchsia version has the same problem we have, apparently they did not
test their header on 32bit platforms either, now They have got it fixed.

Signed-off-by: Han Pengfei <[email protected]>

Change-Id: I0c685d41420c4a63773a7bb39b7d2fdd61e932c4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3875
Reviewed-by: Adrien Destugues <[email protected]>
Reviewed-by: Jérôme Duval <[email protected]>
Reviewed-by: Alex von Gluck IV <[email protected]>
Reviewed-by: Fredrik Holmqvist <[email protected]>
2021-04-21 09:28:45 +00:00
Han Pengfei d3b7fb5a1d headers: Update efi headers from current versions in Zircon
- Add device path message macros
- Add serial terminal defines

Signed-off-by: Han Pengfei <[email protected]>
Change-Id: I9760c506eae49a7d0c474a13b2d2a97a369be3b6
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3878
Reviewed-by: Adrien Destugues <[email protected]>
2021-04-21 07:16:43 +00:00