[U-Boot] [PATCH] api: Export API structure address as an environment variable

2016-03-01 Thread Stanislav Galabov
This patch makes the U-Boot api export its structure address as an environment variable, so it can be used to directly hint FreeBSD's loader of api's location. The relevant FreeBSD loader change is currently under review at: https://reviews.freebsd.org/D5492 Signed-off-by: Stanisl

[U-Boot] [PATCH 3/4] Fix FreeBSD loader API so that it works on both 32-bit and 64-bit targets.

2016-02-17 Thread Stanislav Galabov
Specifically tested on MIPS under QEMU (works with all combination of bit-ness and endian-ness) Signed-off-by: Stanislav Galabov --- api/api.c | 58 +-- examples/api/Makefile | 4 examples/api/crt0.S | 13

[U-Boot] [PATCH 4/4] Add support for 64-bit MIPS to examples/standalone

2016-02-17 Thread Stanislav Galabov
Signed-off-by: Stanislav Galabov --- examples/standalone/stubs.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/examples/standalone/stubs.c b/examples/standalone/stubs.c index 920a0a9..0d62067 100644 --- a/examples/standalone/stubs.c +++ b/examples/standalone/stubs.c

[U-Boot] [PATCH 1/4] Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both 32-bit and 64-bit targets

2016-02-17 Thread Stanislav Galabov
Signed-off-by: Stanislav Galabov --- include/ata.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ata.h b/include/ata.h index 9d6f59c..dde377c 100644 --- a/include/ata.h +++ b/include/ata.h @@ -126,7 +126,7 @@ #define ATA_BLOCKSIZE 512 /* bytes */ #define

[U-Boot] [PATCH 2/4] Use CONFIG_IDE_SWAP_IO when running on big-endian MIPS (32 or 64-bit) in QEMU so that IDE transfers work properly

2016-02-17 Thread Stanislav Galabov
Signed-off-by: Stanislav Galabov --- include/configs/qemu-mips.h | 4 include/configs/qemu-mips64.h | 4 2 files changed, 8 insertions(+) diff --git a/include/configs/qemu-mips.h b/include/configs/qemu-mips.h index 5a043d5..d31706c 100644 --- a/include/configs/qemu-mips.h +++ b

[U-Boot] [PATCH 0/4] QEMU (qemu-mips) and MIPS 64-bit changes

2016-02-17 Thread Stanislav Galabov
Stanislav Galabov (4): - Properly calculate ATA_SECTORWORDS, using a fixed-size integer, so it works for both 32-bit and 64-bit targets - Use CONFIG_IDE_SWAP_IO when running on big-endian MIPS (32 or 64-bit) in QEMU so that IDE transfers work properly - Fix FreeBSD loader API so that

[U-Boot] [PATCH] api: Add FreeBSD API support for MIPS platforms

2016-02-04 Thread Stanislav Galabov
This patch adds U-Boot API support (used by FreeBSD loader) for MIPS platforms. Signed-off-by: Stanislav Galabov --- api/Makefile| 1 + api/api_platform-mips.c | 32 examples/api/Makefile | 3 +++ examples/api/crt0.S | 24

[U-Boot] [PATCH] api: Add FreeBSD API support for MIPS platforms

2016-02-04 Thread Stanislav Galabov
This patch adds U-Boot API support (used by FreeBSD loader) for MIPS platforms. Signed-off-by: Stanislav Galabov --- api/Makefile| 1 + api/api_platform-mips.c | 32 examples/api/Makefile | 3 +++ examples/api/crt0.S | 24