Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176060741
D15527.id42882.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D15527.id42882.diff
View Options
Index: head/sys/arm64/include/proc.h
===================================================================
--- head/sys/arm64/include/proc.h
+++ head/sys/arm64/include/proc.h
@@ -54,4 +54,18 @@
int narg;
};
+#ifdef _KERNEL
+
+#include <machine/pcb.h>
+
+#define GET_STACK_USAGE(total, used) do { \
+ struct thread *td = curthread; \
+ (total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
+ (used) = (char *)td->td_kstack + \
+ td->td_kstack_pages * PAGE_SIZE - \
+ (char *)&td; \
+} while (0)
+
+#endif
+
#endif /* !_MACHINE_PROC_H_ */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 16, 5:58 PM (11 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40908386
Default Alt Text
D15527.id42882.diff (579 B)
Attached To
Mode
D15527: Add GET_STACK_USAGE() for arm64.
Attached
Detach File
Event Timeline
Log In to Comment