summaryrefslogtreecommitdiffstats
path: root/sys/compat/ia32/ia32_sysvec.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-08-22 23:19:02 +0000
committerpeter <peter@FreeBSD.org>2003-08-22 23:19:02 +0000
commitaecc3981a1169fa3676a286b94b650a46ddfa3c5 (patch)
tree1617ebd9e194aad856bf4d2bcd011ca61227006c /sys/compat/ia32/ia32_sysvec.c
parente2c08ea16beeb14a7176c4f900824e65a97a90db (diff)
downloadFreeBSD-src-aecc3981a1169fa3676a286b94b650a46ddfa3c5.zip
FreeBSD-src-aecc3981a1169fa3676a286b94b650a46ddfa3c5.tar.gz
Initial sweep at dividing up the generic 32bit-on-64bit kernel support
from the ia32 specific stuff. Some of this still needs to move to the MI freebsd32 area, and some needs to move to the MD area. This is still work-in-progress.
Diffstat (limited to 'sys/compat/ia32/ia32_sysvec.c')
-rw-r--r--sys/compat/ia32/ia32_sysvec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/compat/ia32/ia32_sysvec.c b/sys/compat/ia32/ia32_sysvec.c
index cfd7d35..a8426c9 100644
--- a/sys/compat/ia32/ia32_sysvec.c
+++ b/sys/compat/ia32/ia32_sysvec.c
@@ -79,11 +79,11 @@ static register_t *ia32_copyout_strings(struct image_params *imgp);
static void ia32_setregs(struct thread *td, u_long entry, u_long stack,
u_long ps_strings);
-extern struct sysent ia32_sysent[];
+extern struct sysent freebsd32_sysent[];
struct sysentvec ia32_freebsd_sysvec = {
SYS_MAXSYSCALL,
- ia32_sysent,
+ freebsd32_sysent,
0,
0,
NULL,
@@ -124,8 +124,7 @@ SYSINIT(ia32, SI_SUB_EXEC, SI_ORDER_ANY,
(sysinit_cfunc_t) elf32_insert_brand_entry,
&ia32_brand_info);
-extern int _ucode32sel, _udatasel;
-
+/* XXX may be freebsd32 MI */
static register_t *
ia32_copyout_strings(struct image_params *imgp)
{
@@ -232,7 +231,9 @@ ia32_copyout_strings(struct image_params *imgp)
/*
* Clear registers on exec
+ * XXX backend MD
*/
+extern int _ucode32sel, _udatasel;
void
ia32_setregs(td, entry, stack, ps_strings)
struct thread *td;
OpenPOWER on IntegriCloud