⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 md.c

📁 linux下建立JAVA虚拟机的源码KAFFE
💻 C
字号:
/* * ia64/freebsd2/md.c * FreeBSD ia64 specific functions. * * Copyright(c) 2004, 2006 The Kaffe.org's developers. * * Some parts are imported from the boehm-gc. * * See the file "license.terms" for information on usage and redistribution  * of this file.  */#include "config.h"#include "config-std.h"#if defined(HAVE_SYS_TYPES_H)#include <sys/types.h>#endif#if defined(HAVE_SYS_SYSCTL_H)#include <sys/sysctl.h>void *mdGetStackEnd(void){    int control_name[2] =      { CTL_KERN, KERN_USRSTACK};    void *stackbase;    size_t len = sizeof(void *);        if (sysctl(control_name, 2, &stackbase, &len, NULL, 0))      {	fprintf(stderr, 		"Kaffe VM has not been able to retrieve the pointer to the stack base\n"		"Aborting...\n");	exit(1);      }   return stackbase;}#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -