[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 02/10] pc-bios/s390-ccw: Move ebc2asc to sclp
From: |
David Hildenbrand |
Subject: |
Re: [Qemu-devel] [PATCH v3 02/10] pc-bios/s390-ccw: Move ebc2asc to sclp.c |
Date: |
Tue, 11 Jul 2017 11:43:45 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 |
On 10.07.2017 17:32, Thomas Huth wrote:
> We will later need this array in a file that we will link to the
> netboot code, too. Since there is some ebcdic conversion done
> in sclp_get_loadparm_ascii(), the sclp.c file seems to be a good
> candidate.
>
> Acked-by: Cornelia Huck <address@hidden>
> Signed-off-by: Thomas Huth <address@hidden>
> ---
> pc-bios/s390-ccw/main.c | 11 -----------
> pc-bios/s390-ccw/sclp.c | 11 +++++++++++
> 2 files changed, 11 insertions(+), 11 deletions(-)
>
> diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c
> index 40cba8d..0580eac 100644
> --- a/pc-bios/s390-ccw/main.c
> +++ b/pc-bios/s390-ccw/main.c
> @@ -17,17 +17,6 @@ static SubChannelId blk_schid = { .one = 1 };
> IplParameterBlock iplb __attribute__((__aligned__(PAGE_SIZE)));
> static char loadparm[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
>
> -const unsigned char ebc2asc[256] =
> - /* 0123456789abcdef0123456789abcdef */
> - "................................" /* 1F */
> - "................................" /* 3F */
> - " ...........<(+|&.........!$*);." /* 5F
> first.chr.here.is.real.space */
> - "-/.........,%_>?.........`:#@'=\""/* 7F */
> - ".abcdefghi.......jklmnopqr......" /* 9F */
> - "..stuvwxyz......................" /* BF */
> - ".ABCDEFGHI.......JKLMNOPQR......" /* DF */
> - "..STUVWXYZ......0123456789......";/* FF */
> -
> /*
> * Priniciples of Operations (SA22-7832-09) chapter 17 requires that
> * a subsystem-identification is at 184-187 and bytes 188-191 are zero
> diff --git a/pc-bios/s390-ccw/sclp.c b/pc-bios/s390-ccw/sclp.c
> index aa1c862..2ee204a 100644
> --- a/pc-bios/s390-ccw/sclp.c
> +++ b/pc-bios/s390-ccw/sclp.c
> @@ -14,6 +14,17 @@
>
> static char _sccb[PAGE_SIZE] __attribute__((__aligned__(4096)));
>
> +const unsigned char ebc2asc[256] =
> + /* 0123456789abcdef0123456789abcdef */
> + "................................" /* 1F */
> + "................................" /* 3F */
> + " ...........<(+|&.........!$*);." /* 5F
> first.chr.here.is.real.space */
> + "-/.........,%_>?.........`:#@'=\""/* 7F */
> + ".abcdefghi.......jklmnopqr......" /* 9F */
> + "..stuvwxyz......................" /* BF */
> + ".ABCDEFGHI.......JKLMNOPQR......" /* DF */
> + "..STUVWXYZ......0123456789......";/* FF */
> +
> /* Perform service call. Return 0 on success, non-zero otherwise. */
> static int sclp_service_call(unsigned int command, void *sccb)
> {
>
Reviewed-by: David Hildenbrand <address@hidden>
--
Thanks,
David
- [Qemu-devel] [PATCH v3 00/10] Implement network booting directly into the s390-ccw BIOS, Thomas Huth, 2017/07/10
- [Qemu-devel] [PATCH v3 01/10] pc-bios/s390-ccw: Move libc functions to separate header, Thomas Huth, 2017/07/10
- [Qemu-devel] [PATCH v3 02/10] pc-bios/s390-ccw: Move ebc2asc to sclp.c, Thomas Huth, 2017/07/10
- Re: [Qemu-devel] [PATCH v3 02/10] pc-bios/s390-ccw: Move ebc2asc to sclp.c,
David Hildenbrand <=
- [Qemu-devel] [PATCH v3 03/10] pc-bios/s390-ccw: Move virtio-block related functions into a separate file, Thomas Huth, 2017/07/10
- [Qemu-devel] [PATCH v3 04/10] pc-bios/s390-ccw: Add a write() function for stdio, Thomas Huth, 2017/07/10
- [Qemu-devel] [PATCH v3 05/10] pc-bios/s390-ccw: Move byteswap functions to a separate header, Thomas Huth, 2017/07/10