From: Alan Cox Date: Thu, 6 Nov 2014 21:38:24 +0000 (+0000) Subject: binman: minor cleaning/commenting X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=18a1adc6fd7945b1de9b6fbea003b198119ae604;p=FUZIX.git binman: minor cleaning/commenting --- diff --git a/Kernel/tools/binman.c b/Kernel/tools/binman.c index 019df9b6..7e40d398 100644 --- a/Kernel/tools/binman.c +++ b/Kernel/tools/binman.c @@ -116,11 +116,16 @@ int main(int argc, char *argv[]) exit(1); } + /* Our standard layout begins with the code */ start = s__CODE; + /* TODO: Support a proper discardable high discard in other mappings */ + /* In an environment with a single process mapped we put the discard + area into process space, so it will be below the kernel in most + cases. In that case we start on the DISCARD segment if need be */ /* Low discard (pure swap model) */ - if (s__DISCARD && s__DISCARD < s__CODE) { + if (s__DISCARD && s__DISCARD < start) { start = s__DISCARD; if (s__DISCARD + l__DISCARD > s__CODE) { fprintf(stderr,