From 18a1adc6fd7945b1de9b6fbea003b198119ae604 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 6 Nov 2014 21:38:24 +0000 Subject: [PATCH] binman: minor cleaning/commenting --- Kernel/tools/binman.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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, -- 2.34.1