Document Title Specification of Operating System Document Owner AUTOSAR Gbr Document Responsibility AUTOSAR Gbr Document Version 2.0.1 Document Status Final
Total Page:16
File Type:pdf, Size:1020Kb
Specification of Operating System V2.0.1 Document Title Specification of Operating System Document Owner AUTOSAR GbR Document Responsibility AUTOSAR GbR Document Version 2.0.1 Document Status Final Document Change History Date Version Changed by Change Description 26.06.2006 2.0.1 AUTOSAR Layout Adaptations Administration 28.04.2006 2.0.0 AUTOSAR Document structure adapted to common Administration Release 2.0 SWS Template. • Major changes in chapter 10 • Structure of document changed partly • Other changes see chapter 14 28.06.2005 1.0.0 AUTOSAR Initial Release Administration 1 of 101 AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System V2.0.1 Disclaimer This specification as released by the AUTOSAR Development Partnership is intended for the purpose of information only. The use of material contained in this specification requires membership within the AUTOSAR Development Partnership or an agreement with the AUTOSAR Development Partnership . The AUTOSAR Development Partnership will not be liable for any use of this Specification. Following the completion of the development of the AUTOSAR Specifications commercial exploitation licenses will be made available to end users by way of written License Agreement only. No part of this publication may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher. The word AUTOSAR and the AUTOSAR logo are registered trademarks. Copyright © 2004-2006 AUTOSAR Development Partnership. All rights reserved. Advice to users of AUTOSAR Specification Documents: AUTOSAR Specification Documents may contain exemplary items (exemplary reference models, "use cases", and/or references to exemplary technical solutions, devices, processes or software). Any such exemplary items are contained in the Specification Documents for illustration purposes only, and they themselves are not part of the AUTOSAR Standard. Neither their presence in such Specification Documents, nor any later AUTOSAR compliance certification of products actually implementing such exemplary items, imply that intellectual property rights covering such exemplary items are licensed under the same rules as applicable to the AUTOSAR Standard. 2 of 101 AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System V2.0.1 Table of Contents 1 Introduction and functional overview ................................................................... 7 2 Acronyms and abbreviations ............................................................................... 8 2.1 Glossary of Terms........................................................................................ 8 3 Related documentation...................................................................................... 11 3.1 Input documents......................................................................................... 11 3.2 Related standards and norms .................................................................... 11 3.2.1 OSEK .................................................................................................. 11 3.2.2 HIS ...................................................................................................... 11 3.2.3 ISO/IEC............................................................................................... 11 3.3 Company Reports, Academic Work, etc..................................................... 12 4 Constraints and assumptions ............................................................................ 13 4.1 Existing Standards ..................................................................................... 13 4.2 AUTOSAR Configuration Process.............................................................. 13 4.3 Limitations .................................................................................................. 14 4.3.1 Hardware ............................................................................................ 14 4.3.2 Programming Language...................................................................... 14 4.3.3 Miscellaneous ..................................................................................... 15 4.4 Applicability to car domains........................................................................ 15 5 Dependencies to other modules........................................................................ 15 6 Requirements Traceability................................................................................. 16 7 Functional specification ..................................................................................... 21 7.1 Core OS ..................................................................................................... 21 7.1.1 Background & Rationale ..................................................................... 21 7.1.2 Requirements...................................................................................... 21 7.2 Schedule Tables......................................................................................... 22 7.2.1 Background & Rationale ..................................................................... 22 7.2.2 Requirements...................................................................................... 24 7.3 Synchronization with Global Time .............................................................. 25 7.3.1 Background & Rationale ..................................................................... 25 7.3.2 Requirements...................................................................................... 28 7.4 Stack Monitoring Facilities.......................................................................... 28 7.4.1 Background & Rationale ..................................................................... 28 7.4.2 Requirements...................................................................................... 29 7.5 OS-Application ........................................................................................... 29 7.5.1 Background & Rationale ..................................................................... 29 7.5.2 Requirements...................................................................................... 31 7.6 Protection Facilities .................................................................................... 31 7.6.1 Memory Protection .............................................................................. 31 7.6.1.1 Background & Rationale .............................................................. 31 7.6.1.2 Requirements............................................................................... 32 7.6.2 Timing Protection ................................................................................ 33 7.6.2.1 Background & Rationale .............................................................. 33 3 of 101 AUTOSAR_SWS_OS - AUTOSAR confidential - Specification of Operating System V2.0.1 7.6.2.2 Requirements............................................................................... 35 7.6.2.3 Implementation Notes .................................................................. 36 7.6.3 Service Protection ............................................................................... 36 7.6.3.1 Invalid Object Parameter or Out of Range Value ......................... 37 7.6.3.1.1 Background & Rationale ........................................................... 37 7.6.3.1.2 Requirements ........................................................................... 37 7.6.3.2 Service Calls Made from Wrong Context ..................................... 37 7.6.3.2.1 Background & Rationale ........................................................... 37 7.6.3.2.2 Requirements ........................................................................... 38 7.6.3.3 Services with Undefined Behaviour ............................................. 39 7.6.3.3.1 Background & Rationale ........................................................... 39 7.6.3.3.2 Requirements ........................................................................... 39 7.6.3.4 Service Restrictions for Non-Trusted OS-Applications................. 40 7.6.3.4.1 Background & Rationale ........................................................... 40 7.6.3.4.2 Requirements ........................................................................... 40 7.6.3.5 Service Calls on Objects in Different OS-Applications ................. 41 7.6.3.5.1 Background............................................................................... 41 7.6.3.5.2 Requirements ........................................................................... 41 7.6.4 Protecting the Hardware used by the OS............................................ 41 7.6.4.1 Background & Rationale .............................................................. 41 7.6.4.2 Requirements............................................................................... 41 7.6.4.3 Implementation Notes .................................................................. 42 7.6.5 Providing »Trusted Functions«............................................................ 42 7.6.5.1 Background & Rationale .............................................................. 42 7.6.5.2 Requirements............................................................................... 42 7.7 Protection Errors ........................................................................................ 43 7.7.1 Background & Rationale ....................................................................