linux-4.4.1/flush_dcache_page()(arm)
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*参照元 [#wfde4532]
#backlinks
*説明 [#k8dd8a6f]
-パス: 複数あり
--CONFIG_MMU が無効: [[linux-4.4.1/arch/arm/mm/nommu.c]]
--CONFIG_MMU が有効: [[linux-4.4.1/arch/arm/mm/flush.c]]
-FIXME: これは何?
--説明
**引数 [#m7cde16f]
-struct page *page
--
--[[linux-4.4.1/page]]
**返り値 [#b8106671]
-なし
**参考 [#hc3d6f43]
*実装 [#o367d59f]
**CONFIG_MMU が無効: arch/arm/mm/nommu.c [#df471a7b]
void flush_dcache_page(struct page *page)
{
__cpuc_flush_dcache_area(page_address(page), PAG...
-
--[[linux-4.4.1/__cpuc_flush_dcache_area()]]
--[[linux-4.4.1/page_address()]]
--[[linux-4.4.1/PAGE_SIZE]]
}
EXPORT_SYMBOL(flush_dcache_page);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
**CONFIG_MMU が有効: arch/arm/mm/flush.c [#t8d2d2df]
/*
* Ensure cache coherency between kernel mapping and use...
* of this page.
*
* We have three cases to consider:
* - VIPT non-aliasing cache: fully coherent so nothing...
* - VIVT: fully aliasing, so we need to handle every a...
* current VM view.
* - VIPT aliasing: need to handle one alias in our cur...
*
* If we need to handle aliasing:
* If the page only exists in the page cache and there ...
* space mappings, we can be lazy and remember that we ...
* kernel cache lines for later. Otherwise, we assume ...
* aliasing mappings.
*
* Note that we disable the lazy flush for SMP configura...
* the cache maintenance operations are not automaticall...
*/
void flush_dcache_page(struct page *page)
{
struct address_space *mapping;
-
--[[linux-4.4.1/address_space]]
/*
* The zero page is never written to, so never h...
* cache lines, and therefore never needs to be ...
*/
if (page == ZERO_PAGE(0))
return;
-
--[[linux-4.4.1/ZERO_PAGE()]]
mapping = page_mapping(page);
-
--[[linux-4.4.1/page_mapping()]]
if (!cache_ops_need_broadcast() &&
mapping && !page_mapped(page))
clear_bit(PG_dcache_clean, &page->flags);
-
--[[linux-4.4.1/cache_ops_need_broadcast()]]
--[[linux-4.4.1/page_mapped()]]
--[[linux-4.4.1/clear_bit()]]
else {
__flush_dcache_page(mapping, page);
-
--[[linux-4.4.1/__flush_dcache_page()]]
if (mapping && cache_is_vivt())
__flush_dcache_aliases(mapping, ...
-
--[[linux-4.4.1/cache_is_vivt()]]
--[[linux-4.4.1/__flush_dcache_aliases()]]
else if (mapping)
__flush_icache_all();
-
--[[linux-4.4.1/__flush_icache_all()]]
set_bit(PG_dcache_clean, &page->flags);
-
--[[linux-4.4.1/set_bit()]]
}
}
EXPORT_SYMBOL(flush_dcache_page);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#waa4e05d]
終了行:
*参照元 [#wfde4532]
#backlinks
*説明 [#k8dd8a6f]
-パス: 複数あり
--CONFIG_MMU が無効: [[linux-4.4.1/arch/arm/mm/nommu.c]]
--CONFIG_MMU が有効: [[linux-4.4.1/arch/arm/mm/flush.c]]
-FIXME: これは何?
--説明
**引数 [#m7cde16f]
-struct page *page
--
--[[linux-4.4.1/page]]
**返り値 [#b8106671]
-なし
**参考 [#hc3d6f43]
*実装 [#o367d59f]
**CONFIG_MMU が無効: arch/arm/mm/nommu.c [#df471a7b]
void flush_dcache_page(struct page *page)
{
__cpuc_flush_dcache_area(page_address(page), PAG...
-
--[[linux-4.4.1/__cpuc_flush_dcache_area()]]
--[[linux-4.4.1/page_address()]]
--[[linux-4.4.1/PAGE_SIZE]]
}
EXPORT_SYMBOL(flush_dcache_page);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
**CONFIG_MMU が有効: arch/arm/mm/flush.c [#t8d2d2df]
/*
* Ensure cache coherency between kernel mapping and use...
* of this page.
*
* We have three cases to consider:
* - VIPT non-aliasing cache: fully coherent so nothing...
* - VIVT: fully aliasing, so we need to handle every a...
* current VM view.
* - VIPT aliasing: need to handle one alias in our cur...
*
* If we need to handle aliasing:
* If the page only exists in the page cache and there ...
* space mappings, we can be lazy and remember that we ...
* kernel cache lines for later. Otherwise, we assume ...
* aliasing mappings.
*
* Note that we disable the lazy flush for SMP configura...
* the cache maintenance operations are not automaticall...
*/
void flush_dcache_page(struct page *page)
{
struct address_space *mapping;
-
--[[linux-4.4.1/address_space]]
/*
* The zero page is never written to, so never h...
* cache lines, and therefore never needs to be ...
*/
if (page == ZERO_PAGE(0))
return;
-
--[[linux-4.4.1/ZERO_PAGE()]]
mapping = page_mapping(page);
-
--[[linux-4.4.1/page_mapping()]]
if (!cache_ops_need_broadcast() &&
mapping && !page_mapped(page))
clear_bit(PG_dcache_clean, &page->flags);
-
--[[linux-4.4.1/cache_ops_need_broadcast()]]
--[[linux-4.4.1/page_mapped()]]
--[[linux-4.4.1/clear_bit()]]
else {
__flush_dcache_page(mapping, page);
-
--[[linux-4.4.1/__flush_dcache_page()]]
if (mapping && cache_is_vivt())
__flush_dcache_aliases(mapping, ...
-
--[[linux-4.4.1/cache_is_vivt()]]
--[[linux-4.4.1/__flush_dcache_aliases()]]
else if (mapping)
__flush_icache_all();
-
--[[linux-4.4.1/__flush_icache_all()]]
set_bit(PG_dcache_clean, &page->flags);
-
--[[linux-4.4.1/set_bit()]]
}
}
EXPORT_SYMBOL(flush_dcache_page);
-
--[[linux-4.4.1/EXPORT_SYMBOL()]]
*コメント [#waa4e05d]
ページ名: