[SeaBIOS] [PATCH] Abstract reset call (and possible 16bit mode switch) into reset() function.

2014-06-11 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor ke...@koconnor.net --- src/boot.c | 5 + src/kbd.c| 2 +- src/stacks.c | 10 ++ src/stacks.h | 1 + src/util.h | 3 --- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/boot.c b/src/boot.c index 9be8b2a..5837ad0 100644 ---

[SeaBIOS] [PATCH 01/10] build: Remove unused function getSectionsStart() from layoutrom.py.

2014-06-11 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 5 - 1 file changed, 5 deletions(-) diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index b325406..28e7d0c 100755 --- a/scripts/layoutrom.py +++ b/scripts/layoutrom.py @@ -343,11 +343,6 @@ def

[SeaBIOS] [PATCH 00/10] build: Allow 32bit sections to be at fixed locations

2014-06-11 Thread Kevin O'Connor
This series updates the build (and layoutrom.py in particular) to be more flexible in section layouts. Prior to this series, only code compiled in the 16bit mode pass could be placed at a fixed address in the f-segment. After this change, the build can more easily place sections from any compile

[SeaBIOS] [PATCH 02/10] build: Extract section visiting logic in layoutrom.py.

2014-06-11 Thread Kevin O'Connor
Extract out the logic that visits all reachable sections into new function findReachable(). Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 117 ++- 1 file changed, 60 insertions(+), 57 deletions(-) diff --git

[SeaBIOS] [PATCH 03/10] build: Refactor layoutrom.py gc() function.

2014-06-11 Thread Kevin O'Connor
Eliminate the per-section 'keep' variable - the list of sections that will be emitted is sufficient to track that state. Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 40 +++- 1 file changed, 15 insertions(+), 25 deletions(-)

[SeaBIOS] [PATCH 04/10] build: Use customized entry point for each type of build.

2014-06-11 Thread Kevin O'Connor
Set an appropriate elf entry point (entry_elf, entry_csm, reset_vector) for each type of build (coreboot, csm, qemu). Use that entry point when determining which sections to keep. Also, remove the '.export.' mechanism to keep a section in the final binary - it is no longer used. This allows the

[SeaBIOS] [PATCH 05/10] build: Refactor findInit() function.

2014-06-11 Thread Kevin O'Connor
Push findInit() into main() and unify the category setting code. Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 46 ++ 1 file changed, 18 insertions(+), 28 deletions(-) diff --git a/scripts/layoutrom.py

[SeaBIOS] [PATCH 06/10] build: Rework getRelocs() to use a hash instead of categories in layoutrom.py

2014-06-11 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 32 +--- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/scripts/layoutrom.py b/scripts/layoutrom.py index a935b3d..3eca823 100755 --- a/scripts/layoutrom.py +++

[SeaBIOS] [PATCH 07/10] build: Keep segmented sections separate until final link step.

2014-06-11 Thread Kevin O'Connor
Signed-off-by: Kevin O'Connor ke...@koconnor.net --- Makefile | 2 +- scripts/layoutrom.py | 52 2 files changed, 21 insertions(+), 33 deletions(-) diff --git a/Makefile b/Makefile index d788ffe..e095601 100644 --- a/Makefile +++

[SeaBIOS] [PATCH 08/10] build: Use fileid instead of category to write sections in layoutrom.py.

2014-06-11 Thread Kevin O'Connor
The 'category' really determines the memory location while the 'fileid' determines which link stage the section is in. So, use 'fileid' when writing the linker scripts. Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 49

[SeaBIOS] [PATCH 09/10] build: Only export needed fields in LayoutInfo in layoutrom.py.

2014-06-11 Thread Kevin O'Connor
A number of fields were exported from the layout info that weren't used. Don't bother exporting them. Signed-off-by: Kevin O'Connor ke...@koconnor.net --- scripts/layoutrom.py | 130 ++- 1 file changed, 67 insertions(+), 63 deletions(-) diff

[SeaBIOS] [PATCH 10/10] build: Get fixed address variables from 32bit compile pass (not 16bit)

2014-06-11 Thread Kevin O'Connor
Update the layoutrom.py build script so that fixed address sections can come from the 32bit compiled C code. Update the C code so that all VAR16FIXED variables instead use the new VARFSEGFIXED which is defined in 32bit mode. Signed-off-by: Kevin O'Connor ke...@koconnor.net --- Makefile

Re: [SeaBIOS] [PATCH] Add SD card support

2014-06-11 Thread Dave Frodin
Kevin, Our intent at this time was to just get it out for others to see/use. I'll try attaching the files. Thanks, Dave On Tue, Jun 10, 2014 at 6:19 PM, Kevin O'Connor ke...@koconnor.net wrote: On Thu, Jun 05, 2014 at 10:36:07AM -0600, Dave Frodin wrote: Paul, I'm resending the patch,