📄 md.c
字号:
/* * sparc/linux/md.c * Linux sparc specific functions. * * Copyright (c) 1996, 1997 * Transvirtual Technologies, Inc. All rights reserved. * * See the file "license.terms" for information on usage and redistribution * of this file. */#include "config.h"#include <malloc.h>voidinit_md(void){#if defined(HAVE_MALLOPT) mallopt(M_MMAP_MAX, 0);#endif}#include "systems/unix-jthreads/jthread.h"#define GET_SP(E) (((void**)(E))[SP_OFFSET])extern int __speciallongjmp(void*);asm(" \n""__speciallongjmp: \n"" mov %o0,%g1 \n"" ta 3 \n"" ld [%g1],%sp \n"" ld [%g1+4],%fp \n"" ld [%g1+8],%g1 \n"" jmp %g1+8 \n"" mov 1,%o0 \n");voidsparcLinuxContextSwitch(jthread* from, jthread* to){ if (setjmp(from->env) == 0) { from->restorePoint = GET_SP(from->env); __speciallongjmp(to->env); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -