BOOT_CS

From: H. Peter Anvin (hpa_at_zytor.com)
Date: 02/21/04

  • Next message: Andrew Morton: "Re: [Patch 2/6] dm: remove v1 ioctl interface"
    To: linux-kernel@vger.kernel.org
    Date:	Sat, 21 Feb 2004 05:47:29 +0000 (UTC)
    
    

    Anyone happen to know of any legitimate reason not to reload %cs in
    head.S? I think the following would be a lot cleaner, as well as a
    lot safer (the jump and indirect branch aren't guaranteed to have the
    proper effects, although technically neither should be required due to
    the %cr0 write):

    @@ -117,10 +147,7 @@
            movl %cr0,%eax
            orl $0x80000000,%eax
            movl %eax,%cr0 /* ..and set paging (PG) bit */
    - jmp 1f /* flush the prefetch-queue */
    -1:
    - movl $1f,%eax
    - jmp *%eax /* make sure eip is relocated */
    + ljmp $__BOOT_CS,$1f /* Clear prefetch and normalize %eip
    */
     1:
            /* Set up the stack pointer */
            lss stack_start,%esp

    I've been doing some cleanups in head.S after making the early page
    tables dynamic.

            -hpa
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Andrew Morton: "Re: [Patch 2/6] dm: remove v1 ioctl interface"

    Relevant Pages

    • Re: serialize access to ide device
      ... > What about adding new kind of REQ_SPECIAL request and converting ... That will still only serialize per-channel. ... But yes, a lot cleaner. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: urb timeouts with eagle on 2.4.20
      ... > After connecting to the net, the modem disconnects and I get an error: ... > I have to reload its firmware in order for it to work again. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH 2/3] block cleanups: Add kconfig default iosched submenu
      ... > anticipatory is not compiled in or another default is preferred. ... This version is cleaner, since it eliminates all the #ifdef's in the ... Can you rebase this against latest -mm, it has the other patch you ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [vendor-sec] Re: [BUG/PATCH/RFC] Oops while completing async USB via usbdevio
      ... > naming for the disconnect structure was cleaner, so I wouldn't mind having ... the most important thing would be to verify that the oops ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: drivers/block/ub.c
      ... > Then why take the risk that gcc is changed or an architecture added that ... It seems to be cleaner to me to mark data structures that ... Because it generates enormously inefficient code on RISC ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)