[PATCH] x86: Add .nop directive to assembler
Mon Feb 26 20:05:00 GMT 2018
On Mon, 26 Feb 2018 20:17:30 +0100
John Darrington <firstname.lastname@example.org> wrote:
> On Mon, Feb 26, 2018 at 11:03:12AM -0800, H.J. Lu wrote:
> On Mon, Feb 26, 2018 at 11:00 AM, John Darrington
> <email@example.com> wrote:
> > I haven't read every post in this thread, nor do I pretend to understand all the
> > issues.
> > But it this change seems to have the effect that any instruction called "NOP"
> > in the .s file are completely ignored :(
> > Many cpus have a NOP instruction. It's often used in realtime systems to
> > implement short delays.
> Which target have you tried?
+1 to John Darrington.
nop indeed used as delay (for RISC processors, like SPARC, it is well specified delay)
on programming over bare metal. Ignoring it will lead to a catastrophic effects.
More information about the Binutils