#ifndef _GET_REGS_H
#define _GET_REGS_H

#ifndef _REG_H
#include <regs.h>
#endif

void *_get_static(void);
void *_change_static(void *);

#if !defined(_set_static)
#define _set_static(x) (void)_change_static(x)
#endif


#if _PROC_HAS_CP

	void* _get_const(void);
	void* _change_const(void*);

	#define COMMA_CP				, cp
	#define COMMA_VOID_STAR_CP		, void *cp
	#define VOID_STAR_CP_SEMICOLON	void *cp;
	#define COMMA_NULL				, NULL

	#if !defined(_set_const)
	#define _set_const(x) (void)_change_const(x)
	#endif

#else

	#if !defined(_REG_H)
		/* Note _get_const and _change_const are also defined in MACHINE/reg.h */
		#define _get_const()		((void*)0)
		#define _change_const(x)	((void*)0)
	#endif

	#define COMMA_CP
	#define COMMA_VOID_STAR_CP
	#define VOID_STAR_CP_SEMICOLON
	#define COMMA_NULL

	#define _set_const(x)

#endif  /* !_PROC_HAS_CP */

#endif	/* _GET_REGS_H */
