debuggers.hg
changeset 3727:ef95f070a233
bitkeeper revision 1.1159.223.74 (420757a9FtyPHOdlg42s6EIT2DD1zw)
Pad Xen image to end on a page boundary. Avoids kexec bug.
Signed-off-by: keir.fraser@cl.cam.ac.uk
Pad Xen image to end on a page boundary. Avoids kexec bug.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author | kaf24@scramble.cl.cam.ac.uk |
---|---|
date | Mon Feb 07 11:57:29 2005 +0000 (2005-02-07) |
parents | 2e9105d1c5a6 |
children | 177865f3143e bbe2a077f3b5 |
files | xen/arch/x86/boot/mkelf32.c |
line diff
1.1 --- a/xen/arch/x86/boot/mkelf32.c Sun Feb 06 12:48:07 2005 +0000 1.2 +++ b/xen/arch/x86/boot/mkelf32.c Mon Feb 07 11:57:29 2005 +0000 1.3 @@ -245,6 +245,12 @@ int main(int argc, char **argv) 1.4 return 1; 1.5 } 1.6 1.7 + /* 1.8 + * End the image on a page boundary. This gets round alignment bugs 1.9 + * in the boot- or chain-loader (e.g., kexec on the XenoBoot CD). 1.10 + */ 1.11 + mem_siz += -(loadbase + mem_siz) & 0xfff; 1.12 + 1.13 out_ehdr.e_entry = loadbase; 1.14 out_ehdr.e_shoff = RAW_OFFSET + dat_siz; 1.15