Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F152468799
D22514.id64756.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
415 B
Referenced Files
None
Subscribers
None
D22514.id64756.diff
View Options
Index: sys/amd64/include/counter.h
===================================================================
--- sys/amd64/include/counter.h
+++ sys/amd64/include/counter.h
@@ -82,6 +82,7 @@
counter_u64_add(counter_u64_t c, int64_t inc)
{
+ KASSERT(IS_BSP() || c != EARLY_COUNTER, ("EARLY_COUNTER used on AP"));
__asm __volatile("addq\t%1,%%gs:(%0)"
:
: "r" ((char *)c - (char *)&__pcpu[0]), "ri" (inc)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 16, 3:56 AM (5 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31576669
Default Alt Text
D22514.id64756.diff (415 B)
Attached To
Mode
D22514: amd64: assert that EARLY_COUNTER does not corrupt memory
Attached
Detach File
Event Timeline
Log In to Comment