ipc.h - IPC defined as functions again

- CHOOSETRAP define makes impossible to use some common words
  like send, receive and notify in any other context, for
  instance as members or structures

- any reasonable compiler inlines the static inline functions so
  no extra function call overhead is introduced by this change

- this gets us back to the situation before the SYSCALL/SYSENTER
  change. It is not perfect, but it used to work and still does.
This commit is contained in:
Tomas Hruby
2012-11-14 22:00:29 +00:00
committed by Tomas Hruby
parent 54624a62f1
commit dedb53fb10
2 changed files with 43 additions and 9 deletions

View File

@@ -185,7 +185,7 @@ static void root_ipcvecs(void)
* to distinguish them from regular symbols.
*/
#define PRINT_ENTRYPOINT(name) \
buf_printf("%08lx T %s(k)\n", _minix_ipcvecs.name ## _ptr, #name)
buf_printf("%08lx T %s(k)\n", _minix_ipcvecs.name, #name)
PRINT_ENTRYPOINT(sendrec);
PRINT_ENTRYPOINT(send);