Provide LWP_PC

This commit is contained in:
martin 2011-01-24 10:04:28 +00:00
parent 4fec18bfb3
commit ea5ef30f5a
2 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.90 2011/01/13 05:20:27 mrg Exp $ */
/* $NetBSD: cpu.h,v 1.91 2011/01/24 10:05:22 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -151,6 +151,9 @@ extern int cpu_arch;
/* Number of CPUs in the system */
extern int sparc_ncpus;
/* Provide %pc of a lwp */
#define LWP_PC(l) ((l)->l_md.md_tf->tf_pc)
/*
* Interrupt handler chains. Interrupt handlers should return 0 for
* ``not me'' or 1 (``I took care of it''). intr_establish() inserts a

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu.h,v 1.93 2010/12/26 12:06:57 martin Exp $ */
/* $NetBSD: cpu.h,v 1.94 2011/01/24 10:04:28 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@ -264,6 +264,9 @@ void sparc64_generic_xcall(struct cpu_info*, ipi_c_call_func_t, void*);
#endif
/* Provide %pc of a lwp */
#define LWP_PC(l) ((l)->l_md.md_tf->tf_pc)
/*
* Arguments to hardclock, softclock and gatherstats encapsulate the
* previous machine state in an opaque clockframe. The ipl is here