diff options
author | sobomax <sobomax@FreeBSD.org> | 2005-01-26 13:59:46 +0000 |
---|---|---|
committer | sobomax <sobomax@FreeBSD.org> | 2005-01-26 13:59:46 +0000 |
commit | ef410537709bade6c0f73294ab4c6702637c582c (patch) | |
tree | 1977517e0838d86134452dce17f9b9cf695ba1a4 /sys/i386/include | |
parent | 3f0d8e467c82773cd96f4e8a6daed7e6cdf02c2c (diff) | |
download | FreeBSD-src-ef410537709bade6c0f73294ab4c6702637c582c.zip FreeBSD-src-ef410537709bade6c0f73294ab4c6702637c582c.tar.gz |
o Move copyin()/copyout() out of i386_{get,set}_ldt() and
i386_{get,set}_ioperm() and make those APIs visible in the kernel namespace;
o use i386_{get,set}_ldt() and i386_{get,set}_ioperm() instead of sysarch()
in the linuxlator, which allows to kill another two stackgaps.
MFC after: 2 weeks
Diffstat (limited to 'sys/i386/include')
-rw-r--r-- | sys/i386/include/sysarch.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/include/sysarch.h b/sys/i386/include/sysarch.h index b117943..899ebd8 100644 --- a/sys/i386/include/sysarch.h +++ b/sys/i386/include/sysarch.h @@ -88,6 +88,14 @@ int i386_set_watch(int, unsigned int, int, int, struct dbreg *); int i386_clr_watch(int, struct dbreg *); int sysarch(int, void *); __END_DECLS +#else +struct thread; +union descriptor; + +int i386_get_ldt(struct thread *, struct i386_ldt_args *); +int i386_set_ldt(struct thread *, struct i386_ldt_args *, union descriptor *); +int i386_get_ioperm(struct thread *, struct i386_ioperm_args *); +int i386_set_ioperm(struct thread *, struct i386_ioperm_args *); #endif #endif /* !_MACHINE_SYSARCH_H_ */ |