Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149284908
D28862.1789818324.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
472 B
Referenced Files
None
Subscribers
None
D28862.1789818324.diff
View Options
diff --git a/sys/amd64/vmm/amd/amdvi_hw.c b/sys/amd64/vmm/amd/amdvi_hw.c
--- a/sys/amd64/vmm/amd/amdvi_hw.c
+++ b/sys/amd64/vmm/amd/amdvi_hw.c
@@ -515,8 +515,7 @@
printf(" [CMD%d, off:0x%x] opcode= 0x%x 0x%x"
" 0x%x 0x%lx\n", i, off, cmd->opcode,
cmd->word0, cmd->word1, cmd->addr);
- off = (off + sizeof(struct amdvi_cmd)) %
- (softc->cmd_max * sizeof(struct amdvi_cmd));
+ off = MOD_INC(off, sizeof(struct amdvi_cmd), softc->cmd_max);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Sep 19, 11:45 AM (2 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29758683
Default Alt Text
D28862.1789818324.diff (472 B)
Attached To
Mode
D28862: bhyve amd: Small cleanups in amdvi_dump_cmds
Attached
Detach File
Event Timeline
Log In to Comment