CS318 - Pintos
Pintos source browser for JHU CS318 course
Functions
pt-grow-pusha.c File Reference
#include <string.h>
#include "tests/arc4.h"
#include "tests/cksum.h"
#include "tests/lib.h"
#include "tests/main.h"
Include dependency graph for pt-grow-pusha.c:

Go to the source code of this file.

Functions

void test_main (void)
 Expand the stack by 32 bytes all at once using the PUSHA instruction. More...
 

Function Documentation

◆ test_main()

void test_main ( void  )

Expand the stack by 32 bytes all at once using the PUSHA instruction.

tests/main.h

This must succeed.

< Save a copy of the stack pointer.

< Move stack pointer to bottom of page.

< Push 32 bytes on stack at once.

< Restore copied stack pointer.

< Tell GCC we destroyed eax.

Definition at line 12 of file pt-grow-pusha.c.