diff options
| author | Robert Morris <rtm@csail.mit.edu> | 2019-06-05 11:42:03 -0400 |
|---|---|---|
| committer | Robert Morris <rtm@csail.mit.edu> | 2019-06-05 11:42:03 -0400 |
| commit | f1a727b971a59bab6025b4c4111342c27356ca40 (patch) | |
| tree | d22d52c613bfc003e6fb75b5d137aeff9d954201 /main.c | |
| parent | ec3d3a1fceee437c640f9c5c05fc517edfb1899e (diff) | |
| download | xv6-labs-2022-f1a727b971a59bab6025b4c4111342c27356ca40.tar.xz xv6-labs-2022-f1a727b971a59bab6025b4c4111342c27356ca40.zip | |
start at support for multiple CPUs
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,11 +8,12 @@ // Allocate a real stack and switch to it, first // doing some setup required for memory allocator to work. void -main() +main(int hartid) { + w_tp(hartid); // save hartid where cpuid() can find it uartinit(); // serial port consoleinit(); - printf("entering main()\n"); + printf("entering main() on hart %d\n", hartid); kinit(); // physical page allocator kvminit(); // kernel page table procinit(); // process table |
