need explanation on this (tss's prvil field)
Posted: Mon Aug 03, 2020 4:15 am
I am creating a tss segment so I can switch to user mode...
This is the privilege level description I got from osdev's article
Privl: Privilege, 2 bits. Contains the ring level, 0 = highest (kernel), 3 = lowest (user applications).
I still don't understand what I should set it to...
since tss should store the stack pointer and stack segment value for kernel... it should be set to 0.
but james molloy set the access byte to 0xE9, which implies that the privilege level is set to 3 ...
is he wrong or I intepret it wrong?
This is the privilege level description I got from osdev's article
Privl: Privilege, 2 bits. Contains the ring level, 0 = highest (kernel), 3 = lowest (user applications).
I still don't understand what I should set it to...
since tss should store the stack pointer and stack segment value for kernel... it should be set to 0.
but james molloy set the access byte to 0xE9, which implies that the privilege level is set to 3 ...
is he wrong or I intepret it wrong?