mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
deploy: eeb8ac2352
This commit is contained in:
parent
e44cecbb3f
commit
1e84d1d933
@ -487,7 +487,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