asm: Replace "__asm__ __volatile__" with "asm volatile"

In order to maintain the coding style consistency, it was requested to
replace the methods that use "__asm__ __volatile__" with "asm volatile".

Signed-off-by: Jesús Diéguez Fernández <jesusdf@gmail.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Jesús Diéguez Fernández 2019-03-08 01:26:36 +01:00 committed by Vincent Batts
parent 927267be58
commit 8d417db48d
8 changed files with 17 additions and 17 deletions

View file

@ -174,17 +174,17 @@ efiemu_memset (grub_uint8_t *a, grub_uint8_t b, grub_size_t n)
static inline void
write_cmos (grub_uint8_t addr, grub_uint8_t val)
{
__asm__ __volatile__ ("outb %%al,$0x70\n"
"mov %%cl, %%al\n"
"outb %%al,$0x71": :"a" (addr), "c" (val));
asm volatile ("outb %%al,$0x70\n"
"mov %%cl, %%al\n"
"outb %%al,$0x71": :"a" (addr), "c" (val));
}
static inline grub_uint8_t
read_cmos (grub_uint8_t addr)
{
grub_uint8_t ret;
__asm__ __volatile__ ("outb %%al, $0x70\n"
"inb $0x71, %%al": "=a"(ret) :"a" (addr));
asm volatile ("outb %%al, $0x70\n"
"inb $0x71, %%al": "=a"(ret) :"a" (addr));
return ret;
}

View file

@ -66,7 +66,7 @@ grub_halt (void)
#endif
/* Disable interrupts. */
__asm__ __volatile__ ("cli");
asm volatile ("cli");
/* Bochs, QEMU, etc. Removed in newer QEMU releases. */
for (i = 0; i < sizeof (bochs_shutdown) - 1; i++)