diff options
Diffstat (limited to 'kernel/usermode.c')
| -rw-r--r-- | kernel/usermode.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/usermode.c b/kernel/usermode.c index c700a61..7ec27d5 100644 --- a/kernel/usermode.c +++ b/kernel/usermode.c @@ -18,13 +18,12 @@ tss_struct sys_tss; //Define the TSS as a global structure static volatile uint32_t c1; static volatile uint32_t c2; -void install_tss(int cpu_no){ +void install_tss(uint32_t esp0){ // now fill each value // set values necessary sys_tss.ss0 = 0x10; //kernel data - sys_tss.esp0 = kballoc(4)+4095; - log(FOOLOS_MODULE_NAME,FOOLOS_LOG_INFO,"esp0 =0x%08X ",sys_tss.esp0); + sys_tss.esp0 = esp0; // now set the IO bitmap (not necessary, so set above limit) // sys_tss.iomap = ( unsigned short ) sizeof( tss_struct ); |
