From e47a33d7d4f70c54a27e96df437e6d9ac4e829cf Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sat, 6 Apr 2024 01:45:03 +0200 Subject: Add boot_write_epm_partition for PowerPC, update start location for AMD64 EPM. Remove HCFS support, fully focusing on NewFS. Signed-off-by: Amlal El Mahrouss --- Private/NewBoot/BootKit/BootKit.hxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'Private/NewBoot/BootKit') diff --git a/Private/NewBoot/BootKit/BootKit.hxx b/Private/NewBoot/BootKit/BootKit.hxx index 66a9aa67..1fbd0aef 100644 --- a/Private/NewBoot/BootKit/BootKit.hxx +++ b/Private/NewBoot/BootKit/BootKit.hxx @@ -167,7 +167,15 @@ inline UInt32 In32(UInt16 port) { return value; } -inline Void rt_hlt() { asm volatile("hlt"); } +/*** + * Common processor instructions. +*/ + +EXTERN_C void rt_hlt(); +EXTERN_C void rt_cli(); +EXTERN_C void rt_sti(); +EXTERN_C void rt_cld(); +EXTERN_C void rt_std(); #endif // __EFI_x86_64__ @@ -217,3 +225,4 @@ class BVersionString final { EXTERN_C Boolean boot_write_epm_partition(const Char *namePart, SizeT namePartLength, BootDevice *bootDev); + -- cgit v1.2.3