From b0a21af9f0973645ac016058336cff6ec3e66f1c Mon Sep 17 00:00:00 2001 From: "Sergey Semyonov (Serge)" Date: Fri, 4 Sep 2015 16:27:40 +0000 Subject: [PATCH] Kernel: fn.26.10 get the time from kernel launch in nanoseconds git-svn-id: svn://kolibrios.org@5794 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 7b08d1a42c..d1600d004e 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -1922,8 +1922,18 @@ sys_getsetup: ret ;-------------------------------------- @@: +; F.26.10 - get the time from kernel launch in nanoseconds + sub ebx, 1 + jnz @f + + call get_clock_ns + mov [esp+24], edx + mov [esp+32], eax + ret +;-------------------------------------- +@@: ; F.26.11 - Find out whether low-level HD access is enabled - sub ebx, 2 + sub ebx, 1 jnz @f mov eax, [lba_read_enabled]