Skip to contentSkip to conversation

edata alignment

DISCUSSION Pete Popov 2 participants 2 messages Apr 6, 2001 MIPS

lore
Share & tools
lore

Pete Popov

author
#0 lore raw

In arch/mips/kernel/head.S, there is this code in kernel_entry:

la t0, _edata
sw zero, (t0)

What guarantees that edata will be word aligned? I don't see a .ALIGN directive in the ld.script so is it safe to assume that edata will always be at least word aligned? I've linked into the kernel a very large ramdisk, and edata ends up being an odd address, causing a cpu fault.

Pete

#1 lore raw
Quoted 10 lines · Pete Popov

In arch/mips/kernel/head.S, there is this code in kernel_entry:

la t0, _edata
sw zero, (t0)

What guarantees that edata will be word aligned? I don't see a .ALIGN directive in the ld.script so is it safe to assume that edata will always be at least word aligned? I've linked into the kernel a very large ramdisk, and edata ends up being an odd address, causing a cpu fault.

This was fixed between revs 1.4 and 1.5 in cvs @ oss.sgi.com

-Justin