2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2010,2011 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB 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.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 FUNCTION(grub_bios_interrupt)
33 movl %eax, LOCAL(bios_register_eax)
35 movw %ax, LOCAL(bios_register_es)
37 movw %ax, LOCAL(bios_register_ds)
39 movw %ax, LOCAL(bios_register_flags)
57 LOCAL(bios_register_es):
62 LOCAL(bios_register_ds):
68 LOCAL(bios_register_flags):
75 LOCAL(bios_register_eax):
83 movl %eax, %cs:LOCAL(bios_register_eax)
85 movw %ax, %cs:LOCAL(bios_register_ds)
90 movw %ax, LOCAL(bios_register_flags)
92 movw %ax, LOCAL(bios_register_es)
108 movl LOCAL(bios_register_eax), %eax
110 movw LOCAL(bios_register_es), %ax
112 movw LOCAL(bios_register_ds), %ax
114 movw LOCAL(bios_register_flags), %ax