MP3 1.0
This is the Doxygen document for ECE391 MP3.
Loading...
Searching...
No Matches
Functions
scheduling.c File Reference

Code for PIT initialization and scheduler interrupt. More...

#include "scheduling.h"
#include "idt.h"
#include "lib.h"
#include "i8259.h"
#include "types.h"
#include "sys_call.h"
#include "paging.h"
#include "x86_desc.h"
#include "pcb.h"

Functions

void PITInterrupt ()
 Handles the PIT (Programmable Interval Timer) interrupt and performs text switching. More...
 
void PITInit (uint32_t desired_freq_hz)
 Initialize the PIT (Programmable Interval Timer). More...
 

Detailed Description

Code for PIT initialization and scheduler interrupt.

Author
Group 8
Version
1.0
Date
2023-04-10

Function Documentation

◆ PITInit()

void PITInit ( uint32_t  desired_freq_hz)

Initialize the PIT (Programmable Interval Timer).

Send 1193182/desired_freq_hz to some port

Parameters
desired_freq_hzThe frequency that the PIT will be running on.

◆ PITInterrupt()

void PITInterrupt ( )

Handles the PIT (Programmable Interval Timer) interrupt and performs text switching.

Swqitches the task by changing the tss segment and currPID.

Note
This is the main function for scheduling.
See also
currPID, tss.c