hvm: Processor Objects require unique IDs.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-02-16 15:50:02 +00:00
1 parent 938d51e10e
commit 2d420d93a6
1 file changed
+3
+3
View File
@@ -205,8 +205,11 @@ int construct_processor_objects(uint8_t *buf)
for ( i = 0; i < nr_cpus; i++ )
{
memcpy(p, pdat, sizeof(pdat));
/* ProcessorName */
p[5] = hex[(i>>4)&15];
p[6] = hex[(i>>0)&15];
/* ProcessorID */
p[7] = i;
p += sizeof(pdat);
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.