diff options
Diffstat (limited to 'kernel/main.c')
| -rw-r--r-- | kernel/main.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/main.c b/kernel/main.c index a39ed29..ecb93da 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -18,6 +18,7 @@ struct task_struct tasks[4] = { // Defined in fbos/init.h. struct dt_info info = { + .model = { '\0' }, .cpu_freq = 0, .initrd_start = 0, .initrd_end = 0, @@ -36,6 +37,13 @@ __noreturn __kernel void start_kernel(void *dtb) get_dt_info(dtb, &info); extract_initrd((unsigned char *)info.initrd_start, info.initrd_end - info.initrd_start, tasks); + // If we were able to fetch the model, print it now. + if (info.model[0] != '\0') { + printk("Running on: "); + printk(info.model); + printk("\n"); + } + // At this point everything has already been handled: setup the interrupt // vector and enable the timer to start ticking and scheduling the three // tasks at hand. |
