Commit bbc7ad20 authored by Jeffrey Lee's avatar Jeffrey Lee Committed by ROOL
Browse files

Make supervisor stack inaccessible to user mode

Previously the supervisor stack was read-only in user mode, but since
the supervisor stack is typically empty when the CPU is in user mode,
it's questionable whether any software actually makes use of this
facility.

To simplify support for the long descriptor page table format (which
doesn't support the user-RO + privileged-RW access mode), let's
try and remove usermode SVC stack access completely.

Tested on Raspberry Pi 4

Version 6.48. Tagged as 'Kernel-6_48'
parent 4341900a
......@@ -9,12 +9,12 @@
GBLS Module_ApplicationDate
GBLS Module_HelpVersion
GBLS Module_ComponentName
Module_MajorVersion SETS "6.47"
Module_Version SETA 647
Module_MajorVersion SETS "6.48"
Module_Version SETA 648
Module_MinorVersion SETS ""
Module_Date SETS "16 Jan 2021"
Module_ApplicationDate SETS "16-Jan-21"
Module_ComponentName SETS "Kernel"
Module_FullVersion SETS "6.47"
Module_HelpVersion SETS "6.47 (16 Jan 2021)"
Module_FullVersion SETS "6.48"
Module_HelpVersion SETS "6.48 (16 Jan 2021)"
END
/* (6.47)
/* (6.48)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 6.47
#define Module_MajorVersion_CMHG 6.48
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 16 Jan 2021
#define Module_MajorVersion "6.47"
#define Module_Version 647
#define Module_MajorVersion "6.48"
#define Module_Version 648
#define Module_MinorVersion ""
#define Module_Date "16 Jan 2021"
......@@ -16,6 +16,6 @@
#define Module_ComponentName "Kernel"
#define Module_FullVersion "6.47"
#define Module_HelpVersion "6.47 (16 Jan 2021)"
#define Module_LibraryVersionInfo "6:47"
#define Module_FullVersion "6.48"
#define Module_HelpVersion "6.48 (16 Jan 2021)"
#define Module_LibraryVersionInfo "6:48"
......@@ -149,7 +149,7 @@ ZeroPage DefAreaFlags Read, PageFlags_Unavailable
ScratchSpace DefAreaFlags Read, PageFlags_Unavailable
DCacheClean DefAreaFlags None ; ideally, svc read only, user none but hey ho
CAM DefAreaFlags None, PageFlags_Unavailable
SVCStack DefAreaFlags Read, PageFlags_Unavailable
SVCStack DefAreaFlags None, PageFlags_Unavailable
IRQStack DefAreaFlags None, PageFlags_Unavailable
ABTStack DefAreaFlags None, PageFlags_Unavailable
UNDStack DefAreaFlags None, PageFlags_Unavailable
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment