Re: [PATCH] MIPS: Set ISA bit in entry-y for microMIPS kernels

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 8 Aug 2017, Paul Burton wrote:

> When building a kernel for the microMIPS ISA, ensure that the ISA bit
> (ie. bit 0) in the entry address is set. Otherwise we may include an
> entry address in images which bootloaders will jump to as MIPS32 code.

 Hmm, what's going on here?  The ISA bit is set by the linker according to 
the mode the code at the entry symbol has been assembled for, e.g.:

$ readelf -h vmlinux | grep Entry
  Entry point address:               0x804355e1
$ readelf -s vmlinux | grep kernel_entry
156535: 80100400     0 FUNC    GLOBAL DEFAULT [MICROMIPS]     1 __kernel_entry
156742: 804355e0   146 FUNC    GLOBAL DEFAULT [MICROMIPS]     1 kernel_entry
$ 

or no microMIPS (or MIPS16) executable could work.  Is your build process 
or toolchain used broken by any chance?

  Maciej




[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux