From 825dfb02824371e0974fb4e747697e510a9871e0 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 11 Dec 2008 14:33:33 +0000 Subject: [PATCH] introduce Hz variable that is what used to be the HZ constant. default 60Hz of course. --- boot/boot.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/boot.c b/boot/boot.c index 50a42a107..3c9d7040c 100755 --- a/boot/boot.c +++ b/boot/boot.c @@ -878,6 +878,9 @@ void get_parameters(void) b_setvar(E_SPECIAL|E_VAR|E_DEV, "rootdev", "ram"); b_setvar(E_SPECIAL|E_VAR|E_DEV, "ramimagedev", "bootdev"); b_setvar(E_SPECIAL|E_VAR, "ramsize", "0"); +#define STRINGIT2(x) #x +#define STRINGIT1(x) STRINGIT2(x) + b_setvar(E_SPECIAL|E_VAR, "hz", STRINGIT1(DEFAULT_HZ)); #if BIOS processor = getprocessor(); if(processor == 1586) processor = 686; -- 2.44.0