TLFSmem ok to be developped further as memtlsf

Date 13-Nov-2007 21:14:29
Topic: hardware OS4


I have been given permission by Chris Hodges to reassemble and release TLSFmem, and to rename it and add a remark in the readme.

Currently I have noticed some enforcer hits and crashes happen when running Wipeout 2097 (68k memtracker) and when quitting AmigaAmp.


When starting YAM 2.4p1, this too causes some enforcer hits to occur. I am not 100% sure if that is down to a bug in YAM or TLSFmem yet.

In an email, Chris informed me that he has not looked to make any fixes, so I will wait until December to see if maybe that situation will change. If not, I will begin to reassemble it.

That is possible, blitzbasic code is too reassemble.

If you can reproduce any problems with TLSFmem, please let me know. The more bad situations that happen, the easier it is to find the problem.

Finally, I would like to ask if any other AOS developers can help here too, particularly with the enforcer hits caused by YAM are shown below:

Enforcer Hit! Bad program
Illegal WORD WRITE to: 65adadc6 PC: 10030ef2
Data: badedeec 0000000e 00000018 6db5b5cd f7f7f7f7 00000000 109d6f64
00000022
Addr: 100407c8 f7f7f7f7 10ab2e14 109d6f5c 109ba9e8 109d6f64 10000868
10ab2dd8
Stck: 10030ef2 109ba9e8 109d6f5c 10ab2e14 badedeec 0000000f 00000030
109d6f5c
Stck: 100407c8 0000000f 00000030 00f835c4 10000868 109d6f7c 10ab2e14
715f0041
Stck: 00000004 109b5428 10030a6e 100a8034 10ab2dcc 0000001e 00000400
0000010c
Stck: 10030f0c 10ab2dcc 10961be0 00000000 00000001 0000001e 100a6ce0
0000002e
Stck: 100a6d40 00000001 109b52a0 00000000 10ab2d8c 1109f084 100a6c14
00000012
----> 10030ef2 - "tlsfmem" Hunk 0000 Offset 0000083a
----> 109ba9e8 - "AmigaAMP" Hunk 0004 Offset 00000000
----> 109b5428 - "h0:w-pr/Enforcer/Wipeout/Wipeout" Hunk 0000 Offset
00000520
----> 10030a6e - "tlsfmem" Hunk 0000 Offset 000003b6
----> 10030f0c - "tlsfmem" Hunk 0000 Offset 00000854
----> 109b52a0 - "h0:w-pr/Enforcer/Wipeout/Wipeout" Hunk 0000 Offset
00000398
10030eda : 2669 fffc MOVEA.L (A1, -$0004) == $f7f7f7f3,A3
10030ede : c749 EXG.L A3,A1
10030ee0 : 2011 MOVE.L (A1),D0
10030ee2 : 0240 fffc AND.W #$fffc,D0
10030ee6 : d680 ADD.L D0,D3
10030ee8 : 91a8 001c SUB.L D0,(A0, $001c) == $100407e4
10030eec : 6100 ff56 BSR.W #$ff56
10030ef0 : 6122 BSR.B #$00000022
10030ef2 : * 2389 38fc MOVE.L A1,(A1, D3.L*1, $fffffffc) ==
$65adadc0

10030ef6 : 2003 MOVE.L D3,D0
10030ef8 : 0071 0001 3802 OR.W #$0001,(A1, D3.L*1, $02) == $65adadc6
10030efe : 5483 ADD.L #$00000002,D3
10030f00 : d1a8 001c ADD.L D0,(A0, $001c) == $100407e4
10030f04 : 2283 MOVE.L D3,(A1)
10030f06 : 6100 ff3c BSR.W #$ff3c
10030f0a : 6150 BSR.B #$00000050
10030f0c : 4cdf 0c1c MVMEL.L #$0c1c,(A7)+
Name: "AmigaAMP"

Enforcer Hit! Bad program
Illegal LONG WRITE to: 65788e21 PC: 10ecc7fe
Data: 00000004 deadf00d 10fee6aa 00000078 00000020 00000021 00000000
7fffe2a3
Addr: 657870c5 65788e25 65787065 657870c5 11d4b308 00000000 657870a5
11d4b2b4
Stck: 00000038 7fffffff 00000020 10ece782 10000868 10000868 00000000
65787065
Stck: 00000000 11d4b310 badedeed 00020202 00a6a620 01000000 000ab2fc
00028000
Stck: 00a689b8 20000868 ffff00e0 0008d0d8 00010000 00000008 00000000
00ecd9dc
Stck: ffff0868 0000e178 10000001 10f74fd2 10000868 1103c310 10eed320
10c5d6b0
Stck: 11d4b278 00000048 00000000 00000001 00000000 10eca75c 10eed320
10eca4dc
----> 10ecc7fe - "h0:w-pr/Enforcer/Wipeout/Wipeout" Hunk 0000 Offset
000027a6
----> 10ece782 - "h0:w-pr/Enforcer/Wipeout/Wipeout" Hunk 0000 Offset
0000472a
----> 10f74fd2 - "LIBS:muimaster.library" Hunk 0000 Offset 00005b0a
----> 10eca75c - "h0:w-pr/Enforcer/Wipeout/Wipeout" Hunk 0000 Offset
00000704
----> 10eca4dc - "h0:w-pr/Enforcer/Wipeout/Wipeout" Hunk 0000 Offset
00000484
10ecc7ec : 4e75 RTS.L
10ecc7ee : 4e71 NOP.L
10ecc7f0 : 594f SUBA.W #$00000004,A7
10ecc7f2 : 2f07 MOVE.L D7,-(A7)
10ecc7f4 : 2e00 MOVE.L D0,D7
10ecc7f6 : 2f41 0004 MOVE.L D1,(A7, $0004) == $11d4b2b8
10ecc7fa : 2248 MOVEA.L A0,A1
10ecc7fc : 6006 BT .B #$00000006
10ecc7fe : * 22ef 0004 MOVE.L (A7, $0004) == $11d4b2b8,(A1)+
10ecc802 : 5987 SUB.L #$00000004,D7
10ecc804 : 7004 MOVE.L #$00000004,D0
10ecc806 : be80 CMP.L D0,D7
10ecc808 : 62f4 BHI.B #$fffffff4
10ecc80a : 7000 MOVE.L #$00000000,D0
10ecc80c : be80 CMP.L D0,D7
10ecc80e : 630c BLS.B #$0000000c
10ecc810 : 41ef 0004 LEA.L (A7, $0004) == $11d4b2b8,A0
Name: "YAM"




This article comes from AmigaWorld - Amiga Community Portal
https://amigaworld.net

The URL for this story is:
https://amigaworld.net/article.php?storyid=4058