Changeset a35b458 in mainline for kernel/arch/ia32/src/userspace.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/userspace.c
r3061bc1 ra35b458 50 50 { 51 51 uint32_t eflags = read_eflags(); 52 52 53 53 asm volatile ( 54 54 /* Set up GS register (virtual register segment) */ 55 55 "movl %[vreg_des], %%gs\n" 56 56 57 57 "pushl %[udata_des]\n" 58 58 "pushl %[stack_top]\n" … … 61 61 "pushl %[entry]\n" 62 62 "movl %[uarg], %%eax\n" 63 63 64 64 /* %edi is defined to hold pcb_ptr - set it to 0 */ 65 65 "xorl %%edi, %%edi\n" 66 66 67 67 "iret\n" 68 68 : … … 77 77 [vreg_des] "r" (GDT_SELECTOR(VREG_DES)) 78 78 : "eax"); 79 79 80 80 /* Unreachable */ 81 81 while (1);
Note:
See TracChangeset
for help on using the changeset viewer.