From 5bfe6dfb979ea795daa1aac795110dfb6f4b5ba0 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Thu, 7 Oct 2004 09:09:58 +0000 Subject: [PATCH] add gestaltid --- second/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/second/main.c b/second/main.c index 099d67b..77df962 100644 --- a/second/main.c +++ b/second/main.c @@ -58,7 +58,7 @@ int start(emile_l2_header_t* info) printf("EMILE v"VERSION" (c) 2004 Laurent Vivier\n"); printf("This is free software, redistribute it under GPL\n"); - if (info->signature != EMILE_02_SIGNATURE) + if (info->signature < EMILE_03_SIGNATURE) error("Bad header signature !\n"); arch_init(); @@ -69,6 +69,11 @@ int start(emile_l2_header_t* info) bank_dump(); #endif + if (info->gestaltID != 0) { + machine_id = info->gestaltID; + printf("User forces gestalt ID to %ld\n", machine_id); + } + /* load kernel */ printf("vmlinux %s\n", info->command_line);