/[rtmk]/rtmk/i386/pc-init.c
ViewVC logotype

Diff of /rtmk/i386/pc-init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by jrydberg, Tue Feb 5 20:39:33 2002 UTC revision 1.8 by jrydberg, Sat Feb 16 14:58:49 2002 UTC
# Line 1  Line 1 
1  /* Initialize function for i386 architecture.  /* Initialize function for i386 architecture.
2     Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@opencores.org.     Copyright 1999, 2000, 2001, 2002 Johan Rydberg, jrydberg@rtmk.org.
3    
4  This program is free software; you can redistribute it and/or modify  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License as published by  it under the terms of the GNU General Public License as published by
# Line 114  init386 (void) Line 114  init386 (void)
114  #endif  #endif
115    
116    /* Set kernel TSS.  */    /* Set kernel TSS.  */
117    tss_seg = KERNEL_TSS + (0x8 * CPU_CURRENT ());    tss_seg = KERNEL_TSS + (0x8 * (CPU_CURRENT () * 2));
118    __asm__ __volatile__ ("ltr %0" :: "rm" ((unsigned short) tss_seg));    asm volatile ("ltr %0" :: "rm" ((unsigned short) tss_seg));
119    
120    /* Boostrap resident pages. */    /* Boostrap resident pages. */
121    vm_page_resident_pages_init (&vstart, &vend);    vm_page_resident_pages_init (&vstart, &vend);

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26