ptos: ps+hal: Add thread control block init
Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
@@ -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_ */
|
||||
Reference in New Issue
Block a user