From: Ben Gras Date: Thu, 11 Dec 2008 14:33:33 +0000 (+0000) Subject: introduce Hz variable that is what used to be the HZ constant. X-Git-Tag: v3.1.4~200 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/expt.png?a=commitdiff_plain;h=825dfb02824371e0974fb4e747697e510a9871e0;p=minix.git introduce Hz variable that is what used to be the HZ constant. default 60Hz of course. --- 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;