rustubs

Module defs

Source
Expand description

system level definitions

Modules§

Structs§

  • interrut numbers. Not complete, add more when needed (see docs/interrupt.txt)

Statics§

  • physical address of multiboot info block. This value is set at run time by init asm code. Both values are safe to read, but mb_info_pm_addr must be converted to the virtual mapping via P2V before dereferencing.
  • multiboot magic value, it must be 0x2BAD8002. This value is set at runtime by init asm code. CARE: the release build will not treat these as volatile and they may hardcode the initial value (0) because they sees “static const zero”. Therefore when reading them must do a volatile read.

Functions§

  • physical address to virtual. reverse of V2P
  • convert VA <-> PA wrt. the kernel id mapping from 0xffff_8000_0000_0000 ~ 0xffff_800f_ffff_ffff virtual to 0x0 ~ 0xf_ffff_ffff physical (64G)