X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=include%2Fasm-h8300%2Fprocessor.h;h=69e8a34eb6d589a4fd2f2e8bc950910a8549290f;hb=fcff474ea5cb17ff015aa40e92ed86fede41f1e2;hp=99b664aa20837e3f1d674800bc9377932267802e;hpb=20f99dcf417a28089ef6c877ae97f5dec2eab435;p=linux-2.6 diff --git a/include/asm-h8300/processor.h b/include/asm-h8300/processor.h index 99b664aa20..69e8a34eb6 100644 --- a/include/asm-h8300/processor.h +++ b/include/asm-h8300/processor.h @@ -39,6 +39,11 @@ static inline void wrusp(unsigned long usp) { */ #define TASK_SIZE (0xFFFFFFFFUL) +#ifdef __KERNEL__ +#define STACK_TOP TASK_SIZE +#define STACK_TOP_MAX STACK_TOP +#endif + /* * This decides where the kernel will search for a free chunk of vm * space during mmap's. We won't be using it @@ -78,7 +83,7 @@ struct thread_struct { do { \ set_fs(USER_DS); /* reads from user space */ \ (_regs)->pc = (_pc); \ - (_regs)->ccr &= 0x00; /* clear kernel flag */ \ + (_regs)->ccr = 0x00; /* clear all flags */ \ (_regs)->er5 = current->mm->start_data; /* GOT base */ \ wrusp((unsigned long)(_usp) - sizeof(unsigned long)*3); \ } while(0)