Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177651661
D22514.1794949394.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
430 B
Referenced Files
None
Subscribers
None
D22514.1794949394.diff
View Options
Index: head/sys/amd64/include/counter.h
===================================================================
--- head/sys/amd64/include/counter.h
+++ head/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
Tue, Nov 17, 9:03 PM (7 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41807757
Default Alt Text
D22514.1794949394.diff (430 B)
Attached To
Mode
D22514: amd64: assert that EARLY_COUNTER does not corrupt memory
Attached
Detach File
Event Timeline