From d247dcd4a3025bbfc104d83a5850c443296a867f Mon Sep 17 00:00:00 2001 From: EnderIce2 Date: Wed, 13 Mar 2024 18:08:20 +0200 Subject: [PATCH] Update CR8 structure --- include/cpu/x86/x32/cr.hpp | 10 ---------- include/cpu/x86/x64/cr.hpp | 6 ++++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/include/cpu/x86/x32/cr.hpp b/include/cpu/x86/x32/cr.hpp index 840ff74..6ecf257 100644 --- a/include/cpu/x86/x32/cr.hpp +++ b/include/cpu/x86/x32/cr.hpp @@ -141,16 +141,6 @@ namespace CPU }; uint32_t raw; } CR4; - - typedef union CR8 - { - struct - { - /** @brief Task Priority Level */ - uint32_t TPL : 1; - }; - uint32_t raw; - } CR8; #if defined(a32) nsa static inline CR0 readcr0() { diff --git a/include/cpu/x86/x64/cr.hpp b/include/cpu/x86/x64/cr.hpp index 4f6b8b1..adfa982 100644 --- a/include/cpu/x86/x64/cr.hpp +++ b/include/cpu/x86/x64/cr.hpp @@ -148,8 +148,10 @@ namespace CPU { struct { - /** @brief Task Priority Level */ - uint64_t TPL : 1; + /** @brief Task Priority Register */ + uint64_t TPR : 4; + /** @brief Reserved */ + uint64_t Reserved : 60; }; uint64_t raw; } CR8;