I tried my os on real hardware for the first time and found that the bootloader is hanging. I tracked the issue down to this line. I'm still a beginner in os development so any help is appreciated.
I am running it on my laptop which is a lenvo legion 7 which has a AMD Ryzen 7 5800H.