This patch fix trampoline build. inckern.S increases stack and calls _startC of elf_trampoline, so inckern.S should be called before elf_trampoline. gcc4.2 puts text (code) into image according to order of source files in this call, so order has changed.
In addition make will install  trampoline kernel. It allows to use kernel for firmware build.
Details
Details
- Reviewers
- adrian 
- Group Reviewers
- MIPS 
- Commits
- rS299993: [mips] Improve MIPS trampoline code
Tested on MIPS ASUS boards
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
- Lint Not Applicable 
- Unit
- Tests Not Applicable 
Event Timeline
| sys/conf/Makefile.mips | ||
|---|---|---|
| 40 ↗ | (On Diff #15976) | Yes, comment to be corrected. Moreover, it's better to make trampoline load address as parameter of kernel configuration. Is it possible? Sorry, but I don't know how to do it. | 
| 76 ↗ | (On Diff #15976) | inckern.S increase stack and calls _startC of elf_trampoline, so inckern.S should be called before elf_trampoline. gcc4.2 puts text (code) into image according to order of source files in this call, so order has changed. | 
| sys/conf/Makefile.mips | ||
|---|---|---|
| 40 ↗ | (On Diff #15976) | Sorry for stupid question, just found example. Please ignore it. | 
| sys/conf/Makefile.mips | ||
|---|---|---|
| 40 ↗ | (On Diff #15976) | Removed this change as TRAMPLOADADDR can be specified on kernel configuration level. |