Damien Zammit | 301999f | 2016-01-26 13:57:17 +1100 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2015 Damien Zammit <damien@zamaudio.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public License as |
| 8 | * published by the Free Software Foundation; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | */ |
| 15 | |
| 16 | Method(_PIC, 1) |
| 17 | { |
| 18 | /* Remember the OS' IRQ routing choice. */ |
| 19 | Store(Arg0, PICM) |
| 20 | } |
| 21 | |
| 22 | /* SMI I/O Trap */ |
| 23 | Method(TRAP, 1, Serialized) |
| 24 | { |
| 25 | Store (Arg0, SMIF) /* SMI Function */ |
| 26 | Store (0, TRP0) /* Generate trap */ |
| 27 | Return (SMIF) /* Return value of SMI handler */ |
| 28 | } |