Revert Intel-style assembly back to AT&T-style.
[pintos-anon] / src / tests / vm / pt-grow-pusha.c
1 #include <string.h>
2 #include "tests/arc4.h"
3 #include "tests/cksum.h"
4 #include "tests/lib.h"
5 #include "tests/main.h"
6
7 void
8 test_main (void)
9 {
10   asm volatile
11     ("movl %%esp, %%eax;"        /* Save a copy of the stack pointer. */
12      "andl $0xfffff000, %%esp;"  /* Move stack pointer to bottom of page. */
13      "pushal;"                   /* Push 32 bytes on stack at once. */
14      "movl %%eax, %%esp"         /* Restore copied stack pointer. */
15      ::: "eax");                 /* Tell GCC we destroyed eax. */
16 }