How to use multiboot structure if I have paging enabled?
Posted: Wed Jun 08, 2022 10:13 am
In my higher half kernel, I enable paging, but since the multiboot info struct is usually located below 1 mb and outside of my kernel data, I can't safely take information from it.
I see two ways out:
1. Map the first 1 MB each time when you need to get data from the structure.
2. Copy multiboot info struct once and use the copied data.
But both ways have problems:
1. It is not particularly safe and may cause problems in the future.
2. Copying all the information that the structure contains and its various parts is very difficult, it is necessary to manually copy all its parts (for example mmap).
How can I solve this problem?
I see two ways out:
1. Map the first 1 MB each time when you need to get data from the structure.
2. Copy multiboot info struct once and use the copied data.
But both ways have problems:
1. It is not particularly safe and may cause problems in the future.
2. Copying all the information that the structure contains and its various parts is very difficult, it is necessary to manually copy all its parts (for example mmap).
How can I solve this problem?