blob: 6c92a4ed47a0d49267dfc96b1a497dc8492cc46a [file] [log] [blame]
Damien Zammit301999f2016-01-26 13:57:17 +11001/*
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
16Method(_PIC, 1)
17{
18 /* Remember the OS' IRQ routing choice. */
19 Store(Arg0, PICM)
20}
21
22/* SMI I/O Trap */
23Method(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}