16 February 2009, 16:45 | #1 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Accessing dos.library during boot time
Is it possible to open dos.library and get DOS file access during boot time? OpenLibrary fails, and calling FindResident and InitResident will just put me right in AmigaDOS with the CLI open.
|
16 February 2009, 17:07 | #2 |
Total Chaos forever!
Join Date: Aug 2007
Location: Waterville, MN, USA
Age: 49
Posts: 2,186
|
Dos.library should always be accessible. It is in the Kickstart. I don't know why OpenLibrary would fail. Are you specifying an incompatible version number?
|
16 February 2009, 17:14 | #3 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
I don't think that loading files via dos.library during boot is possible. Why do you need something like that anyway? "Workaround" would be to use trackdisk.device to load files directly.
|
16 February 2009, 17:26 | #4 | |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
I don't really need to open files during boot time but I'm very curious to know if it's doable without that expansion.library trick. Using trackdisk.device works I guess, though if you intend to store data as DOS files it will be one hell of a workaround. If anyone knows how to, please post |
|
16 February 2009, 17:37 | #5 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
dos isn't available at boot time, it gets initialized after boot block returns and it can't be initialized like other libraries. Dos is special case..
|
16 February 2009, 17:44 | #6 |
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Alright I'll take that as a definite answer. Thanks.
|
16 February 2009, 18:34 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
Create task from boot block that polls library list and continue when dos.library appears?
Note that even if dos.library is available, you couldn't call any interesting functions because boot block code isn't using Process environment. btw, WinUAE clipboard sharing does some (stupid) tricks. It starts a task during boot phase, checks every few seconds if dos.library is initialized, opens it, creates a process which finally can open clipboard.device.. |
16 February 2009, 18:47 | #8 |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
I'd just store the pointer to the filename somewhere and then just have a small loader which would load the file (like it was done in all the boot menus back in the day). This of course is not exactly what you want (as the file is not loaded during boot) but may be ok as workaround?
|
16 February 2009, 19:18 | #9 | ||
Join Date: Jul 2008
Location: Sweden
Posts: 2,269
|
Quote:
Quote:
|
||
16 February 2009, 19:26 | #10 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Yeah, that's what I meant. If you really want to load directly from bootblock you need to use trackdisk.device. If you save your files on disk with a custom tool which saves all offsets/lengths in a table it shouldn't be much of a problem to do that. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Open-source dos.library | Don_Adan | Coders. System | 273 | 02 September 2020 00:42 |
execute function from dos.library | Foul | Coders. Asm / Hardware | 5 | 08 August 2012 17:56 |
dos.library Open() hangs | MrD | Coders. Asm / Hardware | 15 | 24 July 2012 19:55 |
Dos.library question. | Thorham | Coders. General | 2 | 11 January 2011 21:03 |
dos.library LockRecord() function fails | LamboJay | support.WinUAE | 12 | 24 September 2010 21:05 |
|
|