]> git.lizzy.rs Git - plan9front.git/commit
sdram: experimental ramdisk driver
authorcinap_lenrek <cinap_lenrek@felloff.net>
Sun, 27 May 2018 20:59:19 +0000 (22:59 +0200)
committercinap_lenrek <cinap_lenrek@felloff.net>
Sun, 27 May 2018 20:59:19 +0000 (22:59 +0200)
commit5da4f0fc0f55b43815adbdbc8f2e0e26eaac84e6
tree1381230c9dc8060f167b2988a55052c598fdd7f5
parentad7390dda820db424821b19c572a44b4cc0838e8
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.
12 files changed:
sys/man/8/plan9.ini
sys/src/9/pc/dat.h
sys/src/9/pc/main.c
sys/src/9/pc/pc
sys/src/9/pc64/main.c
sys/src/9/pc64/pc64
sys/src/9/port/fault.c
sys/src/9/port/mkdevc
sys/src/9/port/portdat.h
sys/src/9/port/portfns.h
sys/src/9/port/sdram.c [new file with mode: 0644]
sys/src/9/port/segment.c