mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 02:16:23 +04:00
deploy: 12416cc8ce
This commit is contained in:
parent
838d0578dd
commit
e44cecbb3f
@ -466,7 +466,7 @@
|
||||
<span class="kw">fn </span>push(<span class="kw-2">&mut </span><span class="self">self</span>, <span class="kw-2">mut </span>map_area: MapArea, data: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>[u8]>) {
|
||||
map_area.map(<span class="kw-2">&mut </span><span class="self">self</span>.page_table);
|
||||
<span class="kw">if let </span><span class="prelude-val">Some</span>(data) = data {
|
||||
map_area.copy_data(<span class="kw-2">&mut </span><span class="self">self</span>.page_table, data);
|
||||
map_area.copy_data(<span class="kw-2">&</span><span class="self">self</span>.page_table, data);
|
||||
}
|
||||
<span class="self">self</span>.areas.push(map_area);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user