dthain / basekernel

A simple OS kernel for research, teaching, and fun.
GNU General Public License v2.0
777 stars 109 forks source link

boottime is multiply defined #285

Closed mfs409 closed 1 year ago

mfs409 commented 1 year ago

When compiling with a newer gcc, I get an error that boottime is multiply defined.

I fixed it by making it extern in kernel/rtc.h, and then defining it in kernel/rtc.c.

dthain commented 1 year ago

That sounds about right, please go ahead and make a PR!

dthain commented 1 year ago

Thanks!

mfs409 commented 1 year ago

Glad to help :)