summaryrefslogtreecommitdiff
path: root/kernel/usermode.c
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2018-08-22 03:44:42 +0200
committerMiguel <m.i@gmx.at>2018-08-22 03:44:42 +0200
commitd99ddc6f38879fb30eaeb7dcafe25d1476613cb1 (patch)
tree2545752655d25a0723022a57a85ffe9a3f415fa3 /kernel/usermode.c
parent9acb4d60a348db1bcaaba4fad44e2a7105d9c579 (diff)
tss per usertask
Diffstat (limited to 'kernel/usermode.c')
-rw-r--r--kernel/usermode.c5
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 );