summaryrefslogtreecommitdiff
path: root/sys/src/9/pc64/main.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-05-27 22:59:19 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-05-27 22:59:19 +0200
commit5da4f0fc0f55b43815adbdbc8f2e0e26eaac84e6 (patch)
tree1381230c9dc8060f167b2988a55052c598fdd7f5 /sys/src/9/pc64/main.c
parentad7390dda820db424821b19c572a44b4cc0838e8 (diff)
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.
Diffstat (limited to 'sys/src/9/pc64/main.c')
-rw-r--r--sys/src/9/pc64/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/pc64/main.c b/sys/src/9/pc64/main.c
index 7e1b8449a..997322e43 100644
--- a/sys/src/9/pc64/main.c
+++ b/sys/src/9/pc64/main.c
@@ -305,6 +305,7 @@ main()
i8253init();
cpuidentify();
meminit();
+ ramdiskinit();
confinit();
xinit();
archinit();