Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189398
b: refs/heads/master
c: b7b7fa4
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Mahoney authored and Frederic Weisbecker committed Mar 30, 2010
1 parent 7c0dfea commit ccd110f
Show file tree
Hide file tree
Showing 129 changed files with 2,362 additions and 3,920 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5193d7a7f500cfbbfc0de221e808208199723521
refs/heads/master: b7b7fa43103a9fb30dbcc60cbd5161fdfc25f904
3 changes: 3 additions & 0 deletions trunk/arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ config LOCKDEP_SUPPORT
config HAVE_LATENCYTOP_SUPPORT
def_bool y

config PCI
def_bool n

config DTC
def_bool y

Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/microblaze/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ define archhelp
echo '* linux.bin - Create raw binary'
echo ' linux.bin.gz - Create compressed raw binary'
echo ' simpleImage.<dt> - ELF image with $(arch)/boot/dts/<dt>.dts linked in'
echo ' - stripped elf with fdt blob'
echo ' - stripped elf with fdt blob
echo ' simpleImage.<dt>.unstrip - full ELF image with fdt blob'
echo ' *_defconfig - Select default config from arch/microblaze/configs'
echo ''
Expand All @@ -94,5 +94,3 @@ define archhelp
echo ' name of a dts file from the arch/microblaze/boot/dts/ directory'
echo ' (minus the .dts extension).'
endef

MRPROPER_FILES += $(boot)/simpleImage.*
6 changes: 5 additions & 1 deletion trunk/arch/microblaze/boot/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $(obj)/system.dtb: $(obj)/$(DTB).dtb
endif

$(obj)/linux.bin: vmlinux FORCE
[ -n $(CONFIG_INITRAMFS_SOURCE) ] && [ ! -e $(CONFIG_INITRAMFS_SOURCE) ] && \
touch $(CONFIG_INITRAMFS_SOURCE) || echo "No CPIO image"
$(call if_changed,objcopy)
$(call if_changed,uimage)
@echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
Expand Down Expand Up @@ -60,4 +62,6 @@ quiet_cmd_dtc = DTC $@
$(obj)/%.dtb: $(dtstree)/%.dts FORCE
$(call if_changed,dtc)

clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
clean-kernel += linux.bin linux.bin.gz simpleImage.*

clean-files += *.dtb simpleImage.*.unstrip
1 change: 1 addition & 0 deletions trunk/arch/microblaze/include/asm/processor.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <asm/ptrace.h>
#include <asm/setup.h>
#include <asm/registers.h>
#include <asm/segment.h>
#include <asm/entry.h>
#include <asm/current.h>

Expand Down
49 changes: 49 additions & 0 deletions trunk/arch/microblaze/include/asm/segment.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
* Copyright (C) 2008-2009 PetaLogix
* Copyright (C) 2006 Atmark Techno, Inc.
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file "COPYING" in the main directory of this archive
* for more details.
*/

#ifndef _ASM_MICROBLAZE_SEGMENT_H
#define _ASM_MICROBLAZE_SEGMENT_H

# ifndef __ASSEMBLY__

typedef struct {
unsigned long seg;
} mm_segment_t;

/*
* On Microblaze the fs value is actually the top of the corresponding
* address space.
*
* The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with
* get_fs() == KERNEL_DS, checking is bypassed.
*
* For historical reasons, these macros are grossly misnamed.
*
* For non-MMU arch like Microblaze, KERNEL_DS and USER_DS is equal.
*/
# define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })

# ifndef CONFIG_MMU
# define KERNEL_DS MAKE_MM_SEG(0)
# define USER_DS KERNEL_DS
# else
# define KERNEL_DS MAKE_MM_SEG(0xFFFFFFFF)
# define USER_DS MAKE_MM_SEG(TASK_SIZE - 1)
# endif

# define get_ds() (KERNEL_DS)
# define get_fs() (current_thread_info()->addr_limit)
# define set_fs(val) (current_thread_info()->addr_limit = (val))

# define segment_eq(a, b) ((a).seg == (b).seg)

# endif /* __ASSEMBLY__ */
#endif /* _ASM_MICROBLAZE_SEGMENT_H */
5 changes: 1 addition & 4 deletions trunk/arch/microblaze/include/asm/thread_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#ifndef __ASSEMBLY__
# include <linux/types.h>
# include <asm/processor.h>
# include <asm/segment.h>

/*
* low level task data that entry.S needs immediate access to
Expand Down Expand Up @@ -59,10 +60,6 @@ struct cpu_context {
__u32 fsr;
};

typedef struct {
unsigned long seg;
} mm_segment_t;

struct thread_info {
struct task_struct *task; /* main task structure */
struct exec_domain *exec_domain; /* execution domain */
Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/microblaze/include/asm/tlbflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,14 @@ extern void _tlbie(unsigned long address);
extern void _tlbia(void);

#define __tlbia() { preempt_disable(); _tlbia(); preempt_enable(); }
#define __tlbie(x) { _tlbie(x); }

static inline void local_flush_tlb_all(void)
{ __tlbia(); }
static inline void local_flush_tlb_mm(struct mm_struct *mm)
{ __tlbia(); }
static inline void local_flush_tlb_page(struct vm_area_struct *vma,
unsigned long vmaddr)
{ __tlbie(vmaddr); }
{ _tlbie(vmaddr); }
static inline void local_flush_tlb_range(struct vm_area_struct *vma,
unsigned long start, unsigned long end)
{ __tlbia(); }
Expand Down
Loading

0 comments on commit ccd110f

Please sign in to comment.