This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MMU page table linking with relative addressing

Former Member
Former Member

To my understanding the page tables entries that point to the next page table need to be absolute addresses, so from 0x0.   

Now I would like to generate my page tables before runtime and cannot know the absolute address because I don’t know at which address they end up exactly… so is it somehow possible to do that with relative (to table base address e.g.) addresses?

Greets from Germany

Parents
  • Former Member
    0 Former Member in reply to Martin Weidmann

    So I'm working with Zig (upcoming system programming lang and self proclaimed C competitor) which has a comptime feature. Sadly hard linked label addresses are not accessible during compile time. So there's probably some hack in C but I'm trying to solve that elegantly in zig, so I either have relative addressing or I have to do it at runtime

Reply
  • Former Member
    0 Former Member in reply to Martin Weidmann

    So I'm working with Zig (upcoming system programming lang and self proclaimed C competitor) which has a comptime feature. Sadly hard linked label addresses are not accessible during compile time. So there's probably some hack in C but I'm trying to solve that elegantly in zig, so I either have relative addressing or I have to do it at runtime

Children
No data