]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-h8300/processor.h
net: convert BUG_TRAP to generic WARN_ON
[linux-2.6-omap-h63xx.git] / include / asm-h8300 / processor.h
index 99b664aa20837e3f1d674800bc9377932267802e..69e8a34eb6d589a4fd2f2e8bc950910a8549290f 100644 (file)
@@ -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)