[task] Minor stuff

This commit is contained in:
Kevin Lange 2011-03-03 01:39:26 -06:00
parent 4d2005bad6
commit 58dc0bb922
3 changed files with 6 additions and 10 deletions

View File

@ -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(

View File

@ -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() {

View File

@ -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;