Gennady Sharapov | ea2ba7d | 2006-01-08 01:01:31 -0800 | [diff] [blame] | 1 | /* |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 2 | * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | * Licensed under the GPL |
| 4 | */ |
| 5 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 6 | #include <linux/mm.h> |
| 7 | #include <linux/sched.h> |
| 8 | #include <linux/hardirq.h> |
| 9 | #include <asm/current.h> |
| 10 | #include <asm/pgtable.h> |
| 11 | #include <asm/tlbflush.h> |
Jeff Dike | eb83075 | 2007-05-06 14:51:07 -0700 | [diff] [blame] | 12 | #include "arch.h" |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 13 | #include "as-layout.h" |
| 14 | #include "kern_util.h" |
| 15 | #include "os.h" |
Jeff Dike | d83ecf0 | 2008-02-04 22:30:47 -0800 | [diff] [blame] | 16 | #include "skas.h" |
Gennady Sharapov | c66fdd5 | 2006-01-08 01:01:32 -0800 | [diff] [blame] | 17 | #include "sysdep/sigcontext.h" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 19 | /* |
| 20 | * Note this is constrained to return 0, -EFAULT, -EACCESS, -ENOMEM by |
| 21 | * segv(). |
| 22 | */ |
Jeff Dike | 1d3468a | 2006-07-10 04:45:13 -0700 | [diff] [blame] | 23 | int handle_page_fault(unsigned long address, unsigned long ip, |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | int is_write, int is_user, int *code_out) |
| 25 | { |
| 26 | struct mm_struct *mm = current->mm; |
| 27 | struct vm_area_struct *vma; |
| 28 | pgd_t *pgd; |
| 29 | pud_t *pud; |
| 30 | pmd_t *pmd; |
| 31 | pte_t *pte; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | int err = -EFAULT; |
| 33 | |
| 34 | *code_out = SEGV_MAPERR; |
Paolo 'Blaisorblade' Giarrusso | fea03cb | 2005-09-22 21:44:20 -0700 | [diff] [blame] | 35 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 36 | /* |
| 37 | * If the fault was during atomic operation, don't take the fault, just |
| 38 | * fail. |
| 39 | */ |
Paolo 'Blaisorblade' Giarrusso | fea03cb | 2005-09-22 21:44:20 -0700 | [diff] [blame] | 40 | if (in_atomic()) |
| 41 | goto out_nosemaphore; |
| 42 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | down_read(&mm->mmap_sem); |
| 44 | vma = find_vma(mm, address); |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 45 | if (!vma) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 46 | goto out; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 47 | else if (vma->vm_start <= address) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 48 | goto good_area; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 49 | else if (!(vma->vm_flags & VM_GROWSDOWN)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 50 | goto out; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 51 | else if (is_user && !ARCH_IS_STACKGROW(address)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 52 | goto out; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 53 | else if (expand_stack(vma, address)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 54 | goto out; |
| 55 | |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 56 | good_area: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | *code_out = SEGV_ACCERR; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 58 | if (is_write && !(vma->vm_flags & VM_WRITE)) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 59 | goto out; |
Jeff Dike | 13479d5 | 2005-05-20 13:59:08 -0700 | [diff] [blame] | 60 | |
Paolo 'Blaisorblade' Giarrusso | d129f31 | 2005-09-10 19:44:57 +0200 | [diff] [blame] | 61 | /* Don't require VM_READ|VM_EXEC for write faults! */ |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 62 | if (!is_write && !(vma->vm_flags & (VM_READ | VM_EXEC))) |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 63 | goto out; |
Jeff Dike | 13479d5 | 2005-05-20 13:59:08 -0700 | [diff] [blame] | 64 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 65 | do { |
Nick Piggin | 83c5407 | 2007-07-19 01:47:05 -0700 | [diff] [blame] | 66 | int fault; |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 67 | survive: |
Nick Piggin | 83c5407 | 2007-07-19 01:47:05 -0700 | [diff] [blame] | 68 | fault = handle_mm_fault(mm, vma, address, is_write); |
| 69 | if (unlikely(fault & VM_FAULT_ERROR)) { |
| 70 | if (fault & VM_FAULT_OOM) { |
| 71 | err = -ENOMEM; |
| 72 | goto out_of_memory; |
| 73 | } else if (fault & VM_FAULT_SIGBUS) { |
| 74 | err = -EACCES; |
| 75 | goto out; |
| 76 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 77 | BUG(); |
| 78 | } |
Nick Piggin | 83c5407 | 2007-07-19 01:47:05 -0700 | [diff] [blame] | 79 | if (fault & VM_FAULT_MAJOR) |
| 80 | current->maj_flt++; |
| 81 | else |
| 82 | current->min_flt++; |
| 83 | |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 84 | pgd = pgd_offset(mm, address); |
| 85 | pud = pud_offset(pgd, address); |
| 86 | pmd = pmd_offset(pud, address); |
| 87 | pte = pte_offset_kernel(pmd, address); |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 88 | } while (!pte_present(*pte)); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 89 | err = 0; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 90 | /* |
| 91 | * The below warning was added in place of |
Paolo 'Blaisorblade' Giarrusso | cbc24af | 2005-11-13 16:07:04 -0800 | [diff] [blame] | 92 | * pte_mkyoung(); if (is_write) pte_mkdirty(); |
| 93 | * If it's triggered, we'd see normally a hang here (a clean pte is |
| 94 | * marked read-only to emulate the dirty bit). |
| 95 | * However, the generic code can mark a PTE writable but clean on a |
| 96 | * concurrent read fault, triggering this harmlessly. So comment it out. |
| 97 | */ |
| 98 | #if 0 |
Paolo 'Blaisorblade' Giarrusso | 16b0367 | 2005-09-10 19:44:58 +0200 | [diff] [blame] | 99 | WARN_ON(!pte_young(*pte) || (is_write && !pte_dirty(*pte))); |
Paolo 'Blaisorblade' Giarrusso | cbc24af | 2005-11-13 16:07:04 -0800 | [diff] [blame] | 100 | #endif |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 101 | flush_tlb_page(vma, address); |
| 102 | out: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | up_read(&mm->mmap_sem); |
Paolo 'Blaisorblade' Giarrusso | fea03cb | 2005-09-22 21:44:20 -0700 | [diff] [blame] | 104 | out_nosemaphore: |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 105 | return err; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | |
| 107 | /* |
| 108 | * We ran out of memory, or some other thing happened to us that made |
| 109 | * us unable to handle the page fault gracefully. |
| 110 | */ |
| 111 | out_of_memory: |
Serge E. Hallyn | b460cbc | 2007-10-18 23:39:52 -0700 | [diff] [blame] | 112 | if (is_global_init(current)) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 113 | up_read(&mm->mmap_sem); |
| 114 | yield(); |
| 115 | down_read(&mm->mmap_sem); |
| 116 | goto survive; |
| 117 | } |
| 118 | goto out; |
| 119 | } |
| 120 | |
Jeff Dike | 27aa6ef | 2007-02-10 01:44:14 -0800 | [diff] [blame] | 121 | static void bad_segv(struct faultinfo fi, unsigned long ip) |
| 122 | { |
| 123 | struct siginfo si; |
| 124 | |
| 125 | si.si_signo = SIGSEGV; |
| 126 | si.si_code = SEGV_ACCERR; |
| 127 | si.si_addr = (void __user *) FAULT_ADDRESS(fi); |
| 128 | current->thread.arch.faultinfo = fi; |
| 129 | force_sig_info(SIGSEGV, &si, current); |
| 130 | } |
| 131 | |
Jeff Dike | 3e6f2ac | 2008-02-04 22:30:58 -0800 | [diff] [blame] | 132 | void fatal_sigsegv(void) |
| 133 | { |
| 134 | force_sigsegv(SIGSEGV, current); |
| 135 | do_signal(); |
| 136 | /* |
| 137 | * This is to tell gcc that we're not returning - do_signal |
| 138 | * can, in general, return, but in this case, it's not, since |
| 139 | * we just got a fatal SIGSEGV queued. |
| 140 | */ |
| 141 | os_dump_core(); |
| 142 | } |
| 143 | |
Jeff Dike | edea138 | 2008-02-04 22:30:46 -0800 | [diff] [blame] | 144 | void segv_handler(int sig, struct uml_pt_regs *regs) |
Gennady Sharapov | c66fdd5 | 2006-01-08 01:01:32 -0800 | [diff] [blame] | 145 | { |
| 146 | struct faultinfo * fi = UPT_FAULTINFO(regs); |
| 147 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 148 | if (UPT_IS_USER(regs) && !SEGV_IS_FIXABLE(fi)) { |
Gennady Sharapov | c66fdd5 | 2006-01-08 01:01:32 -0800 | [diff] [blame] | 149 | bad_segv(*fi, UPT_IP(regs)); |
| 150 | return; |
| 151 | } |
| 152 | segv(*fi, UPT_IP(regs), UPT_IS_USER(regs), regs); |
| 153 | } |
| 154 | |
Bodo Stroesser | c578455 | 2005-05-05 16:15:31 -0700 | [diff] [blame] | 155 | /* |
| 156 | * We give a *copy* of the faultinfo in the regs to segv. |
| 157 | * This must be done, since nesting SEGVs could overwrite |
| 158 | * the info in the regs. A pointer to the info then would |
| 159 | * give us bad data! |
| 160 | */ |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 161 | unsigned long segv(struct faultinfo fi, unsigned long ip, int is_user, |
Jeff Dike | 77bf440 | 2007-10-16 01:26:58 -0700 | [diff] [blame] | 162 | struct uml_pt_regs *regs) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 163 | { |
| 164 | struct siginfo si; |
Jeff Dike | fab95c5 | 2007-10-16 01:27:05 -0700 | [diff] [blame] | 165 | jmp_buf *catcher; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 166 | int err; |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 167 | int is_write = FAULT_WRITE(fi); |
| 168 | unsigned long address = FAULT_ADDRESS(fi); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 169 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 170 | if (!is_user && (address >= start_vm) && (address < end_vm)) { |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 171 | flush_tlb_kernel_vm(); |
| 172 | return 0; |
| 173 | } |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 174 | else if (current->mm == NULL) { |
Jeff Dike | 377fad3 | 2007-05-06 14:51:25 -0700 | [diff] [blame] | 175 | show_regs(container_of(regs, struct pt_regs, regs)); |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 176 | panic("Segfault with no mm"); |
Jeff Dike | 377fad3 | 2007-05-06 14:51:25 -0700 | [diff] [blame] | 177 | } |
Paolo 'Blaisorblade' Giarrusso | 546fe1c | 2005-09-22 21:44:16 -0700 | [diff] [blame] | 178 | |
Paolo 'Blaisorblade' Giarrusso | be662a1 | 2005-09-30 11:58:59 -0700 | [diff] [blame] | 179 | if (SEGV_IS_FIXABLE(&fi) || SEGV_MAYBE_FIXABLE(&fi)) |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 180 | err = handle_page_fault(address, ip, is_write, is_user, |
| 181 | &si.si_code); |
Paolo 'Blaisorblade' Giarrusso | 546fe1c | 2005-09-22 21:44:16 -0700 | [diff] [blame] | 182 | else { |
| 183 | err = -EFAULT; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 184 | /* |
| 185 | * A thread accessed NULL, we get a fault, but CR2 is invalid. |
| 186 | * This code is used in __do_copy_from_user() of TT mode. |
| 187 | * XXX tt mode is gone, so maybe this isn't needed any more |
| 188 | */ |
Paolo 'Blaisorblade' Giarrusso | 546fe1c | 2005-09-22 21:44:16 -0700 | [diff] [blame] | 189 | address = 0; |
| 190 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 191 | |
| 192 | catcher = current->thread.fault_catcher; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 193 | if (!err) |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 194 | return 0; |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 195 | else if (catcher != NULL) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 196 | current->thread.fault_addr = (void *) address; |
Jeff Dike | fab95c5 | 2007-10-16 01:27:05 -0700 | [diff] [blame] | 197 | UML_LONGJMP(catcher, 1); |
Jeff Dike | 1d3468a | 2006-07-10 04:45:13 -0700 | [diff] [blame] | 198 | } |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 199 | else if (current->thread.fault_addr != NULL) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 200 | panic("fault_addr set but no fault catcher"); |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 201 | else if (!is_user && arch_fixup(ip, regs)) |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 202 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 203 | |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 204 | if (!is_user) { |
Jeff Dike | 377fad3 | 2007-05-06 14:51:25 -0700 | [diff] [blame] | 205 | show_regs(container_of(regs, struct pt_regs, regs)); |
Jeff Dike | 1d3468a | 2006-07-10 04:45:13 -0700 | [diff] [blame] | 206 | panic("Kernel mode fault at addr 0x%lx, ip 0x%lx", |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 207 | address, ip); |
Jeff Dike | 377fad3 | 2007-05-06 14:51:25 -0700 | [diff] [blame] | 208 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 209 | |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 210 | if (err == -EACCES) { |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 211 | si.si_signo = SIGBUS; |
| 212 | si.si_errno = 0; |
| 213 | si.si_code = BUS_ADRERR; |
Al Viro | 4d338e1 | 2006-03-31 02:30:15 -0800 | [diff] [blame] | 214 | si.si_addr = (void __user *)address; |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 215 | current->thread.arch.faultinfo = fi; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 216 | force_sig_info(SIGBUS, &si, current); |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 217 | } else if (err == -ENOMEM) { |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 218 | printk(KERN_INFO "VM: killing process %s\n", current->comm); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 219 | do_exit(SIGKILL); |
Paolo 'Blaisorblade' Giarrusso | 3b52166 | 2005-09-03 15:57:26 -0700 | [diff] [blame] | 220 | } else { |
| 221 | BUG_ON(err != -EFAULT); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 222 | si.si_signo = SIGSEGV; |
Al Viro | 4d338e1 | 2006-03-31 02:30:15 -0800 | [diff] [blame] | 223 | si.si_addr = (void __user *) address; |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 224 | current->thread.arch.faultinfo = fi; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 225 | force_sig_info(SIGSEGV, &si, current); |
| 226 | } |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 227 | return 0; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 228 | } |
| 229 | |
Jeff Dike | 77bf440 | 2007-10-16 01:26:58 -0700 | [diff] [blame] | 230 | void relay_signal(int sig, struct uml_pt_regs *regs) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 231 | { |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 232 | if (!UPT_IS_USER(regs)) { |
| 233 | if (sig == SIGBUS) |
| 234 | printk(KERN_ERR "Bus error - the host /dev/shm or /tmp " |
| 235 | "mount likely just ran out of space\n"); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 236 | panic("Kernel mode signal %d", sig); |
Jeff Dike | 6edf428 | 2006-09-25 23:33:03 -0700 | [diff] [blame] | 237 | } |
| 238 | |
Jeff Dike | 9226b83 | 2008-02-04 22:30:40 -0800 | [diff] [blame] | 239 | arch_examine_signal(sig, regs); |
| 240 | |
Jeff Dike | 5d86456 | 2007-05-06 14:51:24 -0700 | [diff] [blame] | 241 | current->thread.arch.faultinfo = *UPT_FAULTINFO(regs); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 242 | force_sig(sig, current); |
| 243 | } |
| 244 | |
Jeff Dike | edea138 | 2008-02-04 22:30:46 -0800 | [diff] [blame] | 245 | void bus_handler(int sig, struct uml_pt_regs *regs) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 246 | { |
Jeff Dike | 4c9e138 | 2007-10-16 01:26:54 -0700 | [diff] [blame] | 247 | if (current->thread.fault_catcher != NULL) |
Jeff Dike | fab95c5 | 2007-10-16 01:27:05 -0700 | [diff] [blame] | 248 | UML_LONGJMP(current->thread.fault_catcher, 1); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 249 | else relay_signal(sig, regs); |
| 250 | } |
| 251 | |
Jeff Dike | edea138 | 2008-02-04 22:30:46 -0800 | [diff] [blame] | 252 | void winch(int sig, struct uml_pt_regs *regs) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 253 | { |
| 254 | do_IRQ(WINCH_IRQ, regs); |
| 255 | } |
| 256 | |
| 257 | void trap_init(void) |
| 258 | { |
| 259 | } |