Converting Int to Float or Float to Int using Bitwise operations (software floating point)

First, a paper you should consider reading, if you want to understand floating point foibles better: “What Every Computer Scientist Should Know About Floating Point Arithmetic,” http://www.validlab.com/goldberg/paper.pdf And now to some meat. The following code is bare bones, and attempts to produce an IEEE-754 single precision float from an unsigned int in the range 0 … Read more

How to trap unaligned memory access?

Linux can do the fixup for you or warn about the access. You can enable the behavior in /proc/cpu/alignment, see http://www.mjmwired.net/kernel/Documentation/arm/mem_alignment for an explanation of the different values. 0 – Do nothing (default behavior) 1 – Warning in kernel-log with PC and Memory-Address printed. 2 – Fixup error 3 – Warn and Fixup 4 – … Read more

How do I find ARM Linux entry point when it fails to uncompress?

We seem to have ported Das U-Boot successfully. There’s evidence that that is a faulty assumption. Just before calling the kernel, the pointer theKernel is 10008000 and not 10800000. Which version of U-Boot are you using? In both 2012.10 and 2013.04 versions of U-Boot, the variable theKernel is only declared and used by code for … Read more