]> git.corax.cc Git - corax/commitdiff
Use the kernel stack passed to task_prepare on the stack, instead of the (invalid...
authorMatthias Kruk <m@m10k.eu>
Thu, 19 Sep 2019 10:38:42 +0000 (19:38 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 19 Sep 2019 10:40:09 +0000 (19:40 +0900)
kernel/arch/task.S

index 4cad1139b8de5f8953065112b09c12338f4cfe49..9e1433c6340e21ab9fb1fb89ab897f3fca9259b0 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * This file is part of the Corax operating system.
- * Copyright (C) 2016 Matthias Kruk
+ * Copyright (C) 2016-2019 Matthias Kruk
  *
  * Corax is free software: you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -52,7 +52,7 @@ task_prepare:
        movl    %eax, OFFSET_CR3(%edi)
 
        /* calculate stack start (since it grows down) */
-       movl    OFFSET_KSTACK(%edi), %eax
+       movl    16(%esp), %eax
        addl    $CONFIG_KERNEL_STACK_SIZE, %eax
 
        /*