Open BarclayII opened 9 years ago
please explain what is going wrong.
I'm not satisfied with current driver function implementation, which switches drivers by compiler macro switches, and therefore having an underlying assumption that there's only one input device, one output device, etc.
What I'm thinking is that our kernel framework should at some point support multiple input/output/storage devices. Even if our boxes have only one such device, our framework should allow multiple devices to plug themselves in.
I had sent you a tutorial PDF earlier in this holiday which somehow addressed this problem.
Of course redesigning involves much work, so I'm wondering whether it's essential to do so.
We'd better work out the document right now. I opened a gitbook repository so that we can work on the forked version of xv6 together.
This redesigning can be done later.
Agree.
I've uploaded the device structure header to include/device.h
.
Where's the gitbook stuff?
https://www.gitbook.com/@davidgao/dashboard
contains two book, one as a fork of xv6-book and one as the lab document connect to gitbooks and i'll give you collaborator access
Can't access your book: 403 Forbidden.
Strange...
After looking things up, I have come to an idea:
Any ideas?
Totally agreed.
That's why I intended to reimplement driver framework after dealing with dynamic memory allocation
After trying on MSIM I found my design... awful, as it's not very scalable.
I guess I'll change my framework some time after dynamic memory allocation implementation.