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
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
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
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
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
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
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
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
8 matches
Mail list logo