mirror of
https://github.com/rcore-os/rCore-Tutorial-v3.git
synced 2024-11-24 10:26:25 +04:00
deploy: 3e7b5b274d
This commit is contained in:
parent
91597533b4
commit
978aa973cc
@ -457,7 +457,7 @@
|
||||
</span><span class="kw">pub 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