Skip to contentSkip to conversation

bootvx: Clear and disable data cache, and call vxWorks with parameter.

PATCH New Reinhard Arlt 3 participants 3 messages Nov 18, 2011 – Mar 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 bootvx: Clear and disable data cache, and call vxWorks with parameter.

From: Reinhard Arlt <[email protected]>

This patch clear and disable the data cache for vxWorks.

The entry point sysInit(int) intended by Windriver to be called from the vxWorks bootrom, a very small vxWorks system.
The routine is called by the go() handler in the bootrom, that clears the cache from start of image to end of usable memory.

The PowerPC implementations only invalidates and disable the cache, the ARM implementations also flush it.

U-Boot will be on the save side, if it disables the data cache before calling vxWorks sysInit(int).

--

common/cmd_elf.c +2 -1
index 11ffc1b..8266bba 100644
@@ -230,7 +230,8 @@ int do_bootvx (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 			(char *) bootaddr);
 	printf ("## Starting vxWorks at 0x%08lx ...\n", addr);
 
-	((void (*)(void)) addr) ();
+	dcache_disable();
+	((void (*)(int)) addr) (0);
 
 	puts ("## vxWorks terminated\n");
 	return 1;
#1 lore raw

PATCH v2 1/1 bootvx: Clear and disable data cache, and call vxWorks with parameter.

Quoted 1 line · On Friday 18 November 2011 14:06:52 Reinhard Arlt wrote:

U-Boot will be on the save side, if it disables the data cache before

s/save/safe/
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20111118/5c92c127/attachment.pgp>

#2 lore raw

PATCH v2 1/1 bootvx: Clear and disable data cache, and call vxWorks with parameter.

In reply to Reinhard Arlt

Dear Reinhard Arlt,

Quoted 9 lines · In message <[email protected]> you wrote:

From: Reinhard Arlt <[email protected]>

This patch clear and disable the data cache for vxWorks.

The entry point sysInit(int) intended by Windriver to be called from the vxWorks bootrom, a very small vxWorks system.
The routine is called by the go() handler in the bootrom, that clears the cache from start of image to end of usable memory.

Quoted 7 lines

The PowerPC implementations only invalidates and disable the cache, the ARM implementations also flush it.

U-Boot will be on the save side, if it disables the data cache before calling vxWorks sysInit(int).

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
 The software required `Windows 95 or better', so I installed Linux.