I've been working on a basic kernel in Ada. Things are coming along quite fine, except that right now I'm stuck at one line of code.
Here's the C code:
Code: Select all
gdt_ptr.base = (uint32_t) &gdt_entries;
gdt_ptr.base is defined as an unsigned 32. I've mimicked this in Ada as well with using Unsigned_32, but I'm at a loss as how to set the variable to a reference to the array of gdt_entries. I come from a heavy C/C++ background, so the way that Ada does pointers and references and such is really giving me a hard time.
Any ideas or suggestions would be very much appreciated!
Regards,
~Kris