asinfo and hwinfo

  1. The different address spaces and hardware classes can be defined in the
    system pages asinfo and hwinfo structures in the startup code. Is there a
    way of printing the hierarchy of these structures without writing any own
    code to access the system page? I mean something like:



I’m writing the startup code at the moment and I’m trying to figure out how
can I make the best use of these structures.

  1. Has anyone suggestions what would be the best way to access the system
    pages asinfo (or hwinfo) structure and get information of a specific address
    space. For example if a serial device is defined in /memory/io/uart how
    would I access its information (start address, end address etc.) ? Are there
    any ready functions/macros for that?