aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2002-04-26 19:33:20 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2002-04-26 19:33:20 +0000
commit6e0be618ed9243f6537828970174c634206f9c50 (patch)
treeed603011ca9fa48ca1a24f5853c1679cbca0398a
parente477773f011a4596b03cd952f3bbd2d2189ffa5e (diff)
downloadsrc-6e0be618ed9243f6537828970174c634206f9c50.tar.gz
src-6e0be618ed9243f6537828970174c634206f9c50.zip
MCA specific code has been moved to a seperate file. It is expected
to grow enough to be in the way here.
Notes
Notes: svn path=/head/; revision=95518
-rw-r--r--sys/ia64/ia64/sal.c41
1 files changed, 0 insertions, 41 deletions
diff --git a/sys/ia64/ia64/sal.c b/sys/ia64/ia64/sal.c
index 53f7aeabe88a..fc051d5da58b 100644
--- a/sys/ia64/ia64/sal.c
+++ b/sys/ia64/ia64/sal.c
@@ -40,17 +40,12 @@ struct ia64_fdesc {
u_int64_t gp;
};
-int64_t sal_info_size[SAL_INFO_TYPES];
-vm_offset_t sal_info_block;
-
static struct ia64_fdesc sal_fdesc;
static sal_entry_t fake_sal;
extern u_int64_t ia64_pal_entry;
sal_entry_t *ia64_sal_entry = fake_sal;
-static void ia64_sal_init_state(void *p);
-
void os_boot_rendez(void);
static struct ia64_sal_result
@@ -127,39 +122,3 @@ ia64_sal_init(struct sal_system_table *saltab)
p += sizes[*p];
}
}
-
-static void
-ia64_sal_init_state(void *p)
-{
- struct ia64_sal_result result;
- uint64_t max_size;
- int i;
-
- /*
- * Get the sizes of the state information we can get from SAL and
- * allocate a common block (forgive me my Fortran) for use by
- * support functions. We create a region 7 address to make it
- * easy on the OS_MCA or OS_INIT handlers.
- */
- max_size = 0;
- for (i = 0; i <= SAL_INFO_TYPES; i++) {
- result = ia64_sal_entry(SAL_GET_STATE_INFO_SIZE, i, 0, 0, 0,
- 0, 0, 0);
- if (result.sal_status == 0) {
- sal_info_size[i] = result.sal_result[0];
- if (sal_info_size[i] > max_size)
- max_size = sal_info_size[i];
- } else
- sal_info_size[i] = -1;
- }
- max_size = round_page(max_size);
- p = contigmalloc(max_size, M_TEMP, M_WAITOK, 0ul, 256*1024*1024 - 1,
- PAGE_SIZE, 256*1024*1024);
- sal_info_block = IA64_PHYS_TO_RR7(ia64_tpa((u_int64_t)p));
-
- if (bootverbose)
- printf("SAL: allocated %d bytes for state information\n",
- max_size);
-}
-
-SYSINIT(sal_mca, SI_SUB_CPU, SI_ORDER_MIDDLE, ia64_sal_init_state, NULL);