summaryrefslogtreecommitdiff
path: root/sys/src/9/port/portdat.h
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-04-12 22:30:30 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-04-12 22:30:30 +0200
commit461c2b68a16ab3314202ec7796fe7eb8a7731f2d (patch)
treed2fd155f08d5dff13b6b600db5151da233842347 /sys/src/9/port/portdat.h
parentaadbcf0a32c92b1ba4584ad9487854ede43932ca (diff)
kernel: fixed segment support (for fpga experiments)
fixed segments are continuous in physical memory but allocated in user pages. unlike shared segments, they are not allocated on demand but the pages are allocated on creation time (devsegment). fixed segments are never swapped out, segfreed or resized and can only be destroyed as a whole. the physical base address can be discovered by userspace reading the ctl file in devsegment.
Diffstat (limited to 'sys/src/9/port/portdat.h')
-rw-r--r--sys/src/9/port/portdat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/port/portdat.h b/sys/src/9/port/portdat.h
index a85dc831b..495baac93 100644
--- a/sys/src/9/port/portdat.h
+++ b/sys/src/9/port/portdat.h
@@ -341,6 +341,7 @@ enum
SG_STACK = 03,
SG_SHARED = 04,
SG_PHYSICAL = 05,
+ SG_FIXED = 06,
SG_RONLY = 0040, /* Segment is read only */
SG_CEXEC = 0100, /* Detach at exec */