Page MenuHomeFreeBSD

D32581.1785249933.diff
No OneTemporary

Size
582 B
Referenced Files
None
Subscribers
None

D32581.1785249933.diff

Index: sys/i386/include/proc.h
===================================================================
--- sys/i386/include/proc.h
+++ sys/i386/include/proc.h
@@ -71,10 +71,12 @@
#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; \
+ (total) = (vm_offset_t)get_pcb_td(td) - td->td_kstack; \
(used) = (char *)td->td_kstack + \
td->td_kstack_pages * PAGE_SIZE - \
(char *)&td; \

File Metadata

Mime Type
text/plain
Expires
Tue, Jul 28, 2:45 PM (16 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29292210
Default Alt Text
D32581.1785249933.diff (582 B)

Event Timeline