Giter Site home page Giter Site logo

jwt27 / djgpp-cvs Goto Github PK

View Code? Open in Web Editor NEW
10.0 5.0 6.0 6.19 MB

git mirror of cvs.delorie.com:/cvs/djgpp

Home Page: http://www.delorie.com/djgpp/cvs.html

License: GNU General Public License v2.0

Batchfile 0.04% Makefile 1.29% Perl 0.10% C 89.27% C++ 3.38% Yacc 0.96% Assembly 3.30% sed 0.03% Scilab 0.01% Shell 0.13% Roff 0.79% xBase 0.01% Papyrus 0.01% Crystal 0.01% Awk 0.04% HTML 0.61% BitBake 0.04%
djgpp

djgpp-cvs's Issues

Fix faulty keyboard handler

https://www.vogons.org/viewtopic.php?p=818225#p818225
Patch

--- orig/src/libc/go32/exceptn.S        2002-12-21 21:08:39.000000000 -0800
+++ ./exceptn.S 2020-01-18 18:37:27.397176800 -0800
@@ -337,6 +337,15 @@
        je      6f
        orb     $2,%ah  /* If RShift is set, set LShift as well */
 6:
+        movb    %ah,%al
+       andb    %cs:___djgpp_sigint_mask, %ah   /* Mask off irrelevant bits */
+       cmpb    %cs:___djgpp_sigint_key+1, %ah  /* Test for SIGINT */
+        je      60f
+        movb    %al,%ah
+       andb    %cs:___djgpp_sigquit_mask, %ah  /* Mask off irrelevant bits */
+       cmpb    %cs:___djgpp_sigquit_key+1, %ah /* Test for SIGQUIT*/
+       jne     Lkbd_chain
+60:
        inb     $0x60,%al                       /* Read the scan code */
 99:
        movb    %ah,%bh                         /* Save KB status */

Fix toolchain without recompiling by replacing the object file within libc

$ i686-pc-msdosdjgpp-gcc -c -o exceptn.o exceptn.S
$ i686-pc-msdosdjgpp-ar ru /opt/djgpp/i686-pc-msdosdjgpp/lib/libc.a exceptn.o

Affected DJGPP apps (for eg. Vim) can then be rebuilt to replace the faulty keyboard handler.

remove SS switching on __dpmi_int()

Please see this commit:
stsp@f143418
Do you know why SS was touched there?
I think it is a plain bug (may be wrong of course),
and I'd like djgpp to have that fixed too,
in which case I will be able to remove the
"emergency stack" from all clients.

support stubs >2K

Currently the stub size is limited to 2K,
and da81e26
sucks the last bytes of it.
DJ have confirmed to me that there is
no hard limit, and in fact, if you enlarge
the msg in the aforementioned patch,
things will still work. But, for example,
strip will fail to recognize the executable
format.
So there are just a few bugs on a binutils
side to fix, and the large stub will work.

_osmajor checks should be removed

There are a couple of cases, most
notably in sys/vfs/statfs.c, where
the libc checks if( 7 <= _osmajor && _osmajor < 10 )
and uses an extended functionality,
falling back to the basic functionality
otherwise.
The extended functionality block is
however properly implemented: it
falls back to the basic functionality
anyway, if the extended functions
failed.
There are many DOS clones around,
for which this check fails. Since the
code have the proper fallbacks anyway,
the _osmajor checks should be removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.