summaryrefslogtreecommitdiff
path: root/usr/src/uts/sun4/vm/vm_dep.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sun4/vm/vm_dep.c')
-rw-r--r--usr/src/uts/sun4/vm/vm_dep.c81
1 files changed, 3 insertions, 78 deletions
diff --git a/usr/src/uts/sun4/vm/vm_dep.c b/usr/src/uts/sun4/vm/vm_dep.c
index 835d321c1d..1243162085 100644
--- a/usr/src/uts/sun4/vm/vm_dep.c
+++ b/usr/src/uts/sun4/vm/vm_dep.c
@@ -22,6 +22,7 @@
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
* Copyright 2016 Joyent, Inc.
+ * Copyright 2022 Garrett D'Amore <garrett@damore.org>
*/
/*
@@ -426,82 +427,6 @@ chkaout(struct exdata *exp)
return (ENOEXEC);
}
-/*
- * The following functions return information about an a.out
- * which is used when a program is executed.
- */
-
-/*
- * Return the load memory address for the data segment.
- */
-caddr_t
-getdmem(struct exec *exp)
-{
- /*
- * XXX - Sparc Reference Hack approaching
- * Remember that we are loading
- * 8k executables into a 4k machine
- * DATA_ALIGN == 2 * PAGESIZE
- */
- if (exp->a_text)
- return ((caddr_t)(roundup(USRTEXT + exp->a_text, DATA_ALIGN)));
- else
- return ((caddr_t)USRTEXT);
-}
-
-/*
- * Return the starting disk address for the data segment.
- */
-ulong_t
-getdfile(struct exec *exp)
-{
- if (exp->a_magic == ZMAGIC)
- return (exp->a_text);
- else
- return (sizeof (struct exec) + exp->a_text);
-}
-
-/*
- * Return the load memory address for the text segment.
- */
-
-/*ARGSUSED*/
-caddr_t
-gettmem(struct exec *exp)
-{
- return ((caddr_t)USRTEXT);
-}
-
-/*
- * Return the file byte offset for the text segment.
- */
-uint_t
-gettfile(struct exec *exp)
-{
- if (exp->a_magic == ZMAGIC)
- return (0);
- else
- return (sizeof (struct exec));
-}
-
-void
-getexinfo(
- struct exdata *edp_in,
- struct exdata *edp_out,
- int *pagetext,
- int *pagedata)
-{
- *edp_out = *edp_in; /* structure copy */
-
- if ((edp_in->ux_mag == ZMAGIC) &&
- ((edp_in->vp->v_flag & VNOMAP) == 0)) {
- *pagetext = 1;
- *pagedata = 1;
- } else {
- *pagetext = 0;
- *pagedata = 0;
- }
-}
/*
* Return non 0 value if the address may cause a VAC alias with KPM mappings.
@@ -747,7 +672,7 @@ map_pgszcvec(caddr_t addr, size_t size, uintptr_t off, int flags, int type,
*
* page_counters[page_size][region_size]
*
- * page_size: TTE size code of pages on page_size freelist.
+ * page_size: TTE size code of pages on page_size freelist.
*
* region_size: TTE size code of a candidate larger page made up
* made up of contiguous free page_size pages.
@@ -757,7 +682,7 @@ map_pgszcvec(caddr_t addr, size_t size, uintptr_t off, int flags, int type,
* made up of page_size free pages can be coalesced into a
* regsion_size page. Yuck! Lets try an example:
*
- * page_counters[1][3] is the table element used for identifying
+ * page_counters[1][3] is the table element used for identifying
* candidate 4M pages from contiguous pages off the 64K free list.
* Each index in the page_counters[1][3].array spans 4M. Its the
* number of free 512K size (regsion_size - 1) groups of contiguous