Deutsch English Français Italiano |
<20241013105620.000015fa@yahoo.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Michael S <already5chosen@yahoo.com> Newsgroups: comp.arch Subject: Re: 80286 protected mode Date: Sun, 13 Oct 2024 10:56:20 +0300 Organization: A noiseless patient Spider Lines: 44 Message-ID: <20241013105620.000015fa@yahoo.com> References: <2024Oct6.150415@mips.complang.tuwien.ac.at> <memo.20241006163428.19028W@jgd.cix.co.uk> <2024Oct7.093314@mips.complang.tuwien.ac.at> <7c8e5c75ce0f1e7c95ec3ae4bdbc9249@www.novabbs.org> <2024Oct8.092821@mips.complang.tuwien.ac.at> <ve5ek3$2jamt$1@dont-email.me> <ve6gv4$2o2cj$1@dont-email.me> <ve6olo$2pag3$2@dont-email.me> <73e776d6becb377b484c5dcc72b526dc@www.novabbs.org> <ve7sco$31tgt$1@dont-email.me> <2b31e1343b1f3fadd55ad6b87d879b78@www.novabbs.org> <ve99fg$38kta$1@dont-email.me> <35cb536e6310a38f0269788881cffdaf@www.novabbs.org> <veb4j5$3kjt3$2@dont-email.me> <ab65eba51e4d4adc988e54df4a5fc7eb@www.novabbs.org> <ved03t$1uut$1@dont-email.me> <e1bb50a6c3f648c3b1b4393f4717d5b1@www.novabbs.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Injection-Date: Sun, 13 Oct 2024 09:55:47 +0200 (CEST) Injection-Info: dont-email.me; posting-host="892c1d91ddc3c98c5e442b7e028c5cd9"; logging-data="3378373"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ug07iXbpSTVOXgvkO6UHirROc5Wxcu3M=" Cancel-Lock: sha1:WEhSSFdJsYo6y5fQ4xTKsCofkiI= X-Newsreader: Claws Mail 3.19.1 (GTK+ 2.24.33; x86_64-w64-mingw32) Bytes: 2984 On Sat, 12 Oct 2024 18:32:48 +0000 mitchalsup@aol.com (MitchAlsup1) wrote: > On Sat, 12 Oct 2024 5:06:05 +0000, Brett wrote: > > > MitchAlsup1 <mitchalsup@aol.com> wrote: > >> On Fri, 11 Oct 2024 12:10:13 +0000, David Brown wrote: > >> > >>> > >>> Do you think you can just write this : > >>> > >>> void * memmove(void * s1, const void * s2, size_t n) > >>> { > >>> return memmove(s1, s2, n); > >>> } > >>> > >>> in your library's source? > >> > >> .global memmove > >> memmove: > >> MM R2,R1,R3 > >> RET > >> > >> sure ! > >> > > > > Can R3 be a const, that causes issues for restartability, but branch > > prediction is easier and the code is shorter. > > The 3rd Operand can, indeed, be a constant. > That causes no restartability problem when you have a place to > store the current count==index, so that when control returns > and you re-execute MM, it sees that x amount has already been > done, and C-X is left. I don't understand this paragraph. Does constant as a 3rd operand cause restartability problem? Or does it not? If it does not, then how? Do you have a private field in thread state? Saved on stack by by interrupt uCode ? OS people would not like it. They prefer to have full control even when they don't use it 99.999% of the time.