08 September 2012, 06:41 | #1 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
workbench.library 45.132 patch to try out
Changes made in workbench.library 45.132 (beta test version):
Code:
* - ICONCTRLA_NewBumpRevision of $REV 130/131 was checking icon.library only * for Lib_Revision being exactly 4 and not if the version was 45.4 or newer. * - Workbench.library copy function sometimes came up with a requester asking * to insert a disk with the strange volume name "afadaba..." in any drive. * This bug also caused many Enforcer hits and sometimes freezes or Gurus. * - The requirements for the version of exec.library have been reduced to V39. * Thus, you can use this workbench.library now together with Kickstart 3.0. spatch -oworkbench.library -pWbLib_45.127-45.132.pch workbench.library.45.127 or spatch -oworkbench.library -pWbLib_45.131-45.132.pch workbench.library.45.131 Update: The 2nd bug is still not perfectly fixed. But the strange requester won't come up anymore. Last edited by PeterK; 12 April 2022 at 12:35. |
08 September 2012, 08:32 | #2 | |
Banned
Join Date: Aug 2011
Location: Saturn
Age: 52
Posts: 279
|
Quote:
so now it is possible to run OS 3.9 on kickstart 3.0 without the patchlibrary fix? |
|
08 September 2012, 08:37 | #3 |
BoingBagged
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
|
Thank you for your work
|
08 September 2012, 08:44 | #4 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
No. I have doubt about that being possible, since there are probably lots of other libraries and tools where their programmers never really checked their code for the real requirements. There are indeed only a very few new functions which have been introduced with OS 3.1, but unfortunately most programmers insist on v40 instead of v39. I would say, maybe 95 % of these programs could work without problems on OS 3.0, too.
|
08 September 2012, 08:59 | #5 | |
Banned
Join Date: Aug 2011
Location: Saturn
Age: 52
Posts: 279
|
Quote:
supposedly I always assumed that the malicious check for V40 libraries are inside the workbench.library here is the beginning of my startup-sequence run >nil: patchlibrary expansion.library 40 run >nil: patchlibrary exec.library 40 run >nil: patchlibrary utility.library 40 run >nil: patchlibrary graphics.library 40 run >nil: patchlibrary layers.library 40 run >nil: patchlibrary keymap.library 40 run >nil: patchlibrary intuition.library 40 run >nil: patchlibrary dos.library 40 run >nil: patchlibrary gadtools.library 40 |
|
08 September 2012, 09:27 | #6 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Yes, thank you very much clauddio.
That's what I expected, not just one or two libraries have to be changed. @gulliver Please don't include this workbench.library in your BB4 package. This is NOT a final version yet. I've just noticed that my fix for this strange "afadaba...." requester is still not working perfectly. When I repeat that test, I get Enforcer hits again. |
08 September 2012, 18:23 | #7 |
BoingBagged
Join Date: Aug 2007
Location: The South of nowhere
Age: 46
Posts: 2,358
|
Thank you for your advice, I was going that road...
|
08 September 2012, 20:13 | #8 |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
@gulliver
It's always good to do testing before release, preferably on different setups with Enforcer/MuForce/MuGuardianAngel. It's too easy to make mistakes no matter how good we appear to be sometimes. @PeterK There is the workbench.library bug with fonts that seemed to be introduced in the later fixes. I get pink text in Workbench if ENVARC:sys/font.prefs or diskfont.library does not exist. Might be worth looking into. You might also consider a basic library cleanup: 1) SAS/C CopyMem() -> exec.library/CopyMem() 2) .b and .w branches to .l branches is slower and doesn't save much code (time consuming to fix) 3) divul/divsl always use the same form, remainder unneeded sometimes 4) mulu/muls doesn't use <ea> form most of the time either 5) Func_Table could be short version 6) Some smaller functions could be inlined (especially if only called from 1 location) 7) Scc Dn+NEG.B Dn+EXT.L Dn -> Scc Dn+EXT.L Dn+NEG.L Dn for 68060 The library is nearly clean of dead code which is very good for SAS/C . The library uses the library base A6 inefficiently which is tricky and slow to eliminate . I do have the whole library disassembled, reassembled and appears to be working but it is large (~4MB with the ADis comments). Are you reassembling the whole library or are you just patching? |
10 September 2012, 00:19 | #9 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Hi Matt,
thank you for all your recommended improvements. I will add them to the ToDo-list, but atm, I do not even have a recompilable version of the workbench.library. Usually, I won't start to make any changes to the existing code before I can recompile it with the result of getting a 100 % identical executable again. I didn't have the time yet to build a commented ASM source listing. That's why I only patched the v45.131 with a hex editor, in order to avoid any label movements and maybe broken branches. I'm not sure, if I should start a workbench.library project before the icon.library is finished. The library meight be nearly clean of dead code, but I'm sure there is a very large easter egg in the workbench.library too which corresponds with other parts in the original icon.library (both written by Olaf Barthel) and also in IPrefs (the easter egg manager). I still don't know how to trigger that large easter egg. I just know the hidden tags. Last edited by PeterK; 10 September 2012 at 00:34. |
10 September 2012, 03:50 | #10 |
Banned
Join Date: Jan 2010
Location: Kansas
Posts: 1,284
|
Hi Peter,
Yes, it's more risky to create a recompiled version of an executable but it's easier to work with and the savings are nice. I've tediously patched by hand with a hex editor also. ADis can list file offsets which makes it easier. Let me know if you want my disassembled version of the workbench.library. I know where most of the trouble spots for ADis are and how to correct them. I could do a basic cleanup too. There is always a working original version to roll back to if there is a problem. I can see trying to isolate the problem by reducing the possibility of introducing more problems though . I doubt eliminating the easter eggs in workbench.library will save much. More could probably be saved by combining duplicate text. I see "rexxsyslib.library" twice for example. The diskfont.library had 3 versions of the same string in some cases. It's interesting what is found in programs sometimes. |
22 September 2012, 00:43 | #11 | |
Registered User
Join Date: Dec 2011
Location: Poland
Posts: 166
|
Quote:
http://privat.bahnhof.se/wb409723/bl...00/romcomp.htm I hope it will be useful. |
|
22 September 2012, 01:03 | #12 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Thanks tom256 !
Very interesting, I've never heard anything of Kickstart 40.55 before. I will make a screenshot or copy. My information about new functions is based on the LVO listings. |
03 October 2012, 03:04 | #13 |
Registered User
Join Date: Sep 2007
Location: Melbourne/Australia
Posts: 4,400
|
Carry on the good work guys, make those system libraries as fast and bug free as possible
|
16 October 2012, 18:20 | #14 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
the patch for 45.132 fails here. version of original says 45.131 ( size 191928 ), command line is ok: "incorrect version of original file". disabled JIT in winuae ( you never know ...). what am I doing wrong?
|
16 October 2012, 21:19 | #15 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Your workbench.library 45.131 is NOT the original, it's probably a version of 131 which I once modified to make it usable with Kickstart 3.0. It was included in one of the demo packages. You can see the difference with a hex editor and the date of the original should be 28.06.2006. My version will have a newer date and a different ID string inside.
|
16 October 2012, 22:04 | #16 |
Registered User
Join Date: Feb 2012
Location: #DrainTheSwamp
Posts: 4,545
|
yes, from icon.library demo adf. i'll look for the real one.
Edit: found workbench.library 45.127 in BoingBag #1. patch for 45.132 is working now, but version says 45.131 after patching. Last edited by emufan; 16 October 2012 at 22:57. |
17 October 2012, 09:14 | #17 |
Registered User
Join Date: Apr 2010
Location: Amigaplanet
Posts: 645
|
@PeterK
If there will be a final version from the workbench.library, it would be also nice to get this information on a1k. Or just a small PM to me. |
17 October 2012, 21:23 | #18 |
Registered User
Join Date: Apr 2005
Location: digital hell, Germany, after 1984, but worse
Posts: 3,365
|
Hi apex,
no need to worry about that since there is already a thread at a1k.org, too: http://www.a1k.org/forum/showthread....170#post551170 However, please don't expect that I would start writing a new workbench.library soon. I've no intentions to do anything like this ATM. |
14 November 2012, 22:08 | #19 |
Registered User
Join Date: Dec 2011
Location: Poland
Posts: 166
|
Works fine with WinUAE.
|
14 November 2012, 22:14 | #20 |
Paranoid Amigoid
Join Date: Mar 2008
Location: Athens/Greece
Age: 45
Posts: 1,978
|
Not only with WinUAE but with the real thing as well
I have it from day 1 and never experienced a problem in my heavy custom setup. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cannot open "workbench.library" | amigatv | project.ClassicWB | 10 | 28 April 2019 14:43 |
Patch for Workbench version requester | Leandro Jardim | request.Apps | 8 | 19 November 2011 20:41 |
three in one? (SCSI Patch,Mac Patch,MapRom) | RogerWilco09 | support.Apps | 0 | 05 May 2009 16:56 |
looking for Amigaguide.library v44.5 patch | voxel | request.Apps | 5 | 03 October 2006 20:44 |
Making a shared library from a gcc .a library | JoJo | Coders. General | 1 | 10 March 2003 19:06 |
|
|