-
-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
190 test task usermode #191
Conversation
docs/kernel/Initialization.md
Outdated
|
||
## Loading the kernel | ||
|
||
The kernel is loaded by grub2, using the multibtoo2 specifications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
multiboo? sounds very spooky.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahaha i started it when during the halloween season, lol
@@ -57,7 +57,7 @@ thread_t* create_thread(char* thread_name, void (*_entry_point)(void *), void* a | |||
} | |||
|
|||
// Every thread need it's kernel stack allocated (aka rsp0 field of the TSS) | |||
new_thread->rsp0 = kmalloc(THREAD_DEFAULT_STACK_SIZE); | |||
new_thread->rsp0 = kmalloc(THREAD_DEFAULT_STACK_SIZE) + THREAD_DEFAULT_STACK_SIZE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might be useful to allocate stacks from the vmm, and then you can pass in a flag like VM_STACK - which can automatically return the top address for you (to avoid future errors like this one).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a cool idea!
i'll implement it!
Close #190