From 74ea2f2ad304ee233da0e2851e6c2e3d26463f90 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Sun, 18 Apr 2021 11:13:32 +0100 Subject: [PATCH] tlb: Remove dead instruction --- pkgs/tiny-linux-bootloader/build.sh | 1 + pkgs/tiny-linux-bootloader/remove-dead.patch | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 pkgs/tiny-linux-bootloader/remove-dead.patch diff --git a/pkgs/tiny-linux-bootloader/build.sh b/pkgs/tiny-linux-bootloader/build.sh index d604697..72819ea 100644 --- a/pkgs/tiny-linux-bootloader/build.sh +++ b/pkgs/tiny-linux-bootloader/build.sh @@ -7,6 +7,7 @@ fetch() { cd $pkgname-$pkgver patch -p1 < ../../build.patch patch -p1 < ../../bsect.patch + patch -p1 < ../../remove-dead.patch } package() { diff --git a/pkgs/tiny-linux-bootloader/remove-dead.patch b/pkgs/tiny-linux-bootloader/remove-dead.patch new file mode 100644 index 0000000..6d5547e --- /dev/null +++ b/pkgs/tiny-linux-bootloader/remove-dead.patch @@ -0,0 +1,11 @@ +--- a/bsect.asm ++++ b/bsect.asm +@@ -135,7 +135,7 @@ + .loop: + cmp edx, 127*512 + jl loader.part_2 +- jz loader.finish ++; jz loader.finish + + mov ax, 127 ;count + xor bx, bx ; offset