zCore icon indicating copy to clipboard operation
zCore copied to clipboard

Simulating a fast disk with physics cores and more elegent porting about fu740

Open DeathWish5 opened this issue 2 years ago • 1 comments

Mock disk:

  • A new option, "MOCK", is added. When "MOCK=1" and "SMP >= 2", a secondary core will act as a block disk device. Other cores submit block requests through a MPSC queue in memory and receive interrupts via IPI.
  • Multi-Producer-Singal-Consumer queue (check kernel-hal::utils::mpsc_queue) is added for mock disk and ipi information.
  • LazyInit, which is very simliar to lazy_static, is added for those object whose initial point is fixed and clear. (By the way, It seems lazy_static will consume more memory sometimes for unknown reasons).

Porting of fu740:

  • zCore can run on fu740 without special entry code and memory map.

DeathWish5 avatar Sep 21 '22 14:09 DeathWish5

👍👍👍

YdrMaster avatar Sep 23 '22 08:09 YdrMaster