Commit ba04669d authored by Florian Bezdeka's avatar Florian Bezdeka Committed by Jan Kiszka

cobalt uapi: Introducing new feature flag for time64 availability

Adding a new feature flag to allow the library asking for time64
support. That will allow the library to use the new system calls when
available / supported by the kernel.

The feature flag should be removed during next ABI revision bump.
Signed-off-by: default avatarFlorian Bezdeka <florian.bezdeka@siemens.com>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 942876b8
Pipeline #5366 passed with stage
in 30 minutes and 30 seconds
......@@ -51,6 +51,7 @@ struct cobalt_featinfo {
#define __xn_feat_nofastsynch 0x10000000
#define __xn_feat_control 0x08000000
#define __xn_feat_prioceiling 0x04000000
#define __xn_feat_time64 0x02000000
#ifdef CONFIG_SMP
#define __xn_feat_smp_mask __xn_feat_smp
......@@ -70,7 +71,8 @@ struct cobalt_featinfo {
#define __xn_feat_generic_mask \
(__xn_feat_smp_mask | \
__xn_feat_fastsynch_mask | \
__xn_feat_prioceiling)
__xn_feat_prioceiling | \
__xn_feat_time64)
/*
* List of features both sides have to agree on: If userland supports
......@@ -101,6 +103,8 @@ const char *get_generic_feature_label(unsigned int feature)
return "control";
case __xn_feat_prioceiling:
return "prioceiling";
case __xn_feat_time64:
return "time64";
default:
return 0;
}
......
......@@ -22,6 +22,7 @@
#define _COBALT_ARM64_ASM_UAPI_FEATURES_H
/* The ABI revision level we use on this arch. */
// TODO: Reminder: Remove __xn_feat_time64 feature flag on next ABI_REV bump
#define XENOMAI_ABI_REV 1UL
#define XENOMAI_FEAT_DEP (__xn_feat_generic_mask)
......
......@@ -19,6 +19,7 @@
#define _COBALT_POWERPC_ASM_UAPI_FEATURES_H
/* The ABI revision level we use on this arch. */
// TODO: Reminder: Remove __xn_feat_time64 feature flag on next ABI_REV bump
#define XENOMAI_ABI_REV 17UL
#define XENOMAI_FEAT_DEP __xn_feat_generic_mask
......
......@@ -19,6 +19,7 @@
#define _COBALT_X86_ASM_UAPI_FEATURES_H
/* The ABI revision level we use on this arch. */
// TODO: Reminder: Remove __xn_feat_time64 feature flag on next ABI_REV bump
#define XENOMAI_ABI_REV 17UL
#define XENOMAI_FEAT_DEP __xn_feat_generic_mask
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment