Hello,
In
trapasm.s, in definition of
alltraps , there're 2 consecutive instructions
pushl %esp
call trap
In Lecture 18(46:41), it's mentioned that the
esp is being pushed because
pushal doesn't push
esp register.
But following document says that
pushal also pushes esp register.
It seems the purpose of the statement
pushl %esp is to provide argument (in accordance with gcc function calling conventions) to
trap()(in file
trap.c), which takes trapframe pointer as an argument
Can you please confirm if this is correct?
Sincerely,
Santosh K P