]> Zhao Yanbai Git Server - minix.git/commitdiff
introduce Hz variable that is what used to be the HZ constant.
authorBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:33:33 +0000 (14:33 +0000)
committerBen Gras <ben@minix3.org>
Thu, 11 Dec 2008 14:33:33 +0000 (14:33 +0000)
default 60Hz of course.

boot/boot.c

index 50a42a107a33559e0316319ce1b37a9c5d9cd6fd..3c9d7040ce8a0b361b44a4e33154cb6a05f5757d 100755 (executable)
@@ -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;