IRC logs for #opendune on OFTC at 2010-03-07
            
00:09:10 <DorpsGek> SVN: truebrain (r945) -Add: C-ified Main()
00:11:30 <DorpsGek> SVN: truebrain (r946) -Remove (r945): removed now unused emu_ functions
00:14:50 <TrueBrain> I didn;t really clean it up, I guess I have to do that
00:14:59 <TrueBrain> but at least we now can peak into what is going on ;)
00:15:16 <TrueBrain> owh, and it should return an exit value, but I added exit()s for now ;)
00:15:23 <TrueBrain> night all
01:22:44 *** TrueBrain has quit IRC
01:23:08 *** TrueBrain has joined #openDune
02:32:09 *** PeterT has joined #openDune
04:36:19 *** glx has quit IRC
10:46:37 <Xaroth|Work> morning
11:40:31 <TrueBrain> morning
11:45:06 <TrueBrain> @kban PeterT still not
11:45:06 *** DorpsGek sets mode: +b *!~PeterT@rdlbnc.com
11:45:07 *** PeterT was kicked by DorpsGek (still not)
12:20:13 <TrueBrain> @calc 0x3e80
12:20:13 <DorpsGek> TrueBrain: 16000
12:20:16 <TrueBrain> @calc 0x7d0
12:20:16 <DorpsGek> TrueBrain: 2000
12:20:33 <TrueBrain> @calc 59D8
12:20:33 <DorpsGek> TrueBrain: Error: invalid syntax (<string>, line 1)
12:20:34 <TrueBrain> @calc 0x59D8
12:20:34 <DorpsGek> TrueBrain: 23000
12:20:42 <TrueBrain> @calc 0x7530
12:20:42 <DorpsGek> TrueBrain: 30000
12:20:49 <TrueBrain> @calc 0x1770
12:20:49 <DorpsGek> TrueBrain: 6000
12:21:46 <TrueBrain> @calc 0x84530
12:21:46 <DorpsGek> TrueBrain: 542000
12:41:13 <DorpsGek> SVN: truebrain (r947) -Fix: rewrite hex values to decimal, and remove unneeded complexity
12:45:37 <Xaroth|Work> :o
13:01:14 <TrueBrain> now where can I put some wrapper-code for my XMS handler .. hmm ...
13:03:19 <TrueBrain> I made syscalls similar to int, but now I have to break that .. else I need to implement the XMS in 16bit code .. nah1
13:20:30 <TrueBrain> @calc 0x1000
13:20:30 <DorpsGek> TrueBrain: 4096
13:23:01 <TrueBrain> @calc 0x8000
13:23:01 <DorpsGek> TrueBrain: 32768
13:23:16 <TrueBrain> wuth? Dune allocates ALL extended memory, no matter how big it is :p
13:23:25 <TrueBrain> I just told him I had 32MB free
13:23:27 <TrueBrain> it allocated 32MB
13:34:54 <TrueBrain> and now it breaks ...
13:37:03 *** glx has joined #openDune
13:37:03 *** ChanServ sets mode: +o glx
13:37:30 <TrueBrain> morning glx :)
13:37:42 <TrueBrain> I am enabling the XMS driver :) So far it was easy, but now the dune code does something weird ...
13:37:52 <glx> hello
13:38:38 <TrueBrain> it jumps back to a 0000:0000 ...
13:39:02 <glx> wrong return cs:ip ?
13:39:44 <TrueBrain> the 'cs' is 0x0, where the rest is valid
13:40:56 <glx> you are replacing 23E1 functions with malloc and free ?
13:41:13 <TrueBrain> no, I am adding a XMS driver in the libemu
13:41:19 <TrueBrain> besides 217E does the XMS calls
13:41:57 <TrueBrain> hmm ... I have an idea what is going wrong ...
13:42:10 <TrueBrain> I was abusing the syscall code I already injected
13:42:23 <TrueBrain> but it has a reti, not a retf
13:42:42 <glx> so popf
13:43:37 <TrueBrain> yes, that works :)
13:44:13 <TrueBrain> now 0B, the most annoying one
13:47:58 <TrueBrain> I tell that there is 32MB free
13:48:04 <TrueBrain> should be sufficient, not?
13:48:37 <glx> that's a lot :)
13:48:55 <glx> I guess usual available was 4MB at that time
13:53:13 <TrueBrain> I have to return a 32bit pointer of the memory block .. which is an issue on 64bit systems
13:53:20 <TrueBrain> I guess the lower 32bit part should be unique enough
13:55:04 <glx> 64bit is not supported for now anyway :)
13:55:10 <TrueBrain> why not?
13:55:19 <TrueBrain> OpenDUNE works fine in 64bit
13:55:54 <glx> ha right -m32 is just for JIT
13:56:43 <TrueBrain> okay, now the move function itself
13:57:25 <glx> you malloc the 32MB and return pointer to parts of it ?
13:57:52 <TrueBrain> no, I tell the system I have 32MB of extended memory
13:57:58 <TrueBrain> now reduced it to 16MB btw, but okay
13:58:03 <TrueBrain> Dune then allocates all of it once
13:58:05 <TrueBrain> releases it
13:58:12 <TrueBrain> and then allocates the blocks it needs
13:58:16 <TrueBrain> each allocate is a malloc
13:59:13 <TrueBrain> tss, I do tell him the move went wrong, but it ignores it :)
14:02:15 <TrueBrain> okay, it starts to swap in and out
14:02:17 <TrueBrain> of course completely failing
14:02:21 <TrueBrain> and now I got to go
14:02:24 <TrueBrain> so have a good day :)
14:02:33 <glx> have fun :)
14:57:12 *** Xaroth|Work has quit IRC
14:58:05 *** Xaroth|Work has joined #openDune
14:58:05 *** ChanServ sets mode: +o Xaroth|Work
20:48:33 <Xaroth> @base 10 2 67108864
20:48:33 <DorpsGek> Xaroth: 100000000000000000000000000
20:49:03 <Xaroth> @calc 10 ** 26
20:49:03 <DorpsGek> Xaroth: 100000000000000004764729344
20:49:07 <Xaroth> heh, floats ftw
20:50:10 <Xaroth> @calc 2 ** 26
20:50:10 <DorpsGek> Xaroth: 67108864
20:50:18 <Xaroth> @calc 2 ** 27
20:50:18 <DorpsGek> Xaroth: 134217728
20:55:42 <Xaroth> @base 10 2 262144
20:55:42 <DorpsGek> Xaroth: 1000000000000000000
20:56:07 <Xaroth> @base 10 2 33554432
20:56:07 <DorpsGek> Xaroth: 10000000000000000000000000
22:13:29 *** Yexo has quit IRC
23:34:18 <TrueBrain> finally back home .. lets see if I can finish this XMS now :p
23:34:22 <TrueBrain> I am so close ...
23:38:30 <TrueBrain> 16 : 0/3EEE0EDC : 3/0
23:38:32 <TrueBrain> 16 : 0/3EEE0EDC : 3/DE2C0
23:38:33 <TrueBrain> 16 : 3/0 : 0/3EEE0ED0
23:38:35 <TrueBrain> 16 : 0/3EEE0ED0 : 3/0
23:38:36 <TrueBrain> 16 : 0/3EEE0EC0 : 3/44ADFFF0
23:38:45 <TrueBrain> swapping in and swapping out .. 16 bytes? Silly stuff .. silly silly stuff :)
23:44:52 <TrueBrain> 3/44ADFFF0 ... that is weird
23:45:02 <TrueBrain> @calc 0x44ADFFF0 / 1024 / 1024
23:45:02 <DorpsGek> TrueBrain: 1098.87498474
23:45:11 <TrueBrain> 1098 MiB ...
23:45:12 <TrueBrain> lol
23:54:43 <TrueBrain> oeh, I saw the initial screen! :o
23:56:27 <TrueBrain> it really allocate the biggest free blob it can get
23:56:31 <TrueBrain> what a waste of memroy