It's great that you have already gained knowledge about the Atmel Atmega328p microcontroller and the modern x86_64 architecture.
Regarding your question, it is important to understand your end goal. If you're interested in OS development, you can start with a smaller goal, such as building a...