shithub: riscv

Download patch

ref: 5da4f0fc0f55b43815adbdbc8f2e0e26eaac84e6
parent: ad7390dda820db424821b19c572a44b4cc0838e8
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun May 27 18:59:19 EDT 2018

sdram: experimental ramdisk driver

this driver makes regions of physical memory accessible as a disk.

to use it, ramdiskinit() has to be called before confinit(), so
that conf.mem[] banks can be reserved. currently, only pc and pc64
kernel use it, but otherwise the implementation is portable.

ramdisks are not zeroed when allocated, so that the contents are
preserved across warm reboots.

to not waste memory, physical segments do not allocate Page structures
or populate the segment pte's anymore. theres also a new SG_CHACHED
attribute.