marcel
bf9a37ed83
Make sure we have all the dirty registers in user frames on the
...
backing store before we discard them. It is possible that we
enter the kernel (due to an execve in this case) with a lot of
dirty user registers and that the RSE has only partially spilled
them (to make room for new frames). We cannot move the backing
store pointer down (to discard user registers) when not all of
the user registers are on the backing store.
So, we flush the register stack IFF this happens. Unconditionally
doing the flush is too costly, because the condition in which we
need to flush is very rare.
This change appears to fix the SIGSEGV that sometimes happen for
newly executed processes and so far also appears to fix the last
of the corruption. It is possible, although not likely, that this
change prevents some other bug from happening, even though it is
itself not a fix. Hence the uncertainty. We'll know in a couple
of months I guess :-)
2003-05-31 20:42:35 +00:00
phk
e4952b702f
Remove unused variable(s).
...
Found by: FlexeLint
2003-05-31 20:42:24 +00:00
phk
ab4f448244
Eliminate mostly unused local variable.
...
Found by: FlexeLint
2003-05-31 20:41:52 +00:00
phk
0be28e9b95
Add /* FALLTHROUGH */
...
Remove break after return
Found by: FlexeLint
2003-05-31 20:41:08 +00:00
phk
f438d88dd1
Fix indentation
...
Found by: FlexeLint
2003-05-31 20:40:12 +00:00
phk
568e2f76aa
Remove unused variable(s).
...
Add /* FALLTHROUGH */
Found by: FlexeLint
2003-05-31 20:39:28 +00:00
phk
a13b77925e
Remove return after goto.
...
Remove break after return;
Found by: FlexeLint
2003-05-31 20:35:32 +00:00
phk
b76773598e
Remove unused variable(s).
...
Remove break after return;
Found by: FlexeLint
2003-05-31 20:34:36 +00:00
phk
e582dcfe26
Put definition of struct svr4_sockcache_entry in a .h file rather than
...
having two independent definitions in two .c files.
Fiddle surrounding details to match.
Found by: FlexeLint
2003-05-31 20:33:18 +00:00
phk
2048912526
Remove unused variable(s).
...
Found by: FlexeLint
2003-05-31 20:29:34 +00:00
phk
e8c1d97f20
Remove break after return
...
Found by: FlexeLint
2003-05-31 20:28:21 +00:00
phk
672138153b
Remove unused variable(s).
...
Put XXX comment where intent is unclear.
Found by: FlexeLint
2003-05-31 20:27:42 +00:00
phk
7722d85e80
Avoid unbalancing the { } count in the source file with #ifdef by
...
putting the opening { after the #ifdef ... #endif sequence.
Found by: FlexeLint
2003-05-31 20:25:53 +00:00
phk
e01d5a0a97
Remove break after return;
...
Found by: FlexeLint
2003-05-31 20:24:30 +00:00
phk
0eb6112a0e
Don't rely on boolean expression evaluating to 1 or 0 by default.
...
Found by: FlexeLint
2003-05-31 20:23:46 +00:00
phk
d7cb459f3c
Remove unused variable(s).
...
Mark a non-critical memoryleak with XXX comment
Found by: FlexeLint
2003-05-31 20:21:53 +00:00
phk
bebda81688
emove unused variable(s).
...
Found by: FlexeLint
2003-05-31 20:19:13 +00:00
phk
bc9e7b689e
Remove return after panic.
...
Found by: FlexeLint
2003-05-31 20:18:23 +00:00
phk
11faebdb1a
Remove needless return
...
Found by: FlexeLint
2003-05-31 20:16:44 +00:00
phk
108e10f649
Add a couple of XXX comments where the intent is not clear.
...
Found by: FlexeLint
2003-05-31 20:13:58 +00:00
phk
145891d899
Remove unused variable(s).
...
Remove break after goto
Found by: FlexeLint
2003-05-31 20:11:33 +00:00
phk
d876d5ad8d
Remove return after panic.
...
Found by: FlexeLint
2003-05-31 20:09:42 +00:00
phk
ddccb1d287
Remove unused variable and now unbalanced call to splbio();
...
Found by: FlexeLint
2003-05-31 20:09:01 +00:00
phk
0b4dbc280f
Wrap macro in do {...} while(0);
...
Found by: FlexeLint
2003-05-31 20:07:16 +00:00
phk
1d37bf1e98
Remove break after return.
...
Found by: FlexeLint
2003-05-31 20:06:27 +00:00
phk
174a772296
Remove unsed variables.
...
Add explicit breaks to switch
Found by: FlexeLint
2003-05-31 20:05:25 +00:00
phk
37e91b880a
Remove unused variable.
...
Found by: FlexeLint
2003-05-31 20:04:19 +00:00
phk
30d674a987
Remove unused variables.
...
Remove now unused pointer to ether header.
Remove break after return
Found by: FlexeLint
2003-05-31 20:02:43 +00:00
phk
d907c0f953
Remove break after return;
...
Found by: FlexeLint
2003-05-31 20:01:14 +00:00
phk
0ff6688d69
Remove break after return
...
Found by: FlexeLint
2003-05-31 19:59:29 +00:00
phk
5616e3ef83
Remove unused variables.
...
Found by: FlexeLint
2003-05-31 19:58:45 +00:00
phk
7525d5ae87
Remove now unused pointer to etherheader.
...
Found by: FlexeLint
2003-05-31 19:56:35 +00:00
phk
34f931b00b
Remove unused variable.
...
Found by: FlexeLint
2003-05-31 19:56:09 +00:00
phk
d511c7fef4
Remove double return()
...
Found by: FlexeLint
2003-05-31 19:55:32 +00:00
marcel
9bba923f2e
Fix ia32 compat on ia64. Recent ia64 MD changes caused the garbage on
...
the stack to be changed in a way incompatible with elf32_map_insert()
where we used data_buf without initializing it for when the partial
mapping resulting in a misaligned image (typical when the page size
implied by the image is not the same as the page size in use by the
kernel). Since data_buf is passed by reference to vm_map_find(), the
compiler cannot warn about it.
While here, move all local variables to the top of the function.
2003-05-31 19:55:05 +00:00
phk
22c73f78e7
Prepend _ to internal union members to avoid ambiguity.
...
Found by: FlexeLint
2003-05-31 19:52:15 +00:00
phk
fb8b6c2546
Remove unused variables
...
Found by: FlexeLint
2003-05-31 19:51:05 +00:00
phk
016c73a70c
Remove unused variables
...
Add /* FALLTHROUGH */
Found by: FlexeLint
2003-05-31 19:49:49 +00:00
phk
78fe3fef1a
Remove unnecessary breaks.
...
Remove unused variables.
Add XXX comment where a break may be missing. [lxtphy.c]
Found by: FlexeLint
2003-05-31 19:48:33 +00:00
phk
ed097ecfc2
Move some FALLTHROUGH comments so they work.
...
Fix indentation error.
Make boardid string long enough.
Remove unused variable.
Found by: FlexeLint
2003-05-31 19:46:58 +00:00
phk
cd37433ef9
Remove unused variable.
...
Remove unneeded return;
Found by: FlexeLint
2003-05-31 19:41:33 +00:00
alc
bd43f8c10d
Add vm object locking to vm_object_madvise().
2003-05-31 19:40:57 +00:00
phk
70af1dfe88
Remove unused variables.
...
Found by: FlexeLint
2003-05-31 19:40:43 +00:00
phk
30aa5fffc7
Don't define memcpy() to bcopy() and in particular not memset() to
...
bzero() when we have them all already.
Found by: FlexeLint
2003-05-31 19:38:43 +00:00
phk
5ddad2e884
Fix indentation.
...
Found by: FlexeLint
2003-05-31 19:38:00 +00:00
phk
dcb3c04301
Remove unused variables.
...
Rename struct h0h0 to g_hh01 in order to make it unique over files.
Found by: FlexeLint
2003-05-31 19:37:21 +00:00
phk
557d80921b
Remove unused variable.
...
Found by: FlexeLint
2003-05-31 19:34:52 +00:00
phk
96b27507e2
Do not define memset() to bzero(). We have a memset().
...
Found by: FlexeLint
2003-05-31 19:31:46 +00:00
phk
23436c40b9
Remove unused variables.
...
Remove #ifdef notyet which will never become.
Found by: FlexeLint
2003-05-31 19:30:52 +00:00
phk
f0f1321766
Remove unused variable.
...
Remove unneeded return.
Found by: FlexeLint
2003-05-31 19:29:38 +00:00