2011-08-19 03:02:59 +08:00
|
|
|
#ifndef __UM_PROCESSOR_H
|
|
|
|
#define __UM_PROCESSOR_H
|
|
|
|
|
|
|
|
/* include faultinfo structure */
|
|
|
|
#include <sysdep/faultinfo.h>
|
|
|
|
|
|
|
|
#ifdef CONFIG_X86_32
|
|
|
|
# include "processor_32.h"
|
|
|
|
#else
|
|
|
|
# include "processor_64.h"
|
|
|
|
#endif
|
|
|
|
|
2011-08-19 03:10:19 +08:00
|
|
|
#define ARCH_IS_STACKGROW(address) \
|
|
|
|
(address + 65536 + 32 * sizeof(unsigned long) >= UPT_SP(¤t->thread.regs.regs))
|
|
|
|
|
2011-08-19 03:02:59 +08:00
|
|
|
#include <asm/processor-generic.h>
|
|
|
|
|
|
|
|
#endif
|