Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Missing memory probing #114

Description

@steveej

In order to manage the memory, the OS should know how much it has. Extra information about reserved addresses and memory holes (maybe these are the same, I don't know yet), should also be taken into account.

Activity

  1. steveklabnik commented on May 24, 2017

    @steveklabnik
    Member

    Yup, this is absolutely something that would have to happen for #96 and #81

  2. dato commented on May 24, 2017

    @dato
    Contributor

    An expedient option would be to get the information from the bootloader. The multiboot specification includes information on how much memory the system has.

    This would make the dependency on grub/multiboot a hard one, though; but might be a good start.

  3. steveklabnik commented on May 24, 2017

    @steveklabnik
    Member

    @dato big 👍 on that, multiboot should have all the info. I am fine with this.

  4. steveej commented on May 26, 2017

    @steveej
    ContributorAuthor

    @dato do you by chance know how this is handled in (U)EFI systems?

  5. dato commented on May 27, 2017

    @dato
    Contributor

    I’m still using BIOS for my x86_64 OS work, but it’s a similar story as Multiboot: it’s handed to you directly (in this case by EFI firmware), no need to do a special dance with BIOS services and interrupts to get it.

    You want, in particular, the GetMemoryMap() service. There is example code in this excellent StackOverflow answer. For those reading along, here’s an overall description.

    -d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions