Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108047666
D32581.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
665 B
Referenced Files
None
Subscribers
None
D32581.diff
View Options
diff --git a/sys/i386/include/proc.h b/sys/i386/include/proc.h
--- a/sys/i386/include/proc.h
+++ b/sys/i386/include/proc.h
@@ -71,13 +71,13 @@
#ifdef _KERNEL
+#include <machine/md_var.h>
+
/* 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; \
- (used) = (char *)td->td_kstack + \
- td->td_kstack_pages * PAGE_SIZE - \
- (char *)&td; \
+ (total) = (vm_offset_t)get_pcb_td(td) - td->td_kstack; \
+ (used) = (vm_offset_t)get_pcb_td(td) - (vm_offset_t)&td; \
} while (0)
void set_user_ldt(struct mdproc *);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 21, 9:32 PM (20 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16020758
Default Alt Text
D32581.diff (665 B)
Attached To
Mode
D32581: i386: take pcb into account in GET_STACK_USAGE
Attached
Detach File
Event Timeline
Log In to Comment