ptos/amd64: ps: Add context switching stub

Signed-off-by: Chloe M <chloe@mensia.org>
This commit is contained in:
2026-07-14 16:40:06 -04:00
parent 093061f2ad
commit a029f0de5d
6 changed files with 65 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2026, Chloe M.
* Provided under the BSD-3 clause.
*
* Description: HAL context management
* Author: Chloe M.
*/
#ifndef _HAL_CONTEXT_H_
#define _HAL_CONTEXT_H_ 1
#include <machine/frame.h>
#include <ptdef.h>
/*
* Perform a context switch from one thread to another
*
* @Frame: Current processor context
*/
VOID HalContextSwitch(TRAP_FRAME *Frame);
#endif /* !_HAL_CONTEXT_H_ */
+7
View File
@@ -22,4 +22,11 @@
*/
PT_STATUS HalThreadInit(THREAD *Thread, ULONG Flags, UPTR Ip);
/*
* Prime the scheduler timer
*
* @Usec: Number of microseconds to prime for
*/
VOID HalPrimeThreadTimer(ULONG Usec);
#endif /* !_HAL_THREAD_H_ */