RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "FileCore+Error+Numbers" does not exist. Please create it now, or hit the "back" button in your browser.

FileCore_Create

Programmer's Reference Manuals
» Part 15 – SWI Calls
» FileCore
» FileCore_Create

FileCore_Create

(SWI &40541)
Entry
R0 Pointer to descriptor block
R1 Pointer to calling module’s base
R2 Pointer to calling module’s private word
R3 Drives configuration
R4 Suggested size for directory cache
R5 Suggested number of 1024 byte buffers or file cache
R6 Hard disc map sizes
Exit
R0 Pointer to FileCore instance private word
R1 Address to call after completing background floppy op
R2 Address to call after completing background hard disc op
R3 Address to call to release FIQ after low level op
R4 Preserved ?
R5 Preserved ?
R6 Preserved ?

Use

The purpose of this call is to create a new instantiation of an ADFS like filing system.

Notes

It must be called on initialisation by any filing system module that is adding itself to FileCore.

The only start up option currently supported is ‘No directory state’ which is indicated by setting bit 30. All other bits representing start up options must be clear.

If the filing system doesn’t support background transfer of data, R5 must be zero.

The hard disc map size are given using 1 byte for each disc, with drive 4 in the low byte, and drive 7 in the high byte. The byte should contain ‘map size’/256 (ie 2 for the old map). This is just a good guess and shouldn’t involve starting up the drives to read from them. You might store this in the CMOS RAM.

You must store the FileCore instance private word returned by this SWI in your modules workspace; it’s your module’s means of identifying itself to FileCore.

When your module calls the addresses returned in R1-R3, it must be in SVC mode with R12 holding the value of R0 that this SWI returned. Interrupts need to be disabled. R0, R1, R3-R11 and R13 will be preserved by FileCore over these calls.

See also

  • Drives Configuration
  • FileCore
  • FileCore FS Descriptor Block
  • OS_Byte CMOS Settings
Created on December 5, 2009 16:27:49 by Alan Robertson (52)? (127.0.0.1)
Edit | Views: Print | Source | Linked from: FileCore SWI Calls, Drives Configuration, FileCore_MiscOp 6, FileCore FS Descriptor Block, FileCore Error Numbers

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys