diff options
Diffstat (limited to 'arch/arc/include')
| -rw-r--r-- | arch/arc/include/asm/pgtable.h | 18 | ||||
| -rw-r--r-- | arch/arc/include/asm/processor.h | 3 | ||||
| -rw-r--r-- | arch/arc/include/asm/serial.h | 23 | ||||
| -rw-r--r-- | arch/arc/include/asm/thread_info.h | 4 | 
4 files changed, 9 insertions, 39 deletions
| diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h index 6b0b7f7ef783..9615fe1701c6 100644 --- a/arch/arc/include/asm/pgtable.h +++ b/arch/arc/include/asm/pgtable.h @@ -61,7 +61,6 @@  #define _PAGE_WRITE         (1<<4)	/* Page has user write perm (H) */  #define _PAGE_READ          (1<<5)	/* Page has user read perm (H) */  #define _PAGE_MODIFIED      (1<<6)	/* Page modified (dirty) (S) */ -#define _PAGE_FILE          (1<<7)	/* page cache/ swap (S) */  #define _PAGE_GLOBAL        (1<<8)	/* Page is global (H) */  #define _PAGE_PRESENT       (1<<10)	/* TLB entry is valid (H) */ @@ -73,7 +72,6 @@  #define _PAGE_READ          (1<<3)	/* Page has user read perm (H) */  #define _PAGE_ACCESSED      (1<<4)	/* Page is accessed (S) */  #define _PAGE_MODIFIED      (1<<5)	/* Page modified (dirty) (S) */ -#define _PAGE_FILE          (1<<6)	/* page cache/ swap (S) */  #define _PAGE_GLOBAL        (1<<8)	/* Page is global (H) */  #define _PAGE_PRESENT       (1<<9)	/* TLB entry is valid (H) */  #define _PAGE_SHARED_CODE   (1<<11)	/* Shared Code page with cmn vaddr @@ -213,7 +211,7 @@   * No special requirements for lowest virtual address we permit any user space   * mapping to be mapped at.   */ -#define FIRST_USER_ADDRESS      0 +#define FIRST_USER_ADDRESS      0UL  /**************************************************************** @@ -259,7 +257,8 @@ static inline void pmd_set(pmd_t *pmdp, pte_t *ptep)  #define pmd_clear(xp)			do { pmd_val(*(xp)) = 0; } while (0)  #define pte_page(x) (mem_map + \ -		(unsigned long)(((pte_val(x) - PAGE_OFFSET) >> PAGE_SHIFT))) +		(unsigned long)(((pte_val(x) - CONFIG_LINUX_LINK_BASE) >> \ +				PAGE_SHIFT)))  #define mk_pte(page, pgprot)						\  ({									\ @@ -268,15 +267,6 @@ static inline void pmd_set(pmd_t *pmdp, pte_t *ptep)  	pte;								\  }) -/* TBD: Non linear mapping stuff */ -static inline int pte_file(pte_t pte) -{ -	return pte_val(pte) & _PAGE_FILE; -} - -#define PTE_FILE_MAX_BITS	30 -#define pgoff_to_pte(x)         __pte(x) -#define pte_to_pgoff(x)		(pte_val(x) >> 2)  #define pte_pfn(pte)		(pte_val(pte) >> PAGE_SHIFT)  #define pfn_pte(pfn, prot)	(__pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)))  #define __pte_index(addr)	(((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1)) @@ -364,7 +354,7 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,  /* Encode swap {type,off} tuple into PTE   * We reserve 13 bits for 5-bit @type, keeping bits 12-5 zero, ensuring that - * both PAGE_FILE and PAGE_PRESENT are zero in a PTE holding swap "identifier" + * PAGE_PRESENT is zero in a PTE holding swap "identifier"   */  #define __swp_entry(type, off)	((swp_entry_t) { \  					((type) & 0x1f) | ((off) << 13) }) diff --git a/arch/arc/include/asm/processor.h b/arch/arc/include/asm/processor.h index 210fe97464c3..4e547296831d 100644 --- a/arch/arc/include/asm/processor.h +++ b/arch/arc/include/asm/processor.h @@ -56,9 +56,6 @@ unsigned long thread_saved_pc(struct task_struct *t);  /* Free all resources held by a thread */  #define release_thread(thread) do { } while (0) -/* Prepare to copy thread state - unlazy all lazy status */ -#define prepare_to_copy(tsk)    do { } while (0) -  /*   * A lot of busy-wait loops in SMP are based off of non-volatile data otherwise   * get optimised away by gcc diff --git a/arch/arc/include/asm/serial.h b/arch/arc/include/asm/serial.h index 602b0970a764..744a6ae15754 100644 --- a/arch/arc/include/asm/serial.h +++ b/arch/arc/include/asm/serial.h @@ -10,26 +10,13 @@  #define _ASM_ARC_SERIAL_H  /* - * early-8250 requires BASE_BAUD to be defined and includes this header. - * We put in a typical value: - * 	(core clk / 16) - i.e. UART samples 16 times per sec. - * Athough in multi-platform-image this might not work, specially if the - * clk driving the UART is different. - * We can't use DeviceTree as this is typically for early serial. + * early 8250 (now earlycon) requires BASE_BAUD to be defined in this header. + * However to still determine it dynamically (for multi-platform images) + * we do this in a helper by parsing the FDT early   */ -#include <asm/clk.h> +extern unsigned int __init arc_early_base_baud(void); -#define BASE_BAUD	(arc_get_core_freq() / 16) - -/* - * This is definitely going to break early 8250 consoles on multi-platform - * images but hey, it won't add any code complexity for a debug feature of - * one broken driver. - */ -#ifdef CONFIG_ARC_PLAT_TB10X -#undef BASE_BAUD -#define BASE_BAUD	(arc_get_core_freq() / 16 / 3) -#endif +#define BASE_BAUD	arc_early_base_baud()  #endif /* _ASM_ARC_SERIAL_H */ diff --git a/arch/arc/include/asm/thread_info.h b/arch/arc/include/asm/thread_info.h index 02bc5ec0fb2e..1163a1838ac1 100644 --- a/arch/arc/include/asm/thread_info.h +++ b/arch/arc/include/asm/thread_info.h @@ -46,7 +46,6 @@ struct thread_info {  	struct exec_domain *exec_domain;/* execution domain */  	__u32 cpu;			/* current CPU */  	unsigned long thr_ptr;		/* TLS ptr */ -	struct restart_block restart_block;  };  /* @@ -62,9 +61,6 @@ struct thread_info {  	.cpu        = 0,			\  	.preempt_count  = INIT_PREEMPT_COUNT,	\  	.addr_limit = KERNEL_DS,		\ -	.restart_block  = {			\ -		.fn = do_no_restart_syscall,	\ -	},					\  }  #define init_thread_info    (init_thread_union.thread_info) |