SSE instructions in DOS programs? (Developers)
I guess that SSE should work without setting those 2 bits in CR4 - if you don't need turn on exceptions (code should work without them too). I'm not sure what exactly bit 9 does. FXSAVE instruction save FPU, MMX, SSE regs. context to given location in memory. But as I told for a single task OS it's not necessary if no other code will use this regs. Here is better description with some sample code
https://wiki.osdev.org/SSE
they even set some bits in CR0.
In order to allow SSE instructions to be executed without generating a #UD, we need to alter the CR0 and CR4 registers.
I don't know what they means by "#UD" but from this description it seems that bits must be enabled to allow SSE instructions even on single task OS. But you told it didn't crash. I'm confused...
---
DOS gives me freedom to unlimited HW access.
Complete thread:
- SSE instructions in DOS programs? - Laaca, 02.01.2019, 00:07
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- SSE instructions in DOS programs? - alexfru, 02.01.2019, 00:31
- SSE instructions in DOS programs? - Rugxulo, 02.01.2019, 10:08
- SSE instructions in DOS programs? - RayeR, 02.01.2019, 22:56
- SSE instructions in DOS programs? - Laaca, 03.01.2019, 12:51
- SSE instructions in DOS programs? - Laaca, 03.01.2019, 12:52
- SSE instructions in DOS programs? - RayeR, 03.01.2019, 14:32
- SSE instructions in DOS programs? - RayeR, 03.01.2019, 14:39
- SSE instructions in DOS programs? - marcov, 04.01.2019, 23:37
- SSE instructions in DOS programs? - Rugxulo, 12.01.2019, 23:54
- SSE instructions in DOS programs? - RayeR, 13.01.2019, 16:44
- SSE instructions in DOS programs? - Rugxulo, 12.01.2019, 23:54
- SSE instructions in DOS programs? - Laaca, 03.01.2019, 12:51
Mix view