diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2006-07-27 02:55:37 -0600 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2006-07-27 02:55:37 -0600 |
commit | af598f5e5570b431a5fff2434ecb9cbe61586383 (patch) | |
tree | 96caff3ce2bdd98dc744367e1dc1f1b12d918ffe /kexec/arch | |
parent | 283261998a9846019d898bc454b363e4aaf3d181 (diff) |
Fix the i386 old bios call compatibility.
Diffstat (limited to 'kexec/arch')
-rw-r--r-- | kexec/arch/i386/x86-linux-setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c index 80a156a..3ab4c7f 100644 --- a/kexec/arch/i386/x86-linux-setup.c +++ b/kexec/arch/i386/x86-linux-setup.c @@ -164,7 +164,7 @@ void setup_linux_system_parameters(struct x86_linux_param_header *real_mode) if (range[i].type != RANGE_RAM) continue; if ((range[i].start <= 0x100000) && range[i].end > 0x100000) { - unsigned long long mem_k = (range[i].end >> 10) - 0x100000; + unsigned long long mem_k = (range[i].end >> 10) - (0x100000 >> 10); real_mode->ext_mem_k = mem_k; real_mode->alt_mem_k = mem_k; if (mem_k > 0xfc00) { |