What real platforms map hardware ports to memory addresses?

后端 未结 8 986
孤街浪徒
孤街浪徒 2021-02-03 12:47

I sometimes see statements that on some platforms the following C or C++ code:

int* ptr;
*ptr = 0;

can result in writing to a hardware input-ou

相关标签:
8条回答
  • 2021-02-03 13:36

    An NDIS driver on Windows is an example. This is called memory mapped I/O and the benefit of this is performance.

    0 讨论(0)
  • 2021-02-03 13:39

    Motorola 68k series and PowerPC are the big ones.

    0 讨论(0)
提交回复
热议问题