Patch virtio net#194
Merged
fslongjin merged 10 commits intoDragonOS-Community:masterfrom Mar 11, 2023
Merged
Conversation
fslongjin
reviewed
Mar 11, 2023
| }; | ||
| unsafe { | ||
| let pa = (memory_management_struct.pages_struct as usize | ||
| + (paddr >> PAGE_2M_SHIFT) * 56) as *mut Page; |
Member
There was a problem hiding this comment.
这个大小不要写死哈哈,可以写成mem::sizeof()的形式,这样会好一些。
kernel/src/main.c
Outdated
| apic_timer_init(); | ||
| io_mfence(); | ||
|
|
||
| c_virtio_probe(); |
Member
There was a problem hiding this comment.
由于当前进程是pid=0的IDLE进程,在apic_timer初始化之后,当前进程将会被调度走(直到没有其他任何进程要执行),因此请把这个代码改写到https://opengrok.ringotek.cn/xref/DragonOS/kernel/src/process/process.c?r=f6ba114b#495
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PCI功能增加与virtio-net设备驱动支持