diff options
author | marcel <marcel@FreeBSD.org> | 2002-04-26 19:33:20 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2002-04-26 19:33:20 +0000 |
commit | 4a609b30589ec846482c76dcd505ee20f91d7596 (patch) | |
tree | ed603011ca9fa48ca1a24f5853c1679cbca0398a /sys/ia64 | |
parent | af449c5ecc4fb3ee132f6d1be981af7f88cdb282 (diff) | |
download | FreeBSD-src-4a609b30589ec846482c76dcd505ee20f91d7596.zip FreeBSD-src-4a609b30589ec846482c76dcd505ee20f91d7596.tar.gz |
MCA specific code has been moved to a seperate file. It is expected
to grow enough to be in the way here.
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/sal.c | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/sys/ia64/ia64/sal.c b/sys/ia64/ia64/sal.c index 53f7aea..fc051d5 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); |