Changeset 60875800 in mainline
- Timestamp:
- 2005-07-21T13:58:27Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f7a13b9
- Parents:
- 1eb0dd13
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/pm.c
r1eb0dd13 r60875800 129 129 130 130 131 / / Clean IOPL(12,13) and NT(14) flags in EFLAGS register131 /* Clean IOPL(12,13) and NT(14) flags in EFLAGS register */ 132 132 static void clean_IOPL_NT_flags(void) 133 133 { … … 145 145 } 146 146 147 / / Clean AM(18) flag in CR0 register147 /* Clean AM(18) flag in CR0 register */ 148 148 static void clean_AM_flag(void) 149 149 { … … 201 201 __asm__("ltr %0" : : "r" ((__u16) selector(TSS_DES))); 202 202 203 clean_IOPL_NT_flags(); / /Disable I/O on nonprivileged levels204 clean_AM_flag(); / /Disable alignment check205 } 203 clean_IOPL_NT_flags(); /* Disable I/O on nonprivileged levels */ 204 clean_AM_flag(); /* Disable alignment check */ 205 } -
arch/ia32/src/userspace.c
r1eb0dd13 r60875800 47 47 48 48 __asm__ volatile ("" 49 / / CLNT49 /* CLNT */ 50 50 "pushfl;" 51 51 "pop %%eax;" -
doc/TODO
r1eb0dd13 r60875800 17 17 + before IRET (from SYSCALL), zero NT in EFLAGS [DONE] 18 18 + [ia32] review the cache controling bits in CR0 register 19 + [ia32] zero the alignment exception bit in EFLAGS 19 + [ia32] zero the alignment exception bit in EFLAGS [DONE] 20 - Task changed to clean AM in CR0 so the alignment check is disabled globaly 20 21 + make emulated architectures also work on real hardware 21 22 + bring in support for other architectures (e.g. PowerPC)
Note:
See TracChangeset
for help on using the changeset viewer.