Hi, after startup in real mode, I search the memory area between 0x9FC00 and 0xFFFFF for the string "RSD PTR " to find the RSDP. On Qemu, this works perfectly. On my real UEFI PC, however, this does not work and my OS prints the message that the RSDP could not be found. This happens even if I turn on "legacy mode" instead of "UEFI mode" in my UEFI menu. (for completeness: the OS would also print this if it had found more than one "RSD PTR " in that memory area on a 16 bytes boundary)
The article
https://wiki.osdev.org/RSDP says that the RSDP must be looked for differently on UEFI systems and I must look into the EFI_SYSTEM_TABLE. I read the article about the UEFI, but I am still very new to this thing.

It seems that the system table is a parameter to my main function which comes from a PE file on my boot partition. But I have no boot partition, I have just normal bootstrap code on my MBR and a few sectors behind without a proper filesystem, and although it is an UEFI PC, the MBR code is loaded as if I had a normal BIOS.
Maybe you can tell me what I missed and where to start reading about this stuff to get into it properly? A direct explanation would also be very great. Thank you for your help!