Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166743740
D32581.id97172.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
D32581.id97172.diff
View Options
Index: sys/i386/include/proc.h
===================================================================
--- sys/i386/include/proc.h
+++ sys/i386/include/proc.h
@@ -74,7 +74,7 @@
/* Get the current kernel thread stack usage. */
#define GET_STACK_USAGE(total, used) do { \
struct thread *td = curthread; \
- (total) = td->td_kstack_pages * PAGE_SIZE; \
+ (total) = td->td_kstack_pages * PAGE_SIZE - sizeof(struct pcb); \
(used) = (char *)td->td_kstack + \
td->td_kstack_pages * PAGE_SIZE - \
(char *)&td; \
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Aug 17, 2:03 AM (13 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36846475
Default Alt Text
D32581.id97172.diff (537 B)
Attached To
Mode
D32581: i386: take pcb into account in GET_STACK_USAGE
Attached
Detach File
Event Timeline
Log In to Comment