flat assembler
Message board for the users of flat assembler.
Index
> DOS > INVD in DOS |
Author |
|
revolution 24 Mar 2021, 19:01
Yup. That will happen.
Quote: Use this instruction with care. Data cached internally and not written back to main memory will be lost. Note that any data from an external device to main memory (for example, via a PCIWrite) can be temporarily stored in the caches; these data can be lost when an INVD instruction is executed. Unless there is a specific requirement or benefit to flushing caches without writing back modified cache lines (for example, temporary memory, testing, or fault recovery where cache coherency with main memory is not a concern), software should instead use the WBINVD instruction. |
|||
24 Mar 2021, 19:01 |
|
MaoKo 24 Mar 2021, 20:59
Ok thx. When I execute wbinvd followed by an invd my PC hang. Do you known a way to use invd without breaking the environement? Because I see some custom OS that use invd without disturb the execution. I want to test some caching policy (WB,WT,WP,WC,...). If I can't I can use clflush though but it writeback to memory.
|
|||
24 Mar 2021, 20:59 |
|
revolution 25 Mar 2021, 06:54
If you want to use invd then make sure that no other code has any data in the CPU caches.
This probably means you should:
|
|||
25 Mar 2021, 06:54 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.