X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fthreads%2Finit.c;h=b4b1057eb750fd290d7a02adbc752c073db7a210;hb=d80dc83cd65332de026aa01035967fc031d0f305;hp=cf7a896222a5e2370b8f03827fda4fbaf9c8d4c1;hpb=e6e58461d3040e76e501a9dc9d4b38c5c825dc9c;p=pintos-anon diff --git a/src/threads/init.c b/src/threads/init.c index cf7a896..b4b1057 100644 --- a/src/threads/init.c +++ b/src/threads/init.c @@ -123,10 +123,8 @@ main (void) tid_t tid; printf ("\nExecuting '%s':\n", initial_program); tid = process_execute (initial_program); -#ifdef THREAD_JOIN_IMPLEMENTED if (tid != TID_ERROR) thread_join (tid); -#endif } #else /* Run the compiled-in test function. */ @@ -194,7 +192,7 @@ paging_init (void) aka PDBR (page directory base register). This activates our new page tables immediately. See [IA32-v2a] "MOV--Move to/from Control Registers" and [IA32-v3] 3.7.5. */ - asm volatile ("movl %0,%%cr3" :: "r" (vtop (base_page_dir))); + asm volatile ("mov %%cr3, %0" :: "r" (vtop (base_page_dir))); } /* Parses the command line. */