public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] U-Boot X86 bootstart
@ 2011-09-30 11:06 Ondra Kupka
  2011-09-30 11:09 ` Marek Vasut
  2011-09-30 13:02 ` Graeme Russ
  0 siblings, 2 replies; 3+ messages in thread
From: Ondra Kupka @ 2011-09-30 11:06 UTC (permalink / raw)
  To: u-boot

Hello,

I've been digging a bit in X86 bootstart asm code and found possibly wrong
code, as far as I understand:

In u-boot/arch/x86/cpu/start.S, there is piece of code to disable caches:

    /* Turn of cache (this might require a 486-class CPU) */
    movl    %cr0, %eax
    orl     $(X86_CR0_NW | X86_CR0_CD), %eax
    movl    %eax, %cr0
    wbinvd

, which perfectly makes sense to me. What doesn't really make sense then is:

    /* Turn of cache (this might require a 486-class CPU) */
    movl    %cr0, %eax
    orl     $(X86_CR0_NW & X86_CR0_CD), %eax    - AND HERE???
    movl    %eax, %cr0
    wbinvd

in start16.S of the same directory.

Is is wrong or not?

Thanks a lot,
Ondrej Kupka

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-09-30 13:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-30 11:06 [U-Boot] U-Boot X86 bootstart Ondra Kupka
2011-09-30 11:09 ` Marek Vasut
2011-09-30 13:02 ` Graeme Russ

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox