[task] Minor stuff
This commit is contained in:
parent
4d2005bad6
commit
58dc0bb922
@ -7,7 +7,7 @@
|
||||
__volatile__ task_t * current_task;
|
||||
__volatile__ task_t * ready_queue;
|
||||
|
||||
uint32_t next_pid = 1;
|
||||
uint32_t next_pid = 0;
|
||||
|
||||
page_directory_t *
|
||||
clone_directory(
|
||||
|
@ -18,10 +18,12 @@ timer_handler(
|
||||
struct regs *r
|
||||
) {
|
||||
++timer_ticks;
|
||||
#if 0
|
||||
if (timer_ticks % 18 == 0) {
|
||||
++ticker;
|
||||
}
|
||||
//switch_task();
|
||||
#endif
|
||||
switch_task();
|
||||
}
|
||||
|
||||
void timer_install() {
|
||||
|
@ -124,16 +124,10 @@ int main(struct multiboot *mboot_ptr, uint32_t mboot_mag, uintptr_t esp)
|
||||
* Aw man...
|
||||
*/
|
||||
|
||||
uint32_t child = fork();
|
||||
fork();
|
||||
|
||||
while (1) {
|
||||
uint32_t i = getpid();
|
||||
if (i == 1) {
|
||||
putch('A');
|
||||
} else {
|
||||
putch('B');
|
||||
}
|
||||
switch_task();
|
||||
putch(48 + getpid());
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user