[kernel] standardize static constexpr order in kobject headers

The kobject headers flip-flopped the class constants between "static
constexpr" and "constexpr static".
This commit is contained in:
Justin C. Miller
2022-10-22 16:49:25 -07:00
parent 99b59393fe
commit 6ac4ec601d
7 changed files with 17 additions and 23 deletions

View File

@@ -19,19 +19,21 @@ class process :
{
public:
/// Capabilities on a newly constructed process handle
constexpr static j6_cap_t creation_caps = j6_cap_process_all;
static constexpr j6_cap_t creation_caps = j6_cap_process_all;
/// Capabilities on a process to itself
constexpr static j6_cap_t self_caps = j6_cap_process_all;
static constexpr j6_cap_t self_caps = j6_cap_process_all;
/// Top of memory area where thread stacks are allocated
constexpr static uintptr_t stacks_top = 0x0000800000000000;
static constexpr uintptr_t stacks_top = 0x0000800000000000;
/// Size of userspace thread stacks
constexpr static size_t stack_size = 0x4000000; // 64MiB
static constexpr size_t stack_size = 0x4000000; // 64MiB
/// Value that represents default priority
constexpr static uint8_t default_priority = 0xff;
static constexpr uint8_t default_priority = 0xff;
static constexpr kobject::type type = kobject::type::process;
/// Constructor.
process();
@@ -39,8 +41,6 @@ public:
/// Destructor.
virtual ~process();
static constexpr kobject::type type = kobject::type::process;
/// Get the currently executing process.
static process & current();