diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-08-25 15:53:24 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-08-25 15:54:16 -0700 |
commit | 6033844884f18c9a6e6e186c79c36fd1dd2c9bb0 (patch) | |
tree | c4f58b9f94fe36463a1cc9a8a0a07507dcbd405f /html/020syscalls.cc.html | |
parent | 9ac3fde9ab9651ecf5eb0ae0af6691e65ab3b122 (diff) | |
download | mu-6033844884f18c9a6e6e186c79c36fd1dd2c9bb0.tar.gz |
5582
Diffstat (limited to 'html/020syscalls.cc.html')
-rw-r--r-- | html/020syscalls.cc.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/html/020syscalls.cc.html b/html/020syscalls.cc.html index a6924627..70c529af 100644 --- a/html/020syscalls.cc.html +++ b/html/020syscalls.cc.html @@ -167,13 +167,13 @@ if ('onhashchange' in window) { <span id="L107" class="LineNr">107 </span> <span id="L108" class="LineNr">108 </span><span class="Delimiter">:(before "End Globals")</span> <span id="L109" class="LineNr">109 </span><span class="Comment">// Very primitive/fixed/insecure mmap segments for now.</span> -<span id="L110" class="LineNr">110 </span><span class="Normal">uint32_t</span> <span class="Special"><a href='020syscalls.cc.html#L110'>Segments_allocated_above</a></span> = <a href='012elf.cc.html#L148'>END_HEAP</a><span class="Delimiter">;</span> +<span id="L110" class="LineNr">110 </span><span class="Normal">uint32_t</span> <span class="Special"><a href='020syscalls.cc.html#L110'>Segments_allocated_above</a></span> = <a href='012elf.cc.html#L149'>END_HEAP</a><span class="Delimiter">;</span> <span id="L111" class="LineNr">111 </span><span class="Delimiter">:(code)</span> <span id="L112" class="LineNr">112 </span><span class="Comment">// always allocate multiples of the segment size</span> <span id="L113" class="LineNr">113 </span><span class="Normal">uint32_t</span> <a href='020syscalls.cc.html#L113'>new_segment</a><span class="Delimiter">(</span><span class="Normal">uint32_t</span> length<span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L114" class="LineNr">114 </span> assert<span class="Delimiter">(</span>length > <span class="Constant">0</span><span class="Delimiter">);</span> <span id="L115" class="LineNr">115 </span> <span class="Normal">uint32_t</span> result = <span class="Delimiter">(</span><span class="Special"><a href='020syscalls.cc.html#L110'>Segments_allocated_above</a></span> - length<span class="Delimiter">)</span> & <span class="Constant">0xff000000</span><span class="Delimiter">;</span> <span class="Comment">// same number of zeroes as SEGMENT_ALIGNMENT</span> -<span id="L116" class="LineNr">116 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>result <= <a href='012elf.cc.html#L147'>START_HEAP</a><span class="Delimiter">)</span> <span class="Delimiter">{</span> +<span id="L116" class="LineNr">116 </span> <span class="Normal">if</span> <span class="Delimiter">(</span>result <= <a href='012elf.cc.html#L148'>START_HEAP</a><span class="Delimiter">)</span> <span class="Delimiter">{</span> <span id="L117" class="LineNr">117 </span> <a href='003trace.cc.html#L226'>raise</a> << <span class="Constant">"Allocated too many segments; the VM ran out of memory. "</span> <span id="L118" class="LineNr">118 </span> << <span class="Constant">"Maybe <a href='010---vm.cc.html#L92'>SEGMENT_ALIGNMENT</a> can be smaller?\n"</span> << <a href='003trace.cc.html#L173'>die</a><span class="Delimiter">();</span> <span id="L119" class="LineNr">119 </span> <span class="Delimiter">}</span> |