Adrian-Ken Rueegsegger has uploaded this change for review. ( https://review.coreboot.org/c/libhwbase/+/38983 )
Change subject: time: Add T_First constant ......................................................................
time: Add T_First constant
The constant can be used to initialize variables of type HW.Time.T.
Change-Id: I65246d6776d464bfa8648075b48e7de61cd82902 Signed-off-by: Adrian-Ken Rueegsegger ken@codelabs.ch --- M common/hw-time.ads 1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/libhwbase refs/changes/83/38983/1
diff --git a/common/hw-time.ads b/common/hw-time.ads index aeda5ec..5cfa963 100644 --- a/common/hw-time.ads +++ b/common/hw-time.ads @@ -18,6 +18,8 @@
type T is private;
+ T_First : constant T; + function Now return T with Volatile_Function, @@ -71,6 +73,8 @@
type T is new Word64;
+ T_First : constant T := T'First; + end HW.Time;
-- vim: set ts=8 sts=3 sw=3 et:
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/libhwbase/+/38983 )
Change subject: time: Add T_First constant ......................................................................
Patch Set 1: Verified+1 Code-Review+2
Nico Huber has submitted this change. ( https://review.coreboot.org/c/libhwbase/+/38983 )
Change subject: time: Add T_First constant ......................................................................
time: Add T_First constant
The constant can be used to initialize variables of type HW.Time.T.
Change-Id: I65246d6776d464bfa8648075b48e7de61cd82902 Signed-off-by: Adrian-Ken Rueegsegger ken@codelabs.ch Reviewed-on: https://review.coreboot.org/c/libhwbase/+/38983 Tested-by: Nico Huber nico.h@gmx.de Reviewed-by: Nico Huber nico.h@gmx.de --- M common/hw-time.ads 1 file changed, 4 insertions(+), 0 deletions(-)
Approvals: Nico Huber: Verified; Looks good to me, approved
diff --git a/common/hw-time.ads b/common/hw-time.ads index aeda5ec..5cfa963 100644 --- a/common/hw-time.ads +++ b/common/hw-time.ads @@ -18,6 +18,8 @@
type T is private;
+ T_First : constant T; + function Now return T with Volatile_Function, @@ -71,6 +73,8 @@
type T is new Word64;
+ T_First : constant T := T'First; + end HW.Time;
-- vim: set ts=8 sts=3 sw=3 et: