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 |
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); |