Coder Social home page Coder Social logo

Comments (7)

joncampbell123 avatar joncampbell123 commented on August 15, 2024

I can confirm that if I manually enter the RDTSC opcode in DOS DEBUG and try to single-step it, that the system hangs in the same way.

from doslib.

joncampbell123 avatar joncampbell123 commented on August 15, 2024

Because of this issue, the CPU library now has a flag to indicate not to use the RDTSC instruction. For now, that flag is set if the build is 16-bit and virtual 8086 mode is active.

from doslib.

joncampbell123 avatar joncampbell123 commented on August 15, 2024

I will update that code to not set the flag if it can recognize whether or not the v86 monitor permits RDTSC. Perhaps FreeDOS has a better implementation. Perhaps MS-DOS 6.22 and earlier don't have this issue, or perhaps Microsoft fixed this in Windows 98 DOS mode. I'll need to test this.

from doslib.

joncampbell123 avatar joncampbell123 commented on August 15, 2024

This was observed on an old Pentium 133MHz test system with Windows 95 DOS mode on a CF card.

from doslib.

joncampbell123 avatar joncampbell123 commented on August 15, 2024

TODO: Which MSR controls whether user-space can access RDTSC, by the way? I understand there's another one for whether or not user-space can use CPUID.

from doslib.

joncampbell123 avatar joncampbell123 commented on August 15, 2024

A-ha:

https://en.wikipedia.org/wiki/Control_register#CR4

from doslib.

darkstar avatar darkstar commented on August 15, 2024

The P133 does not support rdtsc in v86 mode: http://www.os2museum.com/wp/undocumented-rdtsc/

from doslib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.