diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-05-27 22:59:19 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-05-27 22:59:19 +0200 |
commit | 5da4f0fc0f55b43815adbdbc8f2e0e26eaac84e6 (patch) | |
tree | 1381230c9dc8060f167b2988a55052c598fdd7f5 /sys/src/9/port/portdat.h | |
parent | ad7390dda820db424821b19c572a44b4cc0838e8 (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/port/portdat.h')
-rw-r--r-- | sys/src/9/port/portdat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h index 059af4e60..3f4ec4e75 100644 --- a/sys/src/9/port/portdat.h +++ b/sys/src/9/port/portdat.h @@ -373,6 +373,7 @@ enum SG_RONLY = 0040, /* Segment is read only */ SG_CEXEC = 0100, /* Detach at exec */ SG_FAULT = 0200, /* Fault on access */ + SG_CACHED = 0400, }; #define PG_ONSWAP 1 |