Hi Heinrich
On Fri, 11 Apr 2025 at 15:05, Heinrich Schuchardt
wrote:
>
> On 4/11/25 12:00, Ilias Apalodimas wrote:
> > Hi Heinrich,
> >
> > [...]
> >
> >> +
> >> +/**
> >> + * current_exception_level()
> >> + *
> >> + * Return: current exception level, 0 - 3
> >> + */
> >> +static unsigned in
On 4/11/25 12:00, Ilias Apalodimas wrote:
Hi Heinrich,
[...]
+
+/**
+ * current_exception_level()
+ *
+ * Return: current exception level, 0 - 3
+ */
+static unsigned int current_exception_level(void)
+{
+ unsigned long el;
+
+ asm volatile (
+ "MRS %0, CurrentEL"
Hi Heinrich,
[...]
> +
> +/**
> + * current_exception_level()
> + *
> + * Return: current exception level, 0 - 3
> + */
> +static unsigned int current_exception_level(void)
> +{
> + unsigned long el;
> +
> + asm volatile (
> + "MRS %0, CurrentEL"
> + :
UEFI binaries should be executed in EL2 or EL1 even if U-Boot is started
in EL3. Provide a unit test.
Signed-off-by: Heinrich Schuchardt
---
lib/efi_selftest/Makefile | 1 +
lib/efi_selftest/efi_selftest_el.c | 46 ++
2 files changed, 47 insertions(+)
creat
4 matches
Mail list logo