rename of mode/context switching functions

- this patch only renames schedcheck() to switch_to_user(),
  cycles_accounting_stop() to context_stop() and restart() to
  +restore_user_context()

- the motivation is that since the introduction of schedcheck() it has
  been abused for many things. It deserves a better name.  It should
  express the fact that from the moment we call the function we are in
  the process of switching to user.

- cycles_accounting_stop() was originally a single purpose function.
  As this function is called at were convenient places it is used in
  for other things too, e.g. (un)locking the kernel. Thus it deserves
  a better name too.

- using the old name, restart() does not call schedcheck(), however
  calls to restart are replaced by calls to schedcheck()
  [switch_to_user] and it calls restart() [restore_user_context]
This commit is contained in:
Tomas Hruby
2010-05-18 13:00:39 +00:00
parent 9ba65d2ea8
commit b90c2d7026
8 changed files with 53 additions and 68 deletions

View File

@@ -257,7 +257,7 @@ PUBLIC void main(void)
assert(runqueues_ok());
restart();
switch_to_user();
NOT_REACHABLE;
}