summaryrefslogtreecommitdiffstats
path: root/pc-bios/s390-ccw/sclp.c
diff options
context:
space:
mode:
authorThomas Huth2017-07-12 14:49:44 +0200
committerChristian Borntraeger2017-07-14 12:29:48 +0200
commitaf3bb73ab1352287848eec7f0ae395f26e004929 (patch)
tree96848ba3564120b39fffe588f7cfa768ce1837ef /pc-bios/s390-ccw/sclp.c
parentpc-bios/s390-ccw: Move libc functions to separate header (diff)
downloadqemu-af3bb73ab1352287848eec7f0ae395f26e004929.tar.gz
qemu-af3bb73ab1352287848eec7f0ae395f26e004929.tar.xz
qemu-af3bb73ab1352287848eec7f0ae395f26e004929.zip
pc-bios/s390-ccw: Move ebc2asc to sclp.c
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 <cohuck@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <1499863793-18627-3-git-send-email-thuth@redhat.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'pc-bios/s390-ccw/sclp.c')
-rw-r--r--pc-bios/s390-ccw/sclp.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/pc-bios/s390-ccw/sclp.c b/pc-bios/s390-ccw/sclp.c
index aa1c86290d..2ee204a971 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)
{