Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
This commit is contained in:
		
				commit
				
					
						33edcf133b
					
				
			
		
					 2974 changed files with 145857 additions and 82592 deletions
				
			
		| 
						 | 
				
			
			@ -20,4 +20,16 @@ struct dev_archdata {
 | 
			
		|||
	int			numa_node;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
static inline void dev_archdata_set_node(struct dev_archdata *ad,
 | 
			
		||||
					 struct device_node *np)
 | 
			
		||||
{
 | 
			
		||||
	ad->prom_node = np;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static inline struct device_node *
 | 
			
		||||
dev_archdata_get_node(const struct dev_archdata *ad)
 | 
			
		||||
{
 | 
			
		||||
	return ad->prom_node;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#endif /* _ASM_SPARC_DEVICE_H */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -62,6 +62,8 @@ struct sparc_stackf {
 | 
			
		|||
 | 
			
		||||
#ifdef __KERNEL__
 | 
			
		||||
 | 
			
		||||
#include <asm/system.h>
 | 
			
		||||
 | 
			
		||||
static inline bool pt_regs_is_syscall(struct pt_regs *regs)
 | 
			
		||||
{
 | 
			
		||||
	return (regs->psr & PSR_SYSCALL);
 | 
			
		||||
| 
						 | 
				
			
			@ -72,6 +74,14 @@ static inline bool pt_regs_clear_syscall(struct pt_regs *regs)
 | 
			
		|||
	return (regs->psr &= ~PSR_SYSCALL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define arch_ptrace_stop_needed(exit_code, info) \
 | 
			
		||||
({	flush_user_windows(); \
 | 
			
		||||
	current_thread_info()->w_saved != 0;	\
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
#define arch_ptrace_stop(exit_code, info) \
 | 
			
		||||
	synchronize_user_stack()
 | 
			
		||||
 | 
			
		||||
#define user_mode(regs) (!((regs)->psr & PSR_PS))
 | 
			
		||||
#define instruction_pointer(regs) ((regs)->pc)
 | 
			
		||||
#define user_stack_pointer(regs) ((regs)->u_regs[UREG_FP])
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -114,6 +114,7 @@ struct sparc_trapf {
 | 
			
		|||
#ifdef __KERNEL__
 | 
			
		||||
 | 
			
		||||
#include <linux/threads.h>
 | 
			
		||||
#include <asm/system.h>
 | 
			
		||||
 | 
			
		||||
static inline int pt_regs_trap_type(struct pt_regs *regs)
 | 
			
		||||
{
 | 
			
		||||
| 
						 | 
				
			
			@ -130,6 +131,14 @@ static inline bool pt_regs_clear_syscall(struct pt_regs *regs)
 | 
			
		|||
	return (regs->tstate &= ~TSTATE_SYSCALL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#define arch_ptrace_stop_needed(exit_code, info) \
 | 
			
		||||
({	flush_user_windows(); \
 | 
			
		||||
	get_thread_wsaved() != 0; \
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
#define arch_ptrace_stop(exit_code, info) \
 | 
			
		||||
	synchronize_user_stack()
 | 
			
		||||
 | 
			
		||||
struct global_reg_snapshot {
 | 
			
		||||
	unsigned long		tstate;
 | 
			
		||||
	unsigned long		tpc;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue