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
nexedi
linux
Commits
af9037dd
Commit
af9037dd
authored
Apr 25, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge nuts.davemloft.net:/disk1/BK/sparcwork-2.6
into nuts.davemloft.net:/disk1/BK/sparc-2.6
parents
63d5381e
99aa13d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
10 deletions
+15
-10
arch/sparc64/kernel/process.c
arch/sparc64/kernel/process.c
+1
-1
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+4
-2
include/asm-sparc64/mmu_context.h
include/asm-sparc64/mmu_context.h
+2
-1
include/asm-sparc64/pgtable.h
include/asm-sparc64/pgtable.h
+8
-6
No files found.
arch/sparc64/kernel/process.c
View file @
af9037dd
...
@@ -435,7 +435,7 @@ void flush_thread(void)
...
@@ -435,7 +435,7 @@ void flush_thread(void)
page
=
pmd_alloc_one
(
NULL
,
0
);
page
=
pmd_alloc_one
(
NULL
,
0
);
pgd_set
(
pgd0
,
page
);
pgd_set
(
pgd0
,
page
);
}
}
pgd_cache
=
pgd_val
(
*
pgd0
)
<<
11UL
;
pgd_cache
=
((
unsigned
long
)
pgd_val
(
*
pgd0
)
)
<<
11UL
;
}
}
__asm__
__volatile__
(
"stxa %0, [%1] %2
\n\t
"
__asm__
__volatile__
(
"stxa %0, [%1] %2
\n\t
"
"membar #Sync"
"membar #Sync"
...
...
arch/sparc64/mm/init.c
View file @
af9037dd
...
@@ -1523,8 +1523,10 @@ void __init paging_init(void)
...
@@ -1523,8 +1523,10 @@ void __init paging_init(void)
/* Now can init the kernel/bad page tables. */
/* Now can init the kernel/bad page tables. */
pgd_set
(
&
swapper_pg_dir
[
0
],
swapper_pmd_dir
+
(
shift
/
sizeof
(
pgd_t
)));
pgd_set
(
&
swapper_pg_dir
[
0
],
swapper_pmd_dir
+
(
shift
/
sizeof
(
pgd_t
)));
sparc64_vpte_patchme1
[
0
]
|=
(
pgd_val
(
init_mm
.
pgd
[
0
])
>>
10
);
sparc64_vpte_patchme1
[
0
]
|=
sparc64_vpte_patchme2
[
0
]
|=
(
pgd_val
(
init_mm
.
pgd
[
0
])
&
0x3ff
);
(((
unsigned
long
)
pgd_val
(
init_mm
.
pgd
[
0
]))
>>
10
);
sparc64_vpte_patchme2
[
0
]
|=
(((
unsigned
long
)
pgd_val
(
init_mm
.
pgd
[
0
]))
&
0x3ff
);
flushi
((
long
)
&
sparc64_vpte_patchme1
[
0
]);
flushi
((
long
)
&
sparc64_vpte_patchme1
[
0
]);
/* Setup bootmem... */
/* Setup bootmem... */
...
...
include/asm-sparc64/mmu_context.h
View file @
af9037dd
...
@@ -83,7 +83,8 @@ do { \
...
@@ -83,7 +83,8 @@ do { \
paddr = __pa((__mm)->pgd); \
paddr = __pa((__mm)->pgd); \
pgd_cache = 0UL; \
pgd_cache = 0UL; \
if ((__tsk)->thread_info->flags & _TIF_32BIT) \
if ((__tsk)->thread_info->flags & _TIF_32BIT) \
pgd_cache = pgd_val((__mm)->pgd[0]) << 11UL; \
pgd_cache = \
((unsigned long)pgd_val((__mm)->pgd[0])) << 11UL; \
__asm__ __volatile__("wrpr %%g0, 0x494, %%pstate\n\t" \
__asm__ __volatile__("wrpr %%g0, 0x494, %%pstate\n\t" \
"mov %3, %%g4\n\t" \
"mov %3, %%g4\n\t" \
"mov %0, %%g7\n\t" \
"mov %0, %%g7\n\t" \
...
...
include/asm-sparc64/pgtable.h
View file @
af9037dd
...
@@ -234,20 +234,22 @@ static inline pte_t pte_modify(pte_t orig_pte, pgprot_t new_prot)
...
@@ -234,20 +234,22 @@ static inline pte_t pte_modify(pte_t orig_pte, pgprot_t new_prot)
(pmd_val(*(pmdp)) = (__pa((unsigned long) (ptep)) >> 11UL))
(pmd_val(*(pmdp)) = (__pa((unsigned long) (ptep)) >> 11UL))
#define pgd_set(pgdp, pmdp) \
#define pgd_set(pgdp, pmdp) \
(pgd_val(*(pgdp)) = (__pa((unsigned long) (pmdp)) >> 11UL))
(pgd_val(*(pgdp)) = (__pa((unsigned long) (pmdp)) >> 11UL))
#define __pmd_page(pmd) ((unsigned long) __va((pmd_val(pmd)<<11UL)))
#define __pmd_page(pmd) \
((unsigned long) __va((((unsigned long)pmd_val(pmd))<<11UL)))
#define pmd_page(pmd) virt_to_page((void *)__pmd_page(pmd))
#define pmd_page(pmd) virt_to_page((void *)__pmd_page(pmd))
#define pgd_page(pgd) ((unsigned long) __va((pgd_val(pgd)<<11UL)))
#define pgd_page(pgd) \
((unsigned long) __va((((unsigned long)pgd_val(pgd))<<11UL)))
#define pte_none(pte) (!pte_val(pte))
#define pte_none(pte) (!pte_val(pte))
#define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
#define pte_present(pte) (pte_val(pte) & _PAGE_PRESENT)
#define pte_clear(pte) (pte_val(*(pte)) = 0UL)
#define pte_clear(pte) (pte_val(*(pte)) = 0UL)
#define pmd_none(pmd) (!pmd_val(pmd))
#define pmd_none(pmd) (!pmd_val(pmd))
#define pmd_bad(pmd) (0)
#define pmd_bad(pmd) (0)
#define pmd_present(pmd) (pmd_val(pmd) != 0U
L
)
#define pmd_present(pmd) (pmd_val(pmd) != 0U)
#define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0U
L
)
#define pmd_clear(pmdp) (pmd_val(*(pmdp)) = 0U)
#define pgd_none(pgd) (!pgd_val(pgd))
#define pgd_none(pgd) (!pgd_val(pgd))
#define pgd_bad(pgd) (0)
#define pgd_bad(pgd) (0)
#define pgd_present(pgd) (pgd_val(pgd) != 0U
L
)
#define pgd_present(pgd) (pgd_val(pgd) != 0U)
#define pgd_clear(pgdp) (pgd_val(*(pgdp)) = 0U
L
)
#define pgd_clear(pgdp) (pgd_val(*(pgdp)) = 0U)
/* The following only work if pte_present() is true.
/* The following only work if pte_present() is true.
* Undefined behaviour if not..
* Undefined behaviour if not..
...
...
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