Changeset View
Changeset View
Standalone View
Standalone View
sys/amd64/include/proc.h
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | #define GET_STACK_USAGE(total, used) do { \ | ||||
(total) = td->td_kstack_pages * PAGE_SIZE; \ | (total) = td->td_kstack_pages * PAGE_SIZE; \ | ||||
(used) = (char *)td->td_kstack + \ | (used) = (char *)td->td_kstack + \ | ||||
td->td_kstack_pages * PAGE_SIZE - \ | td->td_kstack_pages * PAGE_SIZE - \ | ||||
(char *)&td; \ | (char *)&td; \ | ||||
} while (0) | } while (0) | ||||
struct proc_ldt *user_ldt_alloc(struct proc *, int); | struct proc_ldt *user_ldt_alloc(struct proc *, int); | ||||
void user_ldt_free(struct thread *); | void user_ldt_free(struct thread *); | ||||
void user_ldt_deref(struct proc_ldt *); | |||||
struct sysarch_args; | struct sysarch_args; | ||||
int sysarch_ldt(struct thread *td, struct sysarch_args *uap, int uap_space); | int sysarch_ldt(struct thread *td, struct sysarch_args *uap, int uap_space); | ||||
int amd64_set_ldt_data(struct thread *td, int start, int num, | int amd64_set_ldt_data(struct thread *td, int start, int num, | ||||
struct user_segment_descriptor *descs); | struct user_segment_descriptor *descs); | ||||
extern struct mtx dt_lock; | extern struct mtx dt_lock; | ||||
extern int max_ldt_segment; | extern int max_ldt_segment; | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_MACHINE_PROC_H_ */ | #endif /* !_MACHINE_PROC_H_ */ |