Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4973ae9 authored by Jesper Nilsson's avatar Jesper Nilsson
Browse files

CRIS: Correct address of the romfs in boot image



The romfs should land after __init_end

Signed-off-by: default avatarJesper Nilsson <jesper.nilsson@axis.com>
parent d77eab8c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -280,7 +280,7 @@ _no_romfs_in_flash:
	;; the "rom fs" we'll possibly use in 2.4 if not JFFS (which does
	;; the "rom fs" we'll possibly use in 2.4 if not JFFS (which does
	;; not need this mechanism anyway)
	;; not need this mechanism anyway)


	move.d	__vmlinux_end, $r0; the image will be after the vmlinux end address
	move.d	__init_end, $r0; the image will be after the end of init
	move.d	[$r0], $r1	; cramfs assumes same endian on host/target
	move.d	[$r0], $r1	; cramfs assumes same endian on host/target
	cmp.d	CRAMFS_MAGIC, $r1; magic value in cramfs superblock
	cmp.d	CRAMFS_MAGIC, $r1; magic value in cramfs superblock
	bne	2f
	bne	2f