This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
hal/powerpc exec size fix
- From: Peter Korsgaard <jacmet at sunsite dot dk>
- To: ecos-patches at ecos dot sourceware dot org
- Date: Tue, 15 Mar 2005 08:19:26 +0100
- Subject: hal/powerpc exec size fix
Hi,
The following tiny patch fixes the bi_size element of the board_info
structure used in the RedBoot exec command.
Index: packages/hal/powerpc/arch/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/arch/current/ChangeLog,v
retrieving revision 1.66
diff -u -u -r1.66 ChangeLog
--- packages/hal/powerpc/arch/current/ChangeLog 9 Nov 2004 18:39:51 -0000 1.66
+++ packages/hal/powerpc/arch/current/ChangeLog 14 Mar 2005 13:47:54 -0000
@@ -1,3 +1,7 @@
+2005-03-14 Peter Korsgaard <jacmetd@sunsite.dk>
+
+ * src/redboot_linux_exec.c (do_exec): Correctly set bi_size.
+
2004-11-04 Peter Korsgaard <jacmet@sunsite.dk>
* src/ppc_stub.c (__is_single_step): Removed compiler warning
Index: packages/hal/powerpc/arch/current/src/redboot_linux_exec.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/arch/current/src/redboot_linux_exec.c,v
retrieving revision 1.4
diff -u -u -r1.4 redboot_linux_exec.c
--- packages/hal/powerpc/arch/current/src/redboot_linux_exec.c 27 May 2004 13:22:09 -0000 1.4
+++ packages/hal/powerpc/arch/current/src/redboot_linux_exec.c 14 Mar 2005 13:47:54 -0000
@@ -165,7 +165,7 @@
memset(board_info, sizeof(*board_info), 0);
board_info->bi_tag = 0x42444944;
- board_info->bi_size = sizeof(board_info);
+ board_info->bi_size = sizeof(*board_info);
board_info->bi_revision = 1;
board_info->bi_bdate = 0x06012002;
board_info->bi_memstart = CYGMEM_REGION_ram;
--
Bye, Peter Korsgaard