1) Use of SWI commands
Area addreg, CODE, READONLY
ENTRY
MAIN
ADR r0, ThunbProg 1; (Why add 1? When the BX command jumps to the specified address to execute the program, if the (BX {cond} Rm) Rm bit [0] is 1, then, the flag T in CPSR is automatically set during the jump to interpret the target code as the Thunb code)
BX r0
CODE16
ThunbProg
Mov r2, #2
Mov r3, #3
Add r2, r2, r3
ADR r0, ARMProg
BX ro
CODE32
ARMProg
Mov r4, #4
Mov r5, #5
Add r4, r4, r5
St
From: http://www.diybl.com/course/6_system/linux/Linuxjs/20090515/167024.html
A Unix system sends a system call to the kernel to implement most interfaces between user-mode processes and hardware devices. System calls are services provided by the operating system. User Programs reference various services provided by the kernel through various system calls. The execution of system calls puts user programs into the kernel, this is completed by SWI soft
The SWI module manages software interruption services. These interrupt service programs are closely related to Hwi hardware interrupt service programs. Generally, most of the daily processing functions are placed in these software interrupt service programs for management and operation.
I. Overview of the SWI Module
In the DSP/BIOS kernel, the threads managed and run by the system are divided into four leve
Describes how to use SWI for an interruption.Privileged mode: A protection mode in which superisor SVC is used by the OS.It is actually an interruption. For hardware users, the interruption mode is defined by the user.1. Understand the available registers of normal user statusR0 ~ R7 universal R8 ~ R12 independent registers [some mode register groups are independent] R13-SP [independent] R14-LR [independent] PC [general] CPSR [independent]R0 ~ R7 Gene
Last month saw Prolog this language, its special grammar attracted me, but after a period of study, I found that it is not as magical as the legend on the Internet, but I am still interested in it, there are predecessors said Prolog itself is not strong, But used as a supplementary language to solve some special problems or very effective, it happens that I am a C #, I looked up how to combine Prolog and C #, but I Baidu came out of the information can only be used to describe the sparse. No way
Chapter 1 of the title page introduces 1.1 SWI-Prolog1.2 status 1.3 compliant with ISO 1.4 do you want to use SWI-Prolog? 1.5 xpce prolog1.6 Release Notes 1.7 donated SWI-Prolog project 1.8 thanks Chapter 2 Overview 2.1 Quick Start 2.2 user's initialization file 2.3 initialization file and target 2.4 command line option 2.5 GNU emacs interface 2.6 online help 2.7
The SWI exception interrupt command allows an application to call code in system mode in user mode. in the operating system, the code is called by the system,
How can this process be implemented? Let's learn with questions!
The SWI command contains a 24-bit immediate number (call interrupt number), which indicates the specific call function to be requested by the user, therefore, you need to read the inter
Take a look at the function call details:
Example:
1 In main. c
MicIrqFuncSet (timerrentint, 2, (unsigned int) IRQ_Timer1 );
The micIrqFuncSet function calls the function in viccontrol. h.
2 In viccontrol. h
_ Inline unsigned int micIrqFuncSet (unsigned int uiChannel,Unsigned int uiType,Unsigned int uiFuncAddr){Return swiHandle (0x100, uiChannel, uiType, uiFuncAddr );}
The inline function is used here, that is, the swiHandle function is actually called.
_ Sw
System Process zygote (2) -- zygote. rc Script, zygotezygote. rc
The sunset is fading down. Who can draw the beauty of the evening? Where is my home and my home? My lover, I think about you like this. Do you have the slightest concern? -- Xu Zhimo's dream of the seaside
Ilocker: Follow Android Security (New entry, 0 basics) QQ: 2597294287
In the previous note, the zygote process was started as a service by
#! /Bin/bash
#
# RC this file is responsible for starting/stopping
# Services when the runlevel changes.
#
# Original Author:
# Miquel van smoorenburg,
#
# Check a file to be a correct runlevel script
Check_runlevel ()
{
# Check ifthe file exists at all.-X: checks whether the file name has executable attributes.
[-X "$1"] | return 1
# Rejectbackup files and files generated by rpm.
Case "$1" in
*. Rpmsave | *. rpmorig | *. rpmnew | *~ | *. Orig)
Ret
Mozilla's update to Firefox 3.5 this past few days is fast enough, today, a new RC version (shown as RC 3) again released. Firefox 3.5 RC 3 is mainly based on user feedback on previous versions of the revision. Interestingly, the author in its dialog box did not find the RC words, but the official version number, which
Rc. local file of Raspberry Pi (set startup), raspberry rc. local
To run a command or program when Raspberry Pi is started, you need to add the commandRc. localFile. This is useful when you want to run the program directly without configuring it after Raspberry Pi is powered on, or do not want to start the program manually every time.
Another method to replace a scheduled task is to use cron and crontab.
Ed
Android initialization language (init. rc syntax), androidinit. rc
This article is the translation of ANDROID_SOURCE/system/core/init/readme.txt.
Android initialization Language
The android initialization language contains four types of statements:
Action
Command
Service
Option
All statements are row-oriented and separate several tokens contained in each line by spaces. The C-style backslash can be us
Android Startup Process Analysis (8) parsing the init. rc action, androidinit. rc
######################################## #####
This article is original in extreme cold ice. For more information, see the source.
######################################## #####
The previous chapter describes how to parse init. rc after it is loaded during android startup.
Parsing i
Mozilla has updated Firefox 3.5 so fast over the past few days. Today, a new RC version (shown as RC 3) is released. Firefox3.5 RC 3 was corrected based on user feedback from previous versions. Interestingly, I did not find the RC in the dialog box, but the official version number, which may indicateThe official versio
The root directory of Android contains a series of important configuration files: init. RC init. XXXXX. RC.
The code for parsing these configuration files in Android is in the system \ core \ init directory.
The core file is init. C. For more information about the syntax, see readme.txt.
This article briefly introduces the init. RC syntax. The init. c analysis wi
Android uses the init. rc trigger script to hide built-in applications. androidinit. rc[Implementation logic] sets a flag in property_service.c. In the settings, the interface changes the flag and uses init. the declared service in rc listens for changes in the flag space, explicitly starts the declared service, executes the corresponding script, and renames the
#! /Bin/sh# Start/stop/restart mysqld.## Copyright 2003 Patrick J. volkerding, Concord, CA# Copyright 2003 slackware Linux, inc., Concord, CA# Copyright 2008 Patrick J. volkerding, sebeka, Mn## This program comes with no warranty, to the extent permitted by law.# You may redistribute copies of this program under the terms of# GNU General Public License.
# To start MySQL automatically at boot, be sure this script is executable:# Chmod 755/etc/rc. d/
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.