| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: pcb.h,v 1.13 2011/11/27 21:38:17 reinoud Exp $ */ | | 1 | /* $NetBSD: pcb.h,v 1.14 2011/12/12 15:04:51 reinoud Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca> | | 4 | * Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca> |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -32,25 +32,25 @@ | | | @@ -32,25 +32,25 @@ |
32 | #include <sys/cdefs.h> | | 32 | #include <sys/cdefs.h> |
33 | #include <sys/ucontext.h> | | 33 | #include <sys/ucontext.h> |
34 | | | 34 | |
35 | /* | | 35 | /* |
36 | * Trap frame. Pushed onto the kernel stack on a trap (synchronous exception). | | 36 | * Trap frame. Pushed onto the kernel stack on a trap (synchronous exception). |
37 | * XXX move to frame.h? | | 37 | * XXX move to frame.h? |
38 | */ | | 38 | */ |
39 | | | 39 | |
40 | //typedef ucontext_t trapframe; | | 40 | //typedef ucontext_t trapframe; |
41 | | | 41 | |
42 | struct pcb { | | 42 | struct pcb { |
43 | ucontext_t pcb_ucp; /* lwp switchframe */ | | 43 | ucontext_t pcb_ucp; /* lwp switchframe */ |
44 | ucontext_t pcb_syscall_ucp; /* syscall context */ | | 44 | ucontext_t pcb_syscall_ucp; /* syscall context */ |
45 | ucontext_t pcb_userret_ucp; /* reutn to userland context */ | | 45 | ucontext_t pcb_userret_ucp; /* return to userland context */ |
46 | ucontext_t pcb_pagefault_ucp; /* pagefault context */ | | 46 | ucontext_t pcb_pagefault_ucp; /* pagefault context */ |
47 | ucontext_t pcb_trapret_ucp; | | 47 | ucontext_t pcb_trapret_ucp; |
48 | | | 48 | |
49 | bool pcb_needfree; | | 49 | bool pcb_needfree; |
50 | void * pcb_onfault; /* on fault handler */ | | 50 | void * pcb_onfault; /* on fault handler */ |
51 | | | 51 | |
52 | int pcb_errno; /* save/restore place */ | | 52 | int pcb_errno; /* save/restore place */ |
53 | vaddr_t pcb_fault_addr; /* save place for fault addr */ | | 53 | vaddr_t pcb_fault_addr; /* save place for fault addr */ |
54 | }; | | 54 | }; |
55 | | | 55 | |
56 | #endif /* !_ARCH_USERMODE_INCLUDE_PCB_H */ | | 56 | #endif /* !_ARCH_USERMODE_INCLUDE_PCB_H */ |