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