ptos: ps+hal: Add thread control block init

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-14 16:14:03 -04:00
parent fe6be93d32
commit fcfe1dfb4a
6 changed files with 168 additions and 2 deletions
+25
View File
@@ -0,0 +1,25 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: Thread control block
* Author: Chloe M.
*/
#ifndef _MACHINE_TCB_H_
#define _MACHINE_TCB_H_ 1
#include <ptdef.h>
#include <machine/frame.h>
/*
* The thread control block contains machine specific thread
* information.
*
* @FrameSnapshot: Processor state snapshot
*/
typedef struct {
TRAP_FRAME FrameSnapshot;
} TCB;
#endif /* !_MACHINE_TCB_H_ */