- 22 Jan, 2013 1 commit
-
-
Jeffrey Lee authored
Add new HAL call, HAL_IRQMax, to allow the kernel to determine the number of IRQ lines/devices at runtime Detail: hdr/HALEntries - Reuse the old HAL_MonitorLeadID call number for HAL_IRQMax hdr/KernelWS - Rearrange CursorChunkAddress workspace a bit. Removed unused OldOscliBuffs and a couple of pre-HAL allocations, and made DefIRQ1Vspace the same size for all build configs. Add an IRQMax var to zero page workspace to cache the value returned by HAL_IRQMax. s/HAL - Initialise IRQMax shortly after HAL initialisation. Revise ClearPhysRAM comment to reflect which vars are preserved in the current version of the code. s/NewIRQs - Strip out a fair bit of pre-HAL code to make the file more readable. Update OS_ClaimDeviceVector/OS_ReleaseDeviceVector to check against IRQMax instead of the MaxInterrupts compile-time limit. Admin: Tested on BB-xM, Iyonix, RiscPC, Pi Although the OS will now nominally adapt at runtime to how many IRQ devices there are, it's still using MaxInterrupts as an upper limit as the device claimant table has a fixed memory allocation. Version 5.35, 4.79.2.182. Tagged as 'Kernel-5_35-4_79_2_182'
-
- 17 Jan, 2013 1 commit
-
-
Robert Sprowson authored
OS_CallAfter and OS_CallEvery were treating the delay in R0 as a signed number, limiting its possible range. The PRM didn't require this (a -ve delay doesn't make sense, so implicitly times are unsigned), reworked to allow times up to 0xFFFFFBFF. Aside: OSLib exports these functions as 'int', but it doesn't seem to make a distinction for unsigned versus signed anyway (other unsigned arguments are plain int too) The 'callx' library was already prototyped with unsigned times back in 1997 Added comment to hdr/Options about FirstUnpluggableModule - since the keyboard and mouse drivers got moved out of the kernel in 3.50, the original intent (to not allow you to unplug vital modules) has long since been lost, and really the only use of this value is to save 8 bits of CMOS frugal bits. Version 5.35, 4.79.2.181. Tagged as 'Kernel-5_35-4_79_2_181'
-
- 10 Jan, 2013 1 commit
-
-
Robert Sprowson authored
Permits applications to query what value would be used in the event of a CMOS reset for a given configure value. Notably, the configure plugins will use this in favour of 'ResetCMOS'. hdr/Options: retire the 'Select16BitSound' switch, add comment for ChecksumCMOS switch hdr/KernelWS: DuffEntry and Nowhere moved here Kernel.s: Unused OSMD removed, retire single use of SPIRQ in favour of r13_irq Middle.s: Retire SPIRQ NewReset.s: Trim out 300+ lines of CMOS reset defaults, call OS_NVMemory 6 instead PMF/i2cutils.s: CMOS reset default code and table moved here with refactoring Note, the previous code preserved YearCMOS during the zeroing, only to unconditionally write it later - so have removed it from the zeroing step. Note, the locations 80-111 are now considered as system CMOS in the allocations hence are now wiped too (previously they got skipped as user CMOS during R-power-on). Tested on OMAP3 ROM with delete-power-on and R-power-on variants, and a simple BASIC program to read locations 0-255 via OS_NVMemory. Version 5.35, 4.79.2.180. Tagged as 'Kernel-5_35-4_79_2_180'
-
- 05 Dec, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/vdu/vducursoft - TeletextFlashTest now stores the updated TeletextCount before calling SetVinit. This provides some protection against getting stuck in an infinite loop (+ stack overflow) if SetVinit takes longer than 1 VSync to complete (or some other catastrophe occurs) Admin: Tested on Raspberry Pi Version 5.35, 4.79.2.179. Tagged as 'Kernel-5_35-4_79_2_179'
-
Jeffrey Lee authored
Detail: s/Middle - Added OS_ReadSysInfo 13 to allow the kernel to validate a key handler before the owner attempts to install it Resources/UK/Messages - Text for new "Bad key handler" error s/GetAll, s/PMF/Def - Get rid of now obsolete s/PMF/Def file. It only contained definitions for pre-HAL hardware, and for the key handler layout (now in Hdr:Keyboard) hdr/KeyWS - Increased size of KeysDown array so it can hold 768 keys instead of 160. Trim a couple of obsolete variables, and increase CurrKey/OldKey from 1 byte to 4 bytes. s/PMF/key, s/PMF/osbyte - Main bulk of the changes for the new key handling. All the important interfaces are now able to deal with extended (i.e. > 8 bit) internal key numbers, and the kernel is able to cope with key handlers which use 16 bit internal/low level key numbers instead of 8 bit. Admin: Tested on Pandora & BB-xM Requires HdrSrc-2_20 Version 5.35, 4.79.2.178. Tagged as 'Kernel-5_35-4_79_2_178'
-
- 21 Nov, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/HALDevice - Added HALDeviceSysPeri_BMU device type and some device IDs for the BMUs in the Pandora & TouchBook Admin: Tested in OMAP3 ROM build Version 5.35, 4.79.2.177. Tagged as 'Kernel-5_35-4_79_2_177'
-
- 17 Nov, 2012 1 commit
-
-
Robert Sprowson authored
Temporary assignment changed to one from Hdr:NewErrors. Version 5.35, 4.79.2.176. Tagged as 'Kernel-5_35-4_79_2_176'
-
- 28 Oct, 2012 3 commits
-
-
Robert Sprowson authored
More haste, less speed. Retagged as Kernel-5_35-4_79_2_175.
-
Robert Sprowson authored
Version 5.35, 4.79.2.175. Tagged as 'Kernel-5_35-4_79_2_175'
-
Robert Sprowson authored
Variously the call to TranslateError was either followed (outside the switch) by an unnecessary SETV, or missing SETV for the non international case. Added DMA controller HAL device for IOMD. Version 5.35, 4.79.2.174. Tagged as 'Kernel-5_35-4_79_2_174'
-
- 14 Oct, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/ARMops - Added branch predictor maintenance to WB_CR7_LDa ARMops. If the entire instruction cache is being invalidated then the branch predictors will be invalidated for us, but for ranged invalidation we need to handle it ourselves. Admin: Tested briefly on Raspberry Pi with high processor vectors Appears to fix Configure and its plugins misbehaving in various ways Version 5.35, 4.79.2.173. Tagged as 'Kernel-5_35-4_79_2_173'
-
- 09 Oct, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/NewReset - WimpIconiseButton is bit 7 of WimpDragMoveLimitCMOS, not bit 2 Admin: Tested on Raspberry Pi Version 5.35, 4.79.2.172. Tagged as 'Kernel-5_35-4_79_2_172'
-
- 08 Oct, 2012 1 commit
-
-
Steve Revill authored
Default CMOS tweaks now apply for the RPi hardware. Was missed in the previous commit. You can now build the Kernel without the ROM debug output stuff that's enabled for odd-numbered builds, by passing FREEZE_DEV_REL=TRUE into the makefile. For example, in the Components file, you'd add: -options FREEZE_DEV_REL=TRUE onto the Kernel line. Version 5.35, 4.79.2.171. Tagged as 'Kernel-5_35-4_79_2_171'
-
- 07 Oct, 2012 1 commit
-
-
Robert Sprowson authored
The kernel recently took back ownership of the *CACHE command and it's configure counterpart, but wasn't reading the CMOS value on startup. Spotted while looking at bus transactions on IOMD, and wondering where they all are, then realising it's all running from the cache. Version 5.35, 4.79.2.170. Tagged as 'Kernel-5_35-4_79_2_170'
-
- 06 Oct, 2012 1 commit
-
-
Steve Revill authored
- LMTransport IP (was NetBEUI) - FreewayAutoAddress now "off" - WimpIconiseButton now "on" - CDROMDrives now 0 for RPi (was 1) Version 5.35, 4.79.2.169. Tagged as 'Kernel-5_35-4_79_2_169'
-
- 30 Sep, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/HAL, s/NewReset - Moved IIC initialisation to just after timer initialisation, and crucially, before keyboard scan initialisation. This makes things a lot easier for the HAL if it wants to use IIC during the keyboard scan (previously IIC would be enabled inbetween HAL_KbdScanSetup and the first call to HAL_KbdScan) hdr/HALDevice - Added a device ID for the Pandora audio controller Admin: Tested on Pandora Version 5.35, 4.79.2.168. Tagged as 'Kernel-5_35-4_79_2_168'
-
Robert Sprowson authored
STB default = off, desktop default = on. Collapsed single use of 'ErrorsInR0' switch. Version 5.35, 4.79.2.167. Tagged as 'Kernel-5_35-4_79_2_167'
-
- 21 Sep, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/HALDevice - Added new HID device type, Keyboard sub-type, and Pandora keyboard device ID Admin: Tested on Pandora, rev C2 BB, rev A2 BB-xM, rev C1 TouchBook Version 5.35, 4.79.2.166. Tagged as 'Kernel-5_35-4_79_2_166'
-
- 18 Sep, 2012 3 commits
-
-
Jeffrey Lee authored
Detail: Merge the RPi branch with the HAL branch, ending RPi branch development Brief summary of changes brought in: * Added HAL_VideoStartupMode to allow the HAL to specify a startup mode for the OS * Fixed addresses being sent to GraphicsV_SetDMAAddress being wrong for external framestores (addresses were given as if internal framestore was in use) * Add InverseTextTransparency option for limited compile-time support for targets where framebuffer alpha channel is important * Fix ConfiguredLanguage for non-Tungsten builds * Update ARMv6 CPU detection to read cache parameters from cache type register instead of using KnownCPUTable * Add HALDebugHexTX/TX2/TX4 debug routines for writing out numbers via HAL * Use HAL_TimerIRQClear when clearing timer 0 interrupt instead of just HAL_IRQClear * Initialise FileLangCMOS using defines from Hdr:FSNumbers instead of magic numbers. Use SDFS on M_ARM11ZF. * Improved software mouse pointer support; software pointer now removed & restored in some of the same places the text cursor is * Improve support for external framestores; driver is now able to grow/shrink/move the framestore on mode changes if bit 5 of GraphicsV_DisplayFeatures R0 is set * GraphicsV_FramestoreAddress now has a default claimant which calls HAL_VideoFramestoreAddress Admin: Tested on Raspberry Pi, Iyonix, OMAP3, IOMD Version 5.35, 4.79.2.165. Tagged as 'Kernel-5_35-4_79_2_165'
-
Jeffrey Lee authored
Detail: Merge the HAL branch into the RPi branch, prior to merging RPi to HAL Brief summary of main changes brought in: * Added *cache functionality previously provided by ARM module * Added "CMOS RAM reset" message on startup when CMOS has been wiped by keypress * Renamed HAL Video entries from HAL_Video_XXX to HAL_VideoXXX * Dropped mjsHAL macros, GRAB/STASH macros * Fixed pseudo-VRAM allocation when machine has exactly 16MB of RAM * Added OS_Hardware 5 * Use OS_SerialOp GetDeviceName for getting serial device name * Drop HAL_MonitorLeadID * Rework default GraphicsV_IICOp handler Admin: Tested on Raspberry Pi with high processor vectors Version 5.35, 4.79.2.147.2.23. Tagged as 'Kernel-5_35-4_79_2_147_2_23'
-
Jeffrey Lee authored
Fix addresses sent to GraphicsV_SetDMAAddress when external framestore in use. Add ID for BCM2835 VDU HAL device. Detail: hdr/KernelWS, s/vdu/vdudriver, s/vdu/vduwrch - Fixed wrong addresses being sent to GraphicsV_SetDMAAddress when an external framestore is in use. Previously VideoPhysAddr was being treated as if it was the base of screen memory, but that's only the case if an internal framestore is in use. Since VideoPhysAddr is part of PhysRamTable it's not possible to change it to point to an external framestore, so a new workspace variable, TrueVideoPhysAddr, is used instead. hdr/HALDevice - Added device ID for BCM2835 VDU device s/PMF/IIC - Corrected an incorrect comment in IICDoOp Admin: Tested on Raspberry Pi with high processor vectors Version 5.35, 4.79.2.147.2.22. Tagged as 'Kernel-5_35-4_79_2_147_2_22'
-
- 08 Sep, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/GPIODevice - Removed existing 'unknown' revision and added 'B rev 1' and 'B rev 2' in its place, ready for new HAL that can report the board revision. Admin: Tested on Raspberry Pi (B rev 1) Version 5.35, 4.79.2.147.2.21. Tagged as 'Kernel-5_35-4_79_2_147_2_21'
-
- 07 Sep, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: Docs/RPiNotes - Deleted, contents no longer relevant s/HAL, s/Kernel, s/vdu/vduswis, s/pmf/key - Cleaned up debug code s/NewIRQs - No need to piggy back on timer 0 IRQ to generate a fake VSync; PushModeInfo already claims/releases TickerV as appropriate if video driver doesn't provide a VSync IRQ. s/NewReset - Re-enable LookForHALRTC call, the stack imbalance bug was fixed before the Pi changes were merged in s/vdu/vducursoft - Streamline PostWrchCursor a bit by only preserving R14 around RestorePointer if the software pointer is in use s/vdu/vdudriver - Amend ModeChangeSub improvements to ensure old external framestore handling logic is used if driver doesn't support framestore growth/realloc Admin: Tested on Raspberry Pi with high processor vectors Kernel now looks to be in a good state for merging back into HAL branch Note - Software mouse pointer support in vducursoft only checks HALVideoFeatures, so doesn't take into account the capabilities of any GraphicsV driver that may be in use. Version 5.35, 4.79.2.147.2.20. Tagged as 'Kernel-5_35-4_79_2_147_2_20'
-
- 03 Sep, 2012 1 commit
-
-
Steve Revill authored
Version 5.35, 4.79.2.147.2.19. Tagged as 'Kernel-5_35-4_79_2_147_2_19'
-
- 02 Sep, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/HALEntries - Add new HAL_Video_StartupMode HAL entry to allow the HAL to specify a startup mode s/HAL, s/Kernel - Tweaked debug routines s/vdu/vdudriver - Make use of HAL_Video_StartupMode in InitialiseMode to decide what initial mode should be. Clean up some hacks & debug. Improve handling of external framestores; if bit 5 of GraphicsV_DisplayFeatures r0 is set, the kernel will now allow the display driver to grow/shrink/move its framestore in response to mode changes. s/vdu/vdugrafv - Adjust default GV_FramestoreAddress implementation to only claim vector if HAL returns a framestore s/vdu/vduswis - Re-enable FindOKMode Admin: Tested on Raspberry Pi with high processor vectors Version 5.35, 4.79.2.147.2.18. Tagged as 'Kernel-5_35-4_79_2_147_2_18'
-
- 20 Aug, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/HALDevice - Added new HAL devices and types from RPi branch Admin: Untested! Version 5.35, 4.79.2.164. Tagged as 'Kernel-5_35-4_79_2_164'
-
- 14 Aug, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/HAL - Fix crash in OS_Hardware 4/5 when encountering devices which are newer than the caller supports Admin: Untested, but same fix as Pi branch Version 5.35, 4.79.2.163. Tagged as 'Kernel-5_35-4_79_2_163'
-
Jeffrey Lee authored
Fix crash in OS_Hardware 4 when encountering devices which are newer than the caller supports. Add new device IDs for Raspberry Pi audio devices. Detail: s/HAL - Fixed crash in OS_Hardware 4 when encountering devices which are newer than the caller supports hdr/HALDevice - Added new HAL devices for Raspberry Pi audio devices Admin: Tested on Raspberry Pi with high processor vectors Version 5.35, 4.79.2.147.2.17. Tagged as 'Kernel-5_35-4_79_2_147_2_17'
-
- 02 Aug, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/HALDevice - Add new inter-processor communications device type. Add device IDs for Pi/BCM2835 GPIO interface & VCHIQ hdr/GPIODevice - Add Raspberry Pi GPIO type & interface revision (currently 'unknown') Admin: Tested in Raspberry Pi ROM with high processor vectors New IDs required for BCM2835-0_17 Version 5.35, 4.79.2.147.2.16. Tagged as 'Kernel-5_35-4_79_2_147_2_16'
-
- 20 Jul, 2012 1 commit
-
-
Ben Avison authored
Detail: Revisions Kernel-5_35-4_79_2_153 and Kernel-5_35-4_79_2_161 merged with one trivial conflict. Admin: Confirmed that this builds, but not tested on hardware. Version 5.35, 4.79.2.147.2.15. Tagged as 'Kernel-5_35-4_79_2_147_2_15'
-
- 09 Jul, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/PMF/osinit - MonitorLeadType is now stored in ZeroPage again, instead of at whatever R1 happens to point at (which seemed to be 0 when I tried it) Admin: Tested on BB-xM with high processor vectors Version 5.35, 4.79.2.162. Tagged as 'Kernel-5_35-4_79_2_162'
-
Robert Sprowson authored
Previously HAL_PhysInfo took one of two routes to get the arrangment table of arrangement table size. Reorganised to accept a subreason to allow other physical info to be requested. Version 5.35, 4.79.2.161. Tagged as 'Kernel-5_35-4_79_2_161'
-
- 08 Jul, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: s/NewReset - Change default filesystem to SDFS for ARM11 builds, as that's somewhat more appropriate than ADFS when on the Pi. Also now using filesystem numbers from Hdr:FSNumbers instead of magic numbers. Admin: Builds, but untested Version 5.35, 4.79.2.147.2.14. Tagged as 'Kernel-5_35-4_79_2_147_2_14'
-
- 07 Jul, 2012 1 commit
-
-
Jeffrey Lee authored
Detail: hdr/HALDevice - Added new device IDs used by BCM2835 DMA controller & DMA channels Admin: Tested in BCM2835 ROM Version 5.35, 4.79.2.147.2.13. Tagged as 'Kernel-5_35-4_79_2_147_2_13'
-
- 06 Jul, 2012 1 commit
-
-
Ben Avison authored
Detail: This functions like OS_Hardware 4, but enumerates devices in the chronological order of registration. Admin: Builds, but untested. Version 5.35, 4.79.2.160. Tagged as 'Kernel-5_35-4_79_2_160'
-
- 04 Jul, 2012 1 commit
-
-
Robert Sprowson authored
No accepts r0 = b31-24 set 0 b23-16 fully qualified IIC address b15-0 starting offset r1 = buffer pointer r2 = number of bytes to tranfer r4 = b31-24 display number b23-16 head b15-0 reason code (=14) Now returns r0 = result codes as per HAL_IICTransfer() r1 = buffer pointer incremented by number of bytes transferred r2 = number of bytes *not* transferred r4 = 0 Removed '_' after Video in entry numbers to be consistent with other HAL entry naming, and HAL_VideoFlybackDevice. Added IICStatus return numbers to Hdr:HALEntries. Stop calling HAL_MonitorLeadID as only IOMD implemented it - just guess VGA until the graphics driver says otherwise. Version 5.35, 4.79.2.159. Tagged as 'Kernel-5_35-4_79_2_159'
-
- 02 Jul, 2012 1 commit
-
-
Ben Avison authored
Admin: Required by HAL/OMAP3 0.68 Version 5.35, 4.79.2.158. Tagged as 'Kernel-5_35-4_79_2_158'
-
- 01 Jul, 2012 1 commit
-
-
Robert Sprowson authored
NewReset.s: The one remaining use of SetBorder was to denote the user asked for and got a CMOS reset, which in the HAL case emitted a warning because setting the border is potentially complicated/slow. To solve this, the reset is noted and replaces the normal RISC OS banner with a warning message. The behaviour and text for this comes from the BBC Master, though the escape key is used in place of break since a reset isn't actually needed. Moved the unused cputable inside its corresponding switch. Two occurrences of WriteS_Translated would have executed the message in the V=1 case. KernelWS/Resources: Flag added to workspace, translation added to messages files. Heapman.s: Commented out use of SetBorder removed. Kernel.s: SetBorder macro removed. Middle.s: Switched out use of SetBorder removed. Super1.s: Conditional WriteS_Translated would try to execute the message in the opposite condition case. Version 5.35, 4.79.2.157. Tagged as 'Kernel-5_35-4_79_2_157'
-
- 26 Jun, 2012 2 commits
-
-
Jeffrey Lee authored
Detail: s/VMSAv6 - Prefetch abort handler address now looked up as ZeroPage-relative Admin: Untested, but same fix as on RPi branch Version 5.35, 4.79.2.156. Tagged as 'Kernel-5_35-4_79_2_156'
-
Jeffrey Lee authored
Detail: s/VMSAv6 - Prefetch abort handler address now looked up as ZeroPage-relative Admin: Tested on Raspberry Pi with high processor vectors Previous commit was a harmless, unintentional merge from HAL branch to RPi branch due to folder mixup Version 5.35, 4.79.2.147.2.12. Tagged as 'Kernel-5_35-4_79_2_147_2_12'
-