search for: no_copy

Displaying 2 results from an estimated 2 matches for "no_copy".

Did you mean: do_copy
2019 Jan 21
2
A bug in command localboot was introduced in version 6.03.
diff --git a/core/localboot.c b/core/localboot.c index 0b8769e4..30bfb272 100644 --- a/core/localboot.c +++ b/core/localboot.c @@ -63,7 +63,6 @@ __export void local_boot(int16_t ax) ireg.eax.w[0] = 0; /* Reset drive */ __intcall(0x13, &ireg, NULL); - memset(&ireg, 0, sizeof(ireg)); ireg.eax.w[0] = 0x0201; /* Read one sector */ ireg.ecx.w[0] = 0x0001; /* C/H/S = 0/0/1 (first
2019 Jan 21
0
A bug in command localboot was introduced in version 6.03.
...gain but let's look at them all. The first or second memset() seems redundant since it's never used in between. If we can assume when oreg is NULL intcall() never touches ireg, then we don't need the third memset(). With the following code, it seems it's a valid assumption: .no_copy: mov edi,esi ; Do a dummy copy-to-self Erwan, thoughts? -- -Gene