summaryrefslogtreecommitdiff
path: root/kernel/fs/hd.c
diff options
context:
space:
mode:
authorJake Mannens <jake72360@gmail.com>2018-07-13 03:51:23 +1000
committerJake Mannens <jake72360@gmail.com>2018-07-13 03:51:23 +1000
commitbe74842e37ad54f4fd18ae647e2bdf3e435a0fb8 (patch)
tree7bf6af7ad55456d8b2a2d620d87cf948d10c1a26 /kernel/fs/hd.c
parent778301ab212d9bb8ffa527491cbc93955eb0cb92 (diff)
Added a state field to the task structure to hold the task's run state.
Now, reschedule() requires a task to be in the TSTATE_RUNNING state for it to run. Renamed the TSS structure within the task structure from 'state' to 'tss' to avoid confusion with the task's run state. Removed the task_state structure declaration from sched.c as it is no longer needed due to context switches now being performed entirely in hardware. Removed the cstate pointer from sched.c. Interrupt handlers no longer set a pointer to saved state information on the stack since this was only needed for software task switching. NOTE: This may be re-introduced should it become necessary to access state information on the stack. Added a basic implementation of the wake_up() scheduling primative. This function is currently not used and may be completely re-written in future.
Diffstat (limited to 'kernel/fs/hd.c')
0 files changed, 0 insertions, 0 deletions