Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

SSE in DOS under JEMM386 ?? (DOSX)

posted by Rugxulo Homepage, Usono, 03.01.2008, 06:54
(edited by Rugxulo on 03.01.2008, 07:06)

Okay, so I've been reading up on SSE/SSE2 (32-bit) somewhat, but the problem is that it needs OS support (e.g. Linux 2.4, Win98). It seems that you have to enable the CR4 bit 9 (OSFXSR) as well as enable CR0's MP (bit 1) but disable CR0's EM (bit 2). Then you have to actually FXSAVE [512_byte_area], do your thing, then FXRSTOR [512_byte_area]. (And of course CPUID check, then CPUID, first before trying to run any of this stuff.)

I am testing a program written by someone else, but it seems to not work in pure DOS.

I finally seem to get it to run w/ SSE2 in QEMU, but only if running HIMEMX (e.g. real mode) and with PMODETSR (ring 0, no paging) since it's a DJGPP-compiled program (needs DPMI).

Japheth, is this normal? Do you know what I'm doing wrong or if there's an easy way to correct it? (That's assuming you know anything about this stuff, which you must, at least vaguely.)

http://rugxulo.googlepages.com/paq8-sse.7z (w/ src + .EXE, etc.)

N.B. This is not a great hack of mine or anything, just piecing it all together really. Any help is welcome. :-P

P.S. I really wish I could test under Vista, but it still has that bloomin' 32 MB DPMI limit! (Help me, SP1, you're my only hope!)

---
Know your limits.h

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 202 users online (0 registered, 202 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum