md.c

来自「linux下建立JAVA虚拟机的源码KAFFE」· C语言 代码 · 共 41 行

C
41
字号
/* * 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 + =
减小字号Ctrl + -
显示快捷键?