Fixed excessive padding

This commit is contained in:
Alex 2023-02-22 02:11:28 +02:00
parent c817be50ff
commit 3e76830978
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -23,26 +23,33 @@ struct CPUData
{ {
/** @brief Used by syscall handler */ /** @brief Used by syscall handler */
uint8_t *SystemCallStack; /* gs+0x0 */ uint8_t *SystemCallStack; /* gs+0x0 */
/** @brief Used by syscall handler */ /** @brief Used by syscall handler */
uintptr_t TempStack; /* gs+0x8 */ uintptr_t TempStack; /* gs+0x8 */
/** @brief Used by CPU */ /** @brief Used by CPU */
uintptr_t Stack; uintptr_t Stack;
/** @brief CPU ID. */ /** @brief CPU ID. */
long ID; long ID;
/** @brief Local CPU error code. */ /** @brief Local CPU error code. */
long ErrorCode; long ErrorCode;
/** @brief Is CPU online? */
bool IsActive;
/** @brief Current running process */ /** @brief Current running process */
Atomic<Tasking::PCB *> CurrentProcess; Atomic<Tasking::PCB *> CurrentProcess;
/** @brief Current running thread */ /** @brief Current running thread */
Atomic<Tasking::TCB *> CurrentThread; Atomic<Tasking::TCB *> CurrentThread;
/** @brief Architecture-specific data. */ /** @brief Architecture-specific data. */
CPUArchData Data; CPUArchData Data;
/** @brief Checksum. Used to verify the integrity of the data. Must be equal to CPU_DATA_CHECKSUM (0xC0FFEE). */ /** @brief Checksum. Used to verify the integrity of the data. Must be equal to CPU_DATA_CHECKSUM (0xC0FFEE). */
int Checksum; int Checksum;
/** @brief Is CPU online? */
bool IsActive;
}; };
CPUData *GetCurrentCPU(); CPUData *GetCurrentCPU();