Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3dd9c2d authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] convert bitmap definitions to C

parent 7b886416
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -57,7 +57,7 @@
 * with operation of the form "set_bit(bitnr, flags)".
 */

/* bitmap tables from arch/S390/kernel/bitmap.S */
/* bitmap tables from arch/s390/kernel/bitmap.c */
extern const char _oi_bitmap[];
extern const char _ni_bitmap[];
extern const char _zb_findmap[];

arch/s390/kernel/bitmap.S

deleted100644 → 0
+0 −56
Original line number Diff line number Diff line
/*
 *  arch/s390/kernel/bitmap.S
 *    Bitmaps for set_bit, clear_bit, test_and_set_bit, ...
 *    See include/asm-s390/{bitops.h|posix_types.h} for details
 *
 *  S390 version
 *    Copyright (C) 1999 IBM Deutschland Entwicklung GmbH, IBM Corporation
 *    Author(s): Martin Schwidefsky (schwidefsky@de.ibm.com),
 */

         .globl _oi_bitmap
_oi_bitmap:
         .byte  0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80

         .globl _ni_bitmap
_ni_bitmap:
         .byte  0xFE,0xFD,0xFB,0xF7,0xEF,0xDF,0xBF,0x7F

         .globl _zb_findmap
_zb_findmap:
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4 
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4
         .byte  0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,8

         .globl _sb_findmap
_sb_findmap:
         .byte  8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
         .byte  4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0
+49 −0
Original line number Diff line number Diff line
/*
 *    Bitmaps for set_bit, clear_bit, test_and_set_bit, ...
 *    See include/asm/{bitops.h|posix_types.h} for details
 *
 *    Copyright IBM Corp. 1999,2009
 *    Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>,
 */

#include <linux/bitops.h>

const char _oi_bitmap[] = { 0x01, 0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