aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-12-28 14:17:37 -0500
committerKevin O'Connor <kevin@koconnor.net>2014-12-29 09:17:15 -0500
commita174985ee00920242933e13ae70d29fb8e67efbb (patch)
treee932f1d2fe191e6b0785737288393efb7c9893ec /docs
parent9a46e84080cedc6e9cc206225a1f34403dd4a52d (diff)
downloadseabios-hppa-a174985ee00920242933e13ae70d29fb8e67efbb.zip
seabios-hppa-a174985ee00920242933e13ae70d29fb8e67efbb.tar.gz
seabios-hppa-a174985ee00920242933e13ae70d29fb8e67efbb.tar.bz2
docs: Add info on MODE16/MODESEGMENT compile time flags
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs')
-rw-r--r--docs/Memory_Model.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/Memory_Model.md b/docs/Memory_Model.md
index c77fc22..196b57b 100644
--- a/docs/Memory_Model.md
+++ b/docs/Memory_Model.md
@@ -108,6 +108,15 @@ assembled using ".code16gcc". SeaBIOS is careful to use segment
registers properly so that the same code can run in the different
16bit modes that it needs to support.
+C code mode flags
+=================
+
+Two compile time flags are available to determine the memory model the
+code is intended for: MODE16 and MODESEGMENT. When compiling for the
+16 bit modes, MODE16 is true and MODESEGMENT is true. In 32bit
+segmented mode, MODE16 is false and MODESEGMENT is true. In 32bit flat
+mode both MODE16 and MODESEGMENT are false.
+
Common memory used at run-time
==============================