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

Commit f77f6f00 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Remove various bits of dead code and unused workarounds.

Test: treehugger
Change-Id: I68fcd5da304d04ff4da3c3f3712fb79ce6b5791e
Merged-In: I68fcd5da304d04ff4da3c3f3712fb79ce6b5791e
parent e20d3a00
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@

#include "adb.h"

// Use the linux asm-generic values for errno (which are used on all android archs but mips).
// Use the linux asm-generic values for errno (which are used on all android architectures).
#define ERRNO_VALUES()             \
    ERRNO_VALUE(EACCES, 13);       \
    ERRNO_VALUE(EEXIST, 17);       \
@@ -48,7 +48,7 @@
    ERRNO_VALUE(ETXTBSY, 26)

// Make sure these values are actually correct.
#if defined(__linux__) && !defined(__mips__)
#if defined(__linux__)
#define ERRNO_VALUE(error_name, wire_value) static_assert((error_name) == (wire_value), "")
ERRNO_VALUES();
#undef ERRNO_VALUE
+0 −4
Original line number Diff line number Diff line
@@ -143,8 +143,4 @@ void UNUSED(const T&...) {
#define ABI_STRING "x86"
#elif defined(__x86_64__)
#define ABI_STRING "x86_64"
#elif defined(__mips__) && !defined(__LP64__)
#define ABI_STRING "mips"
#elif defined(__mips__) && defined(__LP64__)
#define ABI_STRING "mips64"
#endif
+0 −6
Original line number Diff line number Diff line
@@ -24,12 +24,6 @@ cc_defaults {
        arm64: {
            srcs: ["arm64/crashglue.S"],
        },
        mips: {
            srcs: ["mips/crashglue.S"],
        },
        mips64: {
            srcs: ["mips64/crashglue.S"],
        },
        x86: {
            srcs: ["x86/crashglue.S"],
        },
+0 −48
Original line number Diff line number Diff line
	.set	noat

	.globl crash1
	.globl crashnostack

crash1:
	li	$0,0xdead0000+0
	li	$1,0xdead0000+1
	li	$2,0xdead0000+2
	li	$3,0xdead0000+3
	li	$4,0xdead0000+4
	li	$5,0xdead0000+5
	li	$6,0xdead0000+6
	li	$7,0xdead0000+7
	li	$8,0xdead0000+8
	li	$9,0xdead0000+9
	li	$10,0xdead0000+10
	li	$11,0xdead0000+11
	li	$12,0xdead0000+12
	li	$13,0xdead0000+13
	li	$14,0xdead0000+14
	li	$15,0xdead0000+15
	li	$16,0xdead0000+16
	li	$17,0xdead0000+17
	li	$18,0xdead0000+18
	li	$19,0xdead0000+19
	li	$20,0xdead0000+20
	li	$21,0xdead0000+21
	li	$22,0xdead0000+22
	li	$23,0xdead0000+23
	li	$24,0xdead0000+24
	li	$25,0xdead0000+25
	li	$26,0xdead0000+26
	li	$27,0xdead0000+27
	li	$28,0xdead0000+28
	# don't trash the stack otherwise the signal handler won't run
	#li	$29,0xdead0000+29
	li	$30,0xdead0000+30
	li	$31,0xdead0000+31

	lw	$zero,($0)
	b .


crashnostack:
	li	$sp, 0
	lw	$zero,($0)
	b .
+0 −48
Original line number Diff line number Diff line
	.set	noat

	.globl crash1
	.globl crashnostack

crash1:
	li	$0,0xdead0000+0
	li	$1,0xdead0000+1
	li	$2,0xdead0000+2
	li	$3,0xdead0000+3
	li	$4,0xdead0000+4
	li	$5,0xdead0000+5
	li	$6,0xdead0000+6
	li	$7,0xdead0000+7
	li	$8,0xdead0000+8
	li	$9,0xdead0000+9
	li	$10,0xdead0000+10
	li	$11,0xdead0000+11
	li	$12,0xdead0000+12
	li	$13,0xdead0000+13
	li	$14,0xdead0000+14
	li	$15,0xdead0000+15
	li	$16,0xdead0000+16
	li	$17,0xdead0000+17
	li	$18,0xdead0000+18
	li	$19,0xdead0000+19
	li	$20,0xdead0000+20
	li	$21,0xdead0000+21
	li	$22,0xdead0000+22
	li	$23,0xdead0000+23
	li	$24,0xdead0000+24
	li	$25,0xdead0000+25
	li	$26,0xdead0000+26
	li	$27,0xdead0000+27
	li	$28,0xdead0000+28
	# don't trash the stack otherwise the signal handler won't run
	#li	$29,0xdead0000+29
	li	$30,0xdead0000+30
	li	$31,0xdead0000+31

	lw	$zero,($0)
	b .


crashnostack:
	li	$sp, 0
	lw	$zero,($0)
	b .
Loading