A toy operating system written in C.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include "src/kernel/tss.h"
|
|
|
|
tss_t tss = {
|
|
.iopb_offset = sizeof(tss_t) // points past end of TSS = no I/O permissions
|
|
};
|
|
|
|
void tss_set_kernel_stack(void *rsp0) {
|
|
tss.rsp0 = (uint64_t)rsp0;
|
|
}
|
|
|