Changeset f476e76 in mainline
- Timestamp:
- 2006-07-24T12:24:19Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d227101
- Parents:
- 0356274
- Location:
- kernel/arch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/amd64/include/boot/boot.h
r0356274 rf476e76 27 27 */ 28 28 29 29 /** @addtogroup amd64 30 30 * @{ 31 31 */ … … 47 47 #endif 48 48 49 49 /** @} 50 50 */ 51 -
kernel/arch/amd64/include/pm.h
r0356274 rf476e76 69 69 70 70 71 #define gdtselector(des) ((des) <<3)72 #define idtselector(des) ((des)<<4)71 #define gdtselector(des) ((des) << 3) 72 #define idtselector(des) ((des) << 4) 73 73 74 74 #define PL_KERNEL 0 -
kernel/arch/ia32/include/pm.h
r0356274 rf476e76 47 47 #define UDATA_DES 4 48 48 #define TSS_DES 5 49 #define TLS_DES 49 #define TLS_DES 6 /* Pointer to Thread-Local-Storage data */ 50 50 51 51 #ifdef CONFIG_FB … … 59 59 60 60 61 #define selector(des) ((des) <<3)61 #define selector(des) ((des) << 3) 62 62 63 63 #define PL_KERNEL 0 -
kernel/arch/ia32/src/boot/boot.S
r0356274 rf476e76 37 37 .section K_TEXT_START, "ax" 38 38 39 KTEXT=840 KDATA=1641 42 39 .code32 43 40 .align 4 … … 57 54 lgdt KA2PA(bootstrap_gdtr) # initialize Global Descriptor Table register 58 55 59 movw $ KDATA, %cx56 movw $selector(KDATA_DES), %cx 60 57 movw %cx, %es 61 58 movw %cx, %fs … … 64 61 movw %cx, %ss 65 62 66 jmpl $ KTEXT, $multiboot_meeting_point63 jmpl $selector(KTEXT_DES), $multiboot_meeting_point 67 64 multiboot_meeting_point: 68 65 … … 385 382 9: 386 383 387 ljmpl $ KTEXT, $(vesa_init_protect - vesa_init + VESA_INIT_SEGMENT << 4)384 ljmpl $selector(KTEXT_DES), $(vesa_init_protect - vesa_init + VESA_INIT_SEGMENT << 4) 388 385 389 386 0:# No prefered mode found … … 412 409 popl %esp 413 410 414 movw $ KDATA, %cx411 movw $selector(KDATA_DES), %cx 415 412 movw %cx, %es 416 413 movw %cx, %fs … … 419 416 movw %cx, %ss 420 417 421 jmpl $ KTEXT, $vesa_meeting_point418 jmpl $selector(KTEXT_DES), $vesa_meeting_point 422 419 423 420 .align 4
Note:
See TracChangeset
for help on using the changeset viewer.