struct minix_ipcvecs - pretty-print

- the _ptr suffix is not needed anymore :-)
This commit is contained in:
Tomas Hruby
2012-11-14 22:14:48 +00:00
committed by Tomas Hruby
parent dedb53fb10
commit 10f30159a9
4 changed files with 49 additions and 49 deletions

View File

@@ -942,13 +942,13 @@ int arch_phys_map_reply(const int index, const vir_bytes addr)
/* adjust the pointers of the functions and the struct
* itself to the user-accessible mapping
*/
FIXPTR(minix_kerninfo.minix_ipcvecs->send_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->receive_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->sendrec_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->senda_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->sendnb_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->notify_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->do_kernel_call_ptr);
FIXPTR(minix_kerninfo.minix_ipcvecs->send);
FIXPTR(minix_kerninfo.minix_ipcvecs->receive);
FIXPTR(minix_kerninfo.minix_ipcvecs->sendrec);
FIXPTR(minix_kerninfo.minix_ipcvecs->senda);
FIXPTR(minix_kerninfo.minix_ipcvecs->sendnb);
FIXPTR(minix_kerninfo.minix_ipcvecs->notify);
FIXPTR(minix_kerninfo.minix_ipcvecs->do_kernel_call);
FIXPTR(minix_kerninfo.minix_ipcvecs);
minix_kerninfo.kerninfo_magic = KERNINFO_MAGIC;

View File

@@ -2,32 +2,32 @@
#include "arch_proto.h"
struct minix_ipcvecs minix_ipcvecs_softint = {
.send_ptr = usermapped_send_softint,
.receive_ptr = usermapped_receive_softint,
.sendrec_ptr = usermapped_sendrec_softint,
.sendnb_ptr = usermapped_sendnb_softint,
.notify_ptr = usermapped_notify_softint,
.do_kernel_call_ptr = usermapped_do_kernel_call_softint,
.senda_ptr = usermapped_senda_softint
.send = usermapped_send_softint,
.receive = usermapped_receive_softint,
.sendrec = usermapped_sendrec_softint,
.sendnb = usermapped_sendnb_softint,
.notify = usermapped_notify_softint,
.do_kernel_call = usermapped_do_kernel_call_softint,
.senda = usermapped_senda_softint
};
struct minix_ipcvecs minix_ipcvecs_sysenter = {
.send_ptr = usermapped_send_sysenter,
.receive_ptr = usermapped_receive_sysenter,
.sendrec_ptr = usermapped_sendrec_sysenter,
.sendnb_ptr = usermapped_sendnb_sysenter,
.notify_ptr = usermapped_notify_sysenter,
.do_kernel_call_ptr = usermapped_do_kernel_call_sysenter,
.senda_ptr = usermapped_senda_sysenter
.send = usermapped_send_sysenter,
.receive = usermapped_receive_sysenter,
.sendrec = usermapped_sendrec_sysenter,
.sendnb = usermapped_sendnb_sysenter,
.notify = usermapped_notify_sysenter,
.do_kernel_call = usermapped_do_kernel_call_sysenter,
.senda = usermapped_senda_sysenter
};
struct minix_ipcvecs minix_ipcvecs_syscall = {
.send_ptr = usermapped_send_syscall,
.receive_ptr = usermapped_receive_syscall,
.sendrec_ptr = usermapped_sendrec_syscall,
.sendnb_ptr = usermapped_sendnb_syscall,
.notify_ptr = usermapped_notify_syscall,
.do_kernel_call_ptr = usermapped_do_kernel_call_syscall,
.senda_ptr = usermapped_senda_syscall
.send = usermapped_send_syscall,
.receive = usermapped_receive_syscall,
.sendrec = usermapped_sendrec_syscall,
.sendnb = usermapped_sendnb_syscall,
.notify = usermapped_notify_syscall,
.do_kernel_call = usermapped_do_kernel_call_syscall,
.senda = usermapped_senda_syscall
};