-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge git://git.linux-xtensa.org/kernel/xtensa-feed
* git://git.linux-xtensa.org/kernel/xtensa-feed: [patch 1/2] Xtensa: enable arbitary tty speed setting ioctls [patch 2/2] xtensa console.c: remove duplicate #include [XTENSA] Add support for cache-aliasing [XTENSA] Add kernel module support [XTENSA] Add support for executable/non-executable feature in the mmu [XTENSA] Use the generic version of get_order [XTENSA] Initialize semaphore_wake_lock [XTENSA] Add typecast macro for constants [XTENSA] Fix timer instabilities. [XTENSA] Fix fadvise64_64 [XTENSA] Remove extraneous include statement [XTENSA] Move string-io functions to io.c from pci.c [XTENSA] Move pre-initialized structures to init_task.c [XTENSA] Add freestanding option to CFLAGS [XTENSA] Add getpgrp system-call to unistd.h [XTENSA] add missing system calls [XTENSA] fix wrong usage of __init and __initdata in traps.c
- Loading branch information
Showing
36 changed files
with
1,515 additions
and
704 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* arch/xtensa/kernel/init_task.c | ||
* | ||
* Xtensa Processor version. | ||
* | ||
* 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. | ||
* | ||
* Copyright (C) 2007 Tensilica Inc. | ||
* | ||
* Chris Zankel <chris@zankel.net> | ||
*/ | ||
|
||
#include <linux/mm.h> | ||
#include <linux/fs.h> | ||
#include <linux/init.h> | ||
#include <linux/init_task.h> | ||
#include <linux/module.h> | ||
#include <linux/mqueue.h> | ||
|
||
#include <asm/uaccess.h> | ||
|
||
static struct fs_struct init_fs = INIT_FS; | ||
static struct files_struct init_files = INIT_FILES; | ||
static struct signal_struct init_signals = INIT_SIGNALS(init_signals); | ||
static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand); | ||
struct mm_struct init_mm = INIT_MM(init_mm); | ||
|
||
EXPORT_SYMBOL(init_mm); | ||
|
||
union thread_union init_thread_union | ||
__attribute__((__section__(".data.init_task"))) = | ||
{ INIT_THREAD_INFO(init_task) }; | ||
|
||
struct task_struct init_task = INIT_TASK(init_task); | ||
|
||
EXPORT_SYMBOL(init_task); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
/* | ||
* arch/xtensa/io.c | ||
* | ||
* IO primitives | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
* | ||
* Copied from sparc. | ||
* | ||
* Chris Zankel <chris@zankel.net> | ||
* | ||
*/ | ||
|
||
#include <asm/io.h> | ||
#include <asm/byteorder.h> | ||
|
||
void outsb(unsigned long addr, const void *src, unsigned long count) { | ||
while (count) { | ||
count -= 1; | ||
writeb(*(const char *)src, addr); | ||
src += 1; | ||
addr += 1; | ||
} | ||
} | ||
|
||
void outsw(unsigned long addr, const void *src, unsigned long count) { | ||
while (count) { | ||
count -= 2; | ||
writew(*(const short *)src, addr); | ||
src += 2; | ||
addr += 2; | ||
} | ||
} | ||
|
||
void outsl(unsigned long addr, const void *src, unsigned long count) { | ||
while (count) { | ||
count -= 4; | ||
writel(*(const long *)src, addr); | ||
src += 4; | ||
addr += 4; | ||
} | ||
} | ||
|
||
void insb(unsigned long addr, void *dst, unsigned long count) { | ||
while (count) { | ||
count -= 1; | ||
*(unsigned char *)dst = readb(addr); | ||
dst += 1; | ||
addr += 1; | ||
} | ||
} | ||
|
||
void insw(unsigned long addr, void *dst, unsigned long count) { | ||
while (count) { | ||
count -= 2; | ||
*(unsigned short *)dst = readw(addr); | ||
dst += 2; | ||
addr += 2; | ||
} | ||
} | ||
|
||
void insl(unsigned long addr, void *dst, unsigned long count) { | ||
while (count) { | ||
count -= 4; | ||
/* | ||
* XXX I am sure we are in for an unaligned trap here. | ||
*/ | ||
*(unsigned long *)dst = readl(addr); | ||
dst += 4; | ||
addr += 4; | ||
} | ||
} |
Oops, something went wrong.