old/sdb/display.c
/* initialize frame pointers to top of call stack */
/*  MACHINE DEPENDENT */
initialize frame pointers to top of call stack
MACHINE DEPENDENT
initialize frame pointers to top of call stack MACHINE DEPENDENT
struct proct *
initframe() {
	argp = *(ADDR *) (((ADDR) &u) + AP);
	frame = *(ADDR *) (((ADDR) &u) + FP);
	callpc = *(ADDR *) (((ADDR) &u) + PC);
	if ((frame == 0) || (frame & 0xf0000000 != 0x70000000))
		return(badproc);
	return(adrtoprocp(callpc++));  
}
struct proct * initframe ( ) { argp = * ( ADDR * ) ( ( ( ADDR ) & u ) + AP ) ; frame = * ( ADDR * ) ( ( ( ADDR ) & u ) + FP ) ; callpc = * ( ADDR * ) ( ( ( ADDR ) & u ) + PC ) ; if ( ( frame == 0 ) || ( frame & 0xf0000000 != 0x70000000 ) ) return ( badproc ) ; return ( adrtoprocp ( callpc ++ ) ) ; }
initialize frame pointers to top of call stack
MACHINE DEPENDENT
initialize frame pointers to top of call stack MACHINE DEPENDENT
/* ++ because UNIX backs up instrs */