aboutsummaryrefslogtreecommitdiff
path: root/src/entryfuncs.S
AgeCommit message (Collapse)AuthorFilesLines
2010-11-25Don't pass return address to transition(32,16,16big) on stack.Kevin O'Connor1-1/+1
It's difficult to have a uniform view of the stack when transition modes, so pass the return address in a register. As a result, the transition functions only access memory via the %cs selector now.
2009-06-10Do garbage collection of unused sections.Kevin O'Connor1-0/+6
Implement -ffunction-sections and -fdata-sections in both 32bit and 16bit code. Make sure all sections have unique names (even asm and discarded sections). Enhance tools/layoutrom.py script to find all sections reachable from exported 16bit code - prune all other sections. Mark sections with "export" if they can be visible outside of code - these sections wont be dropped when pruning unused sections.
2009-05-16Support %ebp register in 'struct bregs'.Kevin O'Connor1-2/+8
Save/restore %ebp on irq entry. Support saving and restoring %ebp on call16. Enable display of %ebp in register dumps.
2009-05-16Define unified entry points for irq handlers.Kevin O'Connor1-27/+54
The irq entry points now push the handler address and jump to a function that does parameter setup. This reduces the code size because the entry setup isn't repeated for every handler.
2009-05-06Move assembler entry macros in romlayout.S into new file entryfuncs.S.Kevin O'Connor1-0/+134
This allows the entry macros to be used in other assembler code.