[lkml]   [2004]   [Feb]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    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 */
    - movl $1f,%eax
    - jmp *%eax /* make sure eip is relocated */
    + ljmp $__BOOT_CS,$1f /* Clear prefetch and normalize %eip
    /* 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.

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:01    [W:0.021 / U:15.256 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site