On July 4, 2026 4:58:57 AM GMT+01:00, Damien Zammit <[email protected]>
wrote:
>Relax the panic to a warning when attempting to run gnumach as dom0.
>This can allow someone to further debug gnumach as dom0 using the test
>framework.
>---
> i386/i386at/model_dep.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
>index eea98754..36cd3ae6 100644
>--- a/i386/i386at/model_dep.c
>+++ b/i386/i386at/model_dep.c
>@@ -536,7 +536,7 @@ void c_boot_entry(vm_offset_t bi)
> #ifdef MACH_XEN
>       printf("Running on %s.\n", boot_info.magic);
>       if (boot_info.flags & SIF_PRIVILEGED)
>-              panic("Mach can't run as dom0.");
>+              printf("WARNING: Mach running as dom0.\n");
> #ifdef MACH_PSEUDO_PHYS
>       mfn_list = (void*)boot_info.mfn_list;
> #endif
>

LGTM


Thanks!

Reply via email to