mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The tables ebcdic_037 and ebcdic_500 are currently exactly the same, though the 500 should differ at 7 entries (see the tables in the Linux kernel or https://www.ibm.com/docs/en/db2-for-zos/12.0.0?topic=ebcdic-code-point-differences-between-ccsids for example). Fix it by removing the ebcdic_500 table and by patching the other table during start() if necessary. That way we can safe also about 200 bytes in the stage3.bin binary. Fixes: https://github.com/ibm-s390-linux/s390-tools/issues/125 Closes: https://github.com/ibm-s390-linux/s390-tools/pull/190 Suggested-by: Euan Bourke <euan@linux.ibm.com> Tested-by: Euan Bourke <euan@linux.ibm.com> Reviewed-by: Euan Bourke <euan@linux.ibm.com> Acked-by: Steffen Eiden <seiden@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com>
23 lines
472 B
C
23 lines
472 B
C
/*
|
|
* EBCDIC conversion functions
|
|
*
|
|
* Copyright IBM Corp. 2013, 2020
|
|
*
|
|
* s390-tools is free software; you can redistribute it and/or modify
|
|
* it under the terms of the MIT license. See LICENSE for details.
|
|
*
|
|
*/
|
|
|
|
#ifndef EBCDIC_CONV_H
|
|
#define EBCDIC_CONV_H
|
|
|
|
|
|
#ifndef __ASSEMBLER__
|
|
|
|
void ebcdic_update_table(void);
|
|
void ebcdic_to_ascii(unsigned char *target, const unsigned char *source,
|
|
unsigned int l);
|
|
|
|
#endif /* __ASSEMBLER__ */
|
|
#endif /* EBCDIC_CONV_H */
|