From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 1 07:00:13 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 11A3CDF5 for ; Wed, 1 Apr 2015 07:00:13 +0000 (UTC) Received: from mail.embedded-brains.de (host-82-135-62-35.customer.m-online.net [82.135.62.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AEF5AB56 for ; Wed, 1 Apr 2015 07:00:12 +0000 (UTC) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 77B762A194E for ; Wed, 1 Apr 2015 08:51:01 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id H3qJW2FAdZ9P for ; Wed, 1 Apr 2015 08:50:59 +0200 (CEST) Received: from localhost (localhost.localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 40FA82A1938 for ; Wed, 1 Apr 2015 08:50:59 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id g7ESbMtt4F50 for ; Wed, 1 Apr 2015 08:50:59 +0200 (CEST) Received: from [192.168.96.129] (unknown [192.168.96.129]) by mail.embedded-brains.de (Postfix) with ESMTPSA id 21D452A192E for ; Wed, 1 Apr 2015 08:50:59 +0200 (CEST) Message-ID: <551B9531.4040902@embedded-brains.de> Date: Wed, 01 Apr 2015 08:50:25 +0200 From: Sebastian Huber User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Uptime starts with one second Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Apr 2015 07:00:13 -0000 Hello, we port currently the FreeBSD timecounters to the RTEMS real-time=20 operating system. https://devel.rtems.org/ticket/2271 On FreeBSD the uptime starts with one second. On RTEMS the uptime starts=20 with zero seconds. I would like to preserve the existing behaviour and=20 it would be easy to adjust kern_tc.c accordingly. The problem is that we=20 also use the FreeBSD network stack and it uses for example=20 (microuptime()). Has a uptime value of zero a special meaning inside the=20 kernel so that we must not start at zero? --=20 Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesch=C3=A4ftliche Mitteilung im Sinne des EHUG= .