Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2d54ff2f
Commit
2d54ff2f
authored
Feb 13, 2002
by
Paul Mackerras
Committed by
Paul Mackerras
Feb 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Further PPC updates - fix thread_saved_pc, make sure init_thread_union
is properly 8kB-aligned.
parent
53cd6170
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
27 deletions
+13
-27
arch/ppc/kernel/head.S
arch/ppc/kernel/head.S
+0
-4
arch/ppc/kernel/head_4xx.S
arch/ppc/kernel/head_4xx.S
+0
-2
arch/ppc/kernel/head_8xx.S
arch/ppc/kernel/head_8xx.S
+0
-4
arch/ppc/kernel/iSeries_head.S
arch/ppc/kernel/iSeries_head.S
+0
-5
arch/ppc/kernel/process.c
arch/ppc/kernel/process.c
+6
-0
arch/ppc/kernel/setup.c
arch/ppc/kernel/setup.c
+0
-7
arch/ppc/vmlinux.lds
arch/ppc/vmlinux.lds
+5
-1
include/asm-ppc/processor.h
include/asm-ppc/processor.h
+2
-4
No files found.
arch/ppc/kernel/head.S
View file @
2d54ff2f
...
@@ -1727,10 +1727,6 @@ m8260_gorom:
...
@@ -1727,10 +1727,6 @@ m8260_gorom:
.
data
.
data
.
globl
sdata
.
globl
sdata
sdata
:
sdata
:
.
globl
init_thread_union
init_thread_union
:
.
space
8192
.
globl
empty_zero_page
.
globl
empty_zero_page
empty_zero_page
:
empty_zero_page
:
.
space
4096
.
space
4096
...
...
arch/ppc/kernel/head_4xx.S
View file @
2d54ff2f
...
@@ -1082,8 +1082,6 @@ _GLOBAL(set_context)
...
@@ -1082,8 +1082,6 @@ _GLOBAL(set_context)
*/
*/
.
data
.
data
_GLOBAL
(
sdata
)
_GLOBAL
(
sdata
)
_GLOBAL
(
init_thread_union
)
.
space
8192
_GLOBAL
(
empty_zero_page
)
_GLOBAL
(
empty_zero_page
)
.
space
4096
.
space
4096
_GLOBAL
(
swapper_pg_dir
)
_GLOBAL
(
swapper_pg_dir
)
...
...
arch/ppc/kernel/head_8xx.S
View file @
2d54ff2f
...
@@ -971,10 +971,6 @@ set_dec_cpu6:
...
@@ -971,10 +971,6 @@ set_dec_cpu6:
.
data
.
data
.
globl
sdata
.
globl
sdata
sdata
:
sdata
:
.
globl
init_thread_union
init_thread_union
:
.
space
8192
.
globl
empty_zero_page
.
globl
empty_zero_page
empty_zero_page
:
empty_zero_page
:
.
space
4096
.
space
4096
...
...
arch/ppc/kernel/iSeries_head.S
View file @
2d54ff2f
...
@@ -1496,11 +1496,6 @@ _GLOBAL(abort)
...
@@ -1496,11 +1496,6 @@ _GLOBAL(abort)
.
data
.
data
.
globl
sdata
.
globl
sdata
sdata
:
sdata
:
.
globl
init_thread_union
init_thread_union
:
.
space
8192
.
globl
empty_zero_page
.
globl
empty_zero_page
empty_zero_page
:
empty_zero_page
:
.
space
4096
.
space
4096
...
...
arch/ppc/kernel/process.c
View file @
2d54ff2f
...
@@ -59,6 +59,12 @@ static struct files_struct init_files = INIT_FILES;
...
@@ -59,6 +59,12 @@ static struct files_struct init_files = INIT_FILES;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
;
static
struct
signal_struct
init_signals
=
INIT_SIGNALS
;
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
struct
mm_struct
init_mm
=
INIT_MM
(
init_mm
);
/* this is 8kB-aligned so we can get to the thread_info struct
at the base of it from the stack pointer with 1 integer instruction. */
union
thread_union
init_thread_union
__attribute__
((
__section__
(
".data.init_task"
)))
=
{
INIT_THREAD_INFO
(
init_task
)
};
/* initial task structure */
/* initial task structure */
struct
task_struct
init_task
=
INIT_TASK
(
init_task
);
struct
task_struct
init_task
=
INIT_TASK
(
init_task
);
...
...
arch/ppc/kernel/setup.c
View file @
2d54ff2f
...
@@ -35,7 +35,6 @@
...
@@ -35,7 +35,6 @@
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/system.h>
#include <asm/pmac_feature.h>
#include <asm/pmac_feature.h>
#include <asm/thread_info.h>
#if defined CONFIG_KGDB
#if defined CONFIG_KGDB
#include <asm/kgdb.h>
#include <asm/kgdb.h>
...
@@ -542,9 +541,6 @@ int __init ppc_init(void)
...
@@ -542,9 +541,6 @@ int __init ppc_init(void)
arch_initcall
(
ppc_init
);
arch_initcall
(
ppc_init
);
/* Initial thread_info struct, copied into init_task_union */
struct
thread_info
init_thread_values
__initdata
=
INIT_THREAD_INFO
(
init_task
);
/* Warning, IO base is not yet inited */
/* Warning, IO base is not yet inited */
void
__init
setup_arch
(
char
**
cmdline_p
)
void
__init
setup_arch
(
char
**
cmdline_p
)
{
{
...
@@ -553,9 +549,6 @@ void __init setup_arch(char **cmdline_p)
...
@@ -553,9 +549,6 @@ void __init setup_arch(char **cmdline_p)
extern
char
*
klimit
;
extern
char
*
klimit
;
extern
void
do_init_bootmem
(
void
);
extern
void
do_init_bootmem
(
void
);
/* initialize the thread_info for the init task */
init_thread_info
=
init_thread_values
;
/* so udelay does something sensible, assume <= 1000 bogomips */
/* so udelay does something sensible, assume <= 1000 bogomips */
loops_per_jiffy
=
500000000
/
HZ
;
loops_per_jiffy
=
500000000
/
HZ
;
...
...
arch/ppc/vmlinux.lds
View file @
2d54ff2f
...
@@ -49,8 +49,9 @@ SECTIONS
...
@@ -49,8 +49,9 @@ SECTIONS
.fini : { *(.fini) } =0
.fini : { *(.fini) } =0
.ctors : { *(.ctors) }
.ctors : { *(.ctors) }
.dtors : { *(.dtors) }
.dtors : { *(.dtors) }
/* Read-write section, merged into data segment: */
/* Read-write section, merged into data segment: */
. =
(. + 0x0FFF) & 0xFFFFF000
;
. =
ALIGN(4096)
;
.data :
.data :
{
{
*(.data)
*(.data)
...
@@ -80,6 +81,9 @@ SECTIONS
...
@@ -80,6 +81,9 @@ SECTIONS
. = ALIGN(32);
. = ALIGN(32);
.data.cacheline_aligned : { *(.data.cacheline_aligned) }
.data.cacheline_aligned : { *(.data.cacheline_aligned) }
. = ALIGN(8192);
.data.init_task : { *(.data.init_task) }
. = ALIGN(4096);
. = ALIGN(4096);
__init_begin = .;
__init_begin = .;
.text.init : { *(.text.init) }
.text.init : { *(.text.init) }
...
...
include/asm-ppc/processor.h
View file @
2d54ff2f
...
@@ -714,10 +714,8 @@ struct thread_struct {
...
@@ -714,10 +714,8 @@ struct thread_struct {
/*
/*
* Return saved PC of a blocked thread. For now, this is the "user" PC
* Return saved PC of a blocked thread. For now, this is the "user" PC
*/
*/
static
inline
unsigned
long
thread_saved_pc
(
struct
thread_struct
*
t
)
#define thread_saved_pc(tsk) \
{
((tsk)->thread.regs? (tsk)->thread.regs->nip: 0)
return
(
t
->
regs
)
?
t
->
regs
->
nip
:
0
;
}
#define copy_segments(tsk, mm) do { } while (0)
#define copy_segments(tsk, mm) do { } while (0)
#define release_segments(mm) do { } while (0)
#define release_segments(mm) do { } while (0)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment