[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-arm] [RFC PATCH for semihosting-tests] semihosting tests: add
From: |
Alex Bennée |
Subject: |
Re: [Qemu-arm] [RFC PATCH for semihosting-tests] semihosting tests: add v7m tests |
Date: |
Wed, 03 Jul 2019 16:03:52 +0100 |
User-agent: |
mu4e 1.3.2; emacs 26.1 |
Alex Bennée <address@hidden> writes:
> M-profile has yet another way of triggering semihosting calls using
> the BKPT instruction. To support this we need to add a M-profile setup
> so we use the nice and simple microbit model which has a Cortex-M0 in
> it.
>
> Signed-off-by: Alex Bennée <address@hidden>
> ---
> Makefile | 24 ++++++++++++++++++++---
> microbit.lds | 32 ++++++++++++++++++++++++++++++
<snip>
> --- /dev/null
> +++ b/microbit.lds
> @@ -0,0 +1,32 @@
> +/*
> + * microbit.lds : simple linker script for baremetal ARM-M test cases
> + *
> + * Copyright (C) 2019 Linaro Limited. All rights reserved.
> + *
> + * Memory layout is for the BBC Microbit board which puts RAM at 0x20000000
> + */
> +
> +RAMSTART = 0x20000000;
> +STACKTOP = 0x20004000;
> +
> +ENTRY(exc_reset_thumb)
> +
> +SECTIONS
> +{
> + . = 0x0;
> + .text : {
> + *(.text)
> + }
> + .data : {
> + *(.data)
> + }
> + .rodata : {
> + *(.rodata)
> + }
> + .bss : {
> + *(.bss)
> + }
> + /DISCARD/ : {
> + *(.ARM.attributes)
> + }
> +}
And it would help of course if data was is the read/write area.
- .data : {
- *(.data)
- }
.rodata : {
*(.rodata)
}
+ . = RAMSTART;
+ .data : {
+ *(.data)
+ }
.bss : {
*(.bss)
}
--
Alex Bennée