CN105138360A - Wearable device system function call method and wearable device - Google Patents

Wearable device system function call method and wearable device Download PDF

Info

Publication number
CN105138360A
CN105138360A CN201510511399.4A CN201510511399A CN105138360A CN 105138360 A CN105138360 A CN 105138360A CN 201510511399 A CN201510511399 A CN 201510511399A CN 105138360 A CN105138360 A CN 105138360A
Authority
CN
China
Prior art keywords
parameter
svc
purpose register
general
system function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510511399.4A
Other languages
Chinese (zh)
Inventor
黄艳锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huizhou TCL Mobile Communication Co Ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201510511399.4A priority Critical patent/CN105138360A/en
Publication of CN105138360A publication Critical patent/CN105138360A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a wearable device system function call method and a wearable device. The system function call method includes the following steps: when an application receives a downloading request, a processor is triggered to generate an instruction for requesting privileged operation or accessing system resource, and the current parameters of a general register are stored; a SVC number is acquired from the instruction for requesting privileged operation or accessing system resource, and a system function corresponding to the SVC number is acquired according to the SVC number, wherein the SVC number is used to indicate a system service to be requested; and the system function is called according to the parameters of the general register, and a downloading process is run in response to the downloading request. By adopting the scheme, a third party application can be downloaded, and therefore, the function of the wearable device is expanded.

Description

A kind of system function call method of wearable device and wearable device thereof
Technical field
The application relates to communication technical field, particularly relates to a kind of system function call method and wearable device thereof of wearable device.
Background technology
At present, because intelligent watch has the incomparable portability of smart mobile phone and low-power consumption feature, user uses specific occasion (e.g., run, sleep, walk) widely.The processor of existing intelligent watch great majority configuration be ARM flush bonding processor (such as, ARMCortex-M4), its operating system is generally real time operating system (RTOS), such as, FreeRTOS, RTEMS, ecos, ucOS, uclinux etc.
But, these real time operating system RTOS all can not realize the system call function of the operating systems such as similar android, iOS, windows, therefore, third party application download function cannot be realized, thus cause user cannot pass through the function of upgrading intelligent watch.
Summary of the invention
The technical matters that the application mainly solves is to provide a kind of system function call method and wearable device thereof of wearable device, can realize the download of third party application to expand the function of wearable device.
For solving the problems of the technologies described above, the technical scheme that the application adopts is: the system function call method providing a kind of wearable device, described method comprises: when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources and preserves the current parameter of general-purpose register; From the instruction of described request privileged operation or access system resources, obtain SVC numbering, and obtain system function corresponding to described SVC numbering according to described SVC numbering, wherein, described SVC numbering is used to indicate the system service that will ask; System function according to the parameter call of described general-purpose register, responds described download request and runs downloading process.Wherein, the instruction that when described application program receives download request, Trigger processor produces request privileged operation or access system resources and the step of preserving the current parameter of general-purpose register are specially: when application program receives download request, Trigger processor produces the instruction of request privileged operation or access system resources and preserves the parameter that in general-purpose register, current and described application program is associated.
Wherein, the described instruction that Trigger processor produces request privileged operation or access system resources when application program receives download request and the step of preserving the current parameter of general-purpose register are specially: when application program receives download request, Trigger processor produces the instruction of request privileged operation or access system resources and preserves the parameter that in general-purpose register, current and described application program is associated.
Wherein, described according to the parameter call of described general-purpose register system function, respond described download request and run the step of downloading process and comprise: the parameter obtaining the transmission of described system function needs from the parameter of the described general-purpose register preserved; Jump to described system function according to described SVC numbering, and need the parameter of transmission according to described system function, respond described download request and run downloading process.
Wherein, the step of preserving parameter relevant to described application program in general-purpose register is specially: the parameter be associated application program current and described in described general-purpose register and the memory location of described parameter is corresponding preserves.
Wherein, described according to the parameter call of described general-purpose register system function, after responding the step of described download request operation downloading process, described method also comprises: after completing download, is the parameter of the described general-purpose register preserved by the Parameter reconstruction of described general-purpose register.
For solving the problems of the technologies described above, the technical scheme that the application adopts is: the wearable device providing a kind of wearable device, and described wearable device comprises: generation module, memory module, acquisition module and calling module; Described generation module is used for when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources; Described memory module is used for, when described generation module produces the instruction of described request privileged operation or access system resources, preserving the parameter that general-purpose register is current; Described acquisition module is used for obtaining SVC numbering the instruction of described request privileged operation or the access system resources produced from described generation module, and obtain system function corresponding to described SVC numbering according to described SVC numbering, wherein, described SVC numbering is used to indicate the system service that will ask; The described system function that described in the parameter call that described calling module is used for the described general-purpose register preserved according to described memory module, acquisition module obtains, responds described download request and runs downloading process.
Wherein, described processor is arm processor.
Wherein, described memory module is for preserving the parameter that in general-purpose register, current and described application program is associated.
Wherein, described calling module comprises acquiring unit and call unit; Described acquiring unit is used for the parameter obtaining the transmission of described system function needs from the parameter of the described general-purpose register preserved; Described calling module is used for jumping to described system function according to described SVC numbering, and needs the parameter of transmission according to described system function, responds described download request and runs downloading process.
Wherein, described memory module is used for that the memory location of the parameter that application program current and described in described general-purpose register is associated and described parameter is corresponding preserves; The Parameter reconstruction of described general-purpose register, also for after completing download, is the parameter of the described general-purpose register that described memory module is preserved by described calling module.
Such scheme, wearable device is when application program receives download request, identify application program and need calling system function, Trigger processor produces SVC instruction and preserves the current parameter of general-purpose register, from SVC instruction, obtain SVC numbering, and obtain system function corresponding to SVC numbering, according to the parameter call system function of general-purpose register according to SVC numbering, response download request runs downloading process, can realize the download of third party application to expand the function of wearable device.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of system function call method one embodiment of the application's wearable device;
Fig. 2 is the process flow diagram of another embodiment of system function call method of the application's wearable device;
Fig. 3 is the structural representation of the application's wearable device one embodiment;
Fig. 4 is the structural representation of another embodiment of the application's wearable device.
Embodiment
In below describing, in order to illustrate instead of in order to limit, propose the detail of such as particular system structure, interface, technology and so on, thoroughly to understand the application.But, it will be clear to one skilled in the art that and also can realize the application in other embodiment not having these details.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders the description of the application.
Consult Fig. 1, Fig. 1 is the process flow diagram of system function call method one embodiment of the application's wearable device.The executive agent of the present embodiment is wearable device, and wearable device can be intelligent watch, also can be other wearable device.The operating system that the wearable device of the present embodiment adopts is real time operating system.Wherein, real time operating system refers to when extraneous event or data produce, can receive and be processed with enough fast speed, the result of its process production control process or disposal system can make quick response again at the appointed time, dispatch all available resources and complete real-time task, and control the operating system of the harmonious operation of all real-time tasks.
In the present embodiment, the system function call method of wearable device comprises the following steps:
S101: when application program receives download request, Trigger processor produces the instruction of request privileged operation or access system resources and preserves the current parameter of general-purpose register.
When the application program that user is provided by the application market of wearable device or other page download third party, send download request to wearable device.
When wearable device monitor application program (the mounted browser of wearable device or application market etc.) receive download request time, being identified as this application program needs calling system function (system function is the function of operating system).Wearable device Trigger processor produces the instruction of request privileged operation or access system resources, i.e. SVC instruction, with abnormal by SVC instruction triggers processor.
Wherein, processor can be ARM flush bonding processor, such as, and ARMCortex-M4, but be not limited to this, can also be other flush bonding processor.SVC instruction embedded in a numeral, and this numeral is generally SVC numbering, and SVC numbering is used to indicate the system service that will ask.
When wearable device produces SVC instruction, the parameter that the general-purpose register of specimens preserving device is current.Such as, parameter current for general-purpose register remains in storehouse by wearable device.
S102: obtain SVC numbering from the instruction of described request privileged operation or access system resources, and obtain system function corresponding to described SVC numbering according to described SVC numbering, wherein, described SVC numbering is used to indicate the system service that will ask.
Wearable device responds this SVC instruction and runs SVC handling procedure, SVC numbering is obtained the request privileged operation produced from processor or the instruction (SVC instruction) of access system resources, and obtain system function corresponding to SVC numbering according to SVC numbering, according to the entrance of this system function, this system function is jumped to from application program, wherein, SVC numbering is used to indicate the system service that will ask.Now, the system service that will ask that SVC numbering is corresponding is download service.
S103: system function according to the parameter call of described general-purpose register, responds described download request and runs downloading process.
Wearable device is after jumping to system function corresponding to SVC numbering, and the parameter acquiring parameter pointer according to the general-purpose register preserved performs this system function, responds this download request and runs downloading process.Wherein, this parameter pointer is the parameter of system function.
Be understandable that, after wearable device completes downloading task, terminate this calling system function, log off function, the parameter of memory location each in general-purpose register correspondence is reverted to the parameter of the general-purpose register preserved in step S101, and return application program.
When wearable device runs the application program downloaded, and when needing calling system function, can according to the method call system function described in step S101 ~ S103.
Such scheme, wearable device is when detecting that application program receives download request, identify application program and need calling system function, Trigger processor produces SVC instruction and preserves the current parameter of general-purpose register, SVC numbering is obtained from SVC instruction, and obtain system function corresponding to SVC numbering according to SVC numbering, according to the parameter call system function of general-purpose register, response download request runs downloading process, can realize the download of third party application to expand the function of wearable device.
Consult Fig. 2, Fig. 2 is the process flow diagram of another embodiment of system function call method of the application's wearable device.The executive agent of the present embodiment is wearable device, and wearable device can be intelligent watch, also can be other wearable device.The operating system that the wearable device of the present embodiment adopts is real time operating system.Wherein, real time operating system refers to when extraneous event or data produce, can receive and be processed with enough fast speed, the result of its process production control process or disposal system can make quick response again at the appointed time, dispatch all available resources and complete real-time task, and control the operating system of the harmonious operation of all real-time tasks.
In the present embodiment, the system function call method of wearable device comprises the following steps:
S201: when application program receives download request, Trigger processor produces the instruction of request privileged operation or access system resources and preserves the parameter that in general-purpose register, current and described application program is associated.
When the application program that user is provided by the application market of wearable device or other page download third party, send download request to wearable device.
When wearable device monitor application program (in wearable device mounted browser or application market etc.) receive download request time, be identified as this application program and need calling system function (system function is the function of operating system), Trigger processor produces the instruction of request privileged operation or access system resources, i.e. SVC instruction, with abnormal by SVC instruction triggers processor.
Wherein, processor can be ARM flush bonding processor, such as, and ARMCortex-M4, but be not limited to this, can also be other flush bonding processor.
SVC instruction embedded in a numeral, and this numeral is generally SVC numbering, and SVC numbering is used to indicate the system service that will ask.
When wearable device produces SVC instruction, preserve the current parameter be associated with application program in general-purpose register.Such as, the parameter be associated with this application program current in general-purpose register remains in storehouse by wearable device.
S202: obtain SVC numbering from the instruction of described request privileged operation or access system resources, and obtain system function corresponding to described SVC numbering according to described SVC numbering, wherein, described SVC numbering is used to indicate the system service that will ask.
Wearable device responds this SVC instruction and runs SVC handling procedure, obtains SVC numbering the request privileged operation produced or the instruction (SVC instruction) of access system resources from processor, and obtains system function corresponding to SVC numbering according to SVC numbering.
Wherein, the program header of SVC handling procedure is realized by assembly routine, determines the memory location of SVC instruction in general-purpose register, and from SVC instruction, obtain SVC numbering by running SVC handling procedure.
SVC numbering is used to indicate the system service that will ask.Now, the system service that will ask that SVC numbering is corresponding is download service.
S203: obtain the parameter that described system function needs to transmit from the parameter of the described general-purpose register preserved.
Wearable device runs SVC handling procedure, according to the memory location of SVC instruction, obtains the parameter that this system function needs to transmit from the general-purpose register preserved in the current parameter be associated with this application program.
Wherein, the step of preserving parameter relevant to this application program in general-purpose register is specially: preserve corresponding for the memory location of the parameter that is associated with this application program current in general-purpose register and this parameter.
Need the parameter that the parameter transmitted can calculate for needing SVC to number corresponding system function.
S204: jump to described system function according to described SVC numbering, and need the parameter of transmission according to described system function, respond described download request and run downloading process.
Wearable device is after the system function getting SVC numbering and SVC numbering correspondence needs the parameter transmitted, need the Parameter transfer transmitted in the procedure subject (function body) of the SVC handling procedure adopting C language to write the system function of SVC numbering and SVC numbering correspondence, to search the entrance of system function corresponding to SVC numbering according to SVC numbering, and jump to this system function according to this entrance from application program, the system function corresponding according to SVC numbering needs the parameter transmitted to perform this system function, responds this download request and runs downloading process.
The Parameter reconstruction of described general-purpose register is the parameter of the described general-purpose register preserved by S205: after completing download.
After wearable device completes downloading task, terminate this calling system function and exit this system function, obtain the memory location of the current parameter that is associated with system function and this parameter in general-purpose register.
Afterwards, wearable device is according to the memory location of the parameter be associated with system function current in general-purpose register with this parameter, and the memory location of the parameter be associated with this application program in the general-purpose register preserved and this parameter, the parameter of memory location each in general-purpose register correspondence is reverted to the parameter of the general-purpose register preserved in step S201, and return application program.
When wearable device runs the application program downloaded, and when needing calling system function, can according to the method call system function described in step S201 ~ S205.
Such scheme, wearable device is when detecting that application program receives download request, identify application program and need calling system function, Trigger processor produces SVC instruction and preserves the current parameter of general-purpose register, SVC numbering is obtained from SVC instruction, and obtain system function corresponding to SVC numbering according to SVC numbering, according to the parameter call system function of general-purpose register, response download request runs downloading process, can realize the download of third party application to expand the function of wearable device.Wearable device calls owing to achieving system function, the separately compiling of application program and system function can be made, make third party application not have in system source code situation also can absolute coding to realize the function of its correspondence, can also prevent from affecting operating system because application program is made mistakes, the situation even causing operating system to be collapsed, improves the security of real time operating system.
Refer to Fig. 3, Fig. 3 is the structural representation of the application's wearable device one embodiment.Each module that wearable device in the present embodiment comprises, for performing each step in embodiment corresponding to Fig. 1 and Fig. 1, specifically refers to the associated description in embodiment corresponding to Fig. 1 and Fig. 1, does not repeat herein.The wearable device of this enforcement comprises generation module 310, memory module 320, acquisition module 330 and calling module 340.
Generation module 310 is for when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources.Such as, generation module 310 is when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources.Generation module 310 Trigger processor sends announcement information to memory module 320 and acquisition module 330 after producing the instruction of request privileged operation or access system resources.
The announcement information that memory module 320 sends for receiving generation module 310, when generation module 310 produces the instruction of request privileged operation or access system resources, preserves the parameter that general-purpose register is current.
Such as, memory module 320 receives the announcement information that generation module 310 sends, and when generation module 310 produces the instruction of request privileged operation or access system resources, preserves the parameter that general-purpose register is current.Memory module 320 sends announcement information to calling module 340 after keeping the current parameter of general-purpose register.
The announcement information that acquisition module 330 sends for receiving generation module 310, SVC numbering is obtained the request privileged operation produced from generation module 310 or the instruction of access system resources, and obtain system function corresponding to SVC numbering according to SVC numbering, wherein, SVC numbering is used to indicate the system service that will ask.
Such as, acquisition module 330 receives the announcement information that generation module 310 sends, SVC numbering is obtained the request privileged operation produced from generation module 310 or the instruction of access system resources, and obtain system function corresponding to SVC numbering according to SVC numbering, wherein, SVC numbering is used to indicate the system service that will ask.The information of system function corresponding for SVC numbering is sent to calling module 340 by acquisition module 330.
The information of the system function of the SVC numbering correspondence that calling module 340 sends for the announcement information and acquisition module 330 receiving memory module 320 transmission, according to the system function that the parameter call acquisition module 330 of the general-purpose register of memory module 320 preservation obtains, response download request runs downloading process.
Such scheme, wearable device is when detecting that application program receives download request, identify application program and need calling system function, Trigger processor produces SVC instruction and preserves the current parameter of general-purpose register, SVC numbering is obtained from SVC instruction, and obtain system function corresponding to SVC numbering according to SVC numbering, according to the parameter call system function of general-purpose register, response download request runs downloading process, can realize the download of third party application to expand the function of wearable device.
Refer to Fig. 4, Fig. 4 is the structural representation of another embodiment of the application's wearable device.Each module that wearable device in the present embodiment comprises, for performing each step in embodiment corresponding to Fig. 2 and Fig. 2, specifically refers to the associated description in embodiment corresponding to Fig. 2 and Fig. 2, does not repeat herein.The wearable device of this enforcement comprises generation module 410, memory module 420, acquisition module 430 and calling module 440.Wherein, calling module 440 comprises acquiring unit 441 and call unit 442.
Generation module 410 is for when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources.Wherein, processor is arm processor.
Such as, generation module 410 is when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources.Wherein, processor is arm processor.Generation module 410 Trigger processor sends announcement information to memory module 420 and acquisition module 430 after producing the instruction of request privileged operation or access system resources.
Memory module 420 is for preserving the current parameter be associated with application program in general-purpose register.Wherein, memory module 420 is specifically for by current with the parameter that application program is associated and the memory location of this parameter is corresponding preserves in general-purpose register.
Such as, memory module 420 receives the announcement information that generation module 410 sends, and when generation module 410 produces the instruction of request privileged operation or access system resources, preserves the current parameter be associated with application program in general-purpose register.Wherein, memory module 420 is for by current with the parameter that application program is associated and the memory location of this parameter is corresponding preserves in general-purpose register.
After memory module 420 keeps the current parameter be associated with application program of general-purpose register, the acquiring unit 441 to calling module 440 sends announcement information.
The announcement information that acquisition module 430 sends for receiving generation module 410, SVC numbering is obtained the request privileged operation produced from generation module 410 or the instruction of access system resources, and obtain system function corresponding to SVC numbering according to SVC numbering, wherein, SVC numbering is used to indicate the system service that will ask.
Such as, acquisition module 430 receives the announcement information that generation module 410 sends, SVC numbering is obtained the request privileged operation produced from generation module 410 or the instruction of access system resources, and obtain system function corresponding to SVC numbering according to SVC numbering, wherein, SVC numbering is used to indicate the system service that will ask.The information of system function corresponding for SVC numbering is sent to the acquiring unit 441 of calling module 440 by acquisition module 430.
The information of the system function of the SVC numbering correspondence that acquiring unit 441 sends for the announcement information and acquisition module 430 receiving memory module 420 transmission, obtains the parameter that this system function needs transmit from the parameter of the general-purpose register preserved.Such as, acquiring unit 441 receives the information of the system function of the announcement information of memory module 420 transmission and the SVC numbering correspondence of acquisition module 430 transmission, obtains the parameter of this system function needs transmission from the parameter of the general-purpose register preserved.Acquiring unit 441 after getting this system function and needing the parameter transmitted, the information of the system function that the SVC that sent by acquisition module 430 numbering is corresponding and get this system function and need the parameter information transmitted to send to call unit 442.
Call unit 442 needs the parameter information transmitted for the information and this system function receiving the system function of the SVC numbering correspondence of acquisition module 430 transmission, system function corresponding to SVC numbering is jumped to according to SVC numbering, and the parameter of transmission is needed according to this system function, response download request runs downloading process.
Such as, call unit 442 receives the information of the system function of the SVC numbering correspondence that acquisition module 430 sends and the parameter information of this system function needs transmission, system function corresponding to SVC numbering is jumped to according to SVC numbering, and the parameter of transmission is needed according to this system function, response download request runs downloading process.
The Parameter reconstruction of general-purpose register, also for after call unit 442 completes download, is the parameter of the general-purpose register that memory module 420 is preserved by acquiring unit 441.
Such scheme, wearable device is when detecting that application program receives download request, identify application program and need calling system function, Trigger processor produces SVC instruction and preserves the current parameter of general-purpose register, SVC numbering is obtained from SVC instruction, and obtain system function corresponding to SVC numbering according to SVC numbering, according to the parameter call system function of general-purpose register, response download request runs downloading process, can realize the download of third party application to expand the function of wearable device.Wearable device calls owing to achieving system function, the separately compiling of application program and system function can be made, make third party application not have in system source code situation also can absolute coding to realize the function of its correspondence, can also prevent from affecting operating system because application program is made mistakes, the situation even causing operating system to be collapsed, improves the security of real time operating system.
In more than describing, in order to illustrate instead of in order to limit, propose the detail of such as particular system structure, interface, technology and so on, thoroughly to understand the application.But, it will be clear to one skilled in the art that and also can realize the application in other embodiment not having these details.In other situation, omit the detailed description to well-known device, circuit and method, in order to avoid unnecessary details hinders the description of the application.

Claims (10)

1. a system function call method for wearable device, is characterized in that, described method comprises:
When application program receives download request, Trigger processor produces the instruction of request privileged operation or access system resources and preserves the current parameter of general-purpose register;
From the instruction of described request privileged operation or access system resources, obtain SVC numbering, and obtain system function corresponding to described SVC numbering according to described SVC numbering, wherein, described SVC numbering is used to indicate the system service that will ask;
System function according to the parameter call of described general-purpose register, responds described download request and runs downloading process.
2. method according to claim 1, is characterized in that, the described instruction that Trigger processor produces request privileged operation or access system resources when application program receives download request and the step of preserving the current parameter of general-purpose register are specially:
When application program receives download request, Trigger processor produces the instruction of request privileged operation or access system resources and preserves the parameter that in general-purpose register, current and described application program is associated.
3. method according to claim 1, is characterized in that, described according to the parameter call of described general-purpose register system function, respond described download request and run the step of downloading process and comprise:
The parameter that described system function needs to transmit is obtained from the parameter of the described general-purpose register preserved;
Jump to described system function according to described SVC numbering, and need the parameter of transmission according to described system function, respond described download request and run downloading process.
4. method according to claim 2, it is characterized in that, the step of preserving parameter relevant to described application program in general-purpose register is specially: the parameter be associated application program current and described in described general-purpose register and the memory location of described parameter is corresponding preserves.
5. the method according to any one of Claims 1-4, it is characterized in that, described according to the parameter call of described general-purpose register system function, after responding the step of described download request operation downloading process, described method also comprises: after completing download, is the parameter of the described general-purpose register preserved by the Parameter reconstruction of described general-purpose register.
6. a wearable device, is characterized in that, described wearable device comprises: generation module, memory module, acquisition module and calling module;
Described generation module is used for when application program receives download request, and Trigger processor produces the instruction of request privileged operation or access system resources;
Described memory module is used for, when described generation module produces the instruction of described request privileged operation or access system resources, preserving the parameter that general-purpose register is current;
Described acquisition module is used for obtaining SVC numbering the instruction of described request privileged operation or the access system resources produced from described generation module, and obtain system function corresponding to described SVC numbering according to described SVC numbering, wherein, described SVC numbering is used to indicate the system service that will ask;
The described system function that described in the parameter call that described calling module is used for the described general-purpose register preserved according to described memory module, acquisition module obtains, responds described download request and runs downloading process.
7. wearable device according to claim 6, is characterized in that, described processor is arm processor.
8. wearable device according to claim 6, is characterized in that, described memory module is for preserving the parameter that in general-purpose register, current and described application program is associated.
9. wearable device according to claim 6, is characterized in that, described calling module comprises acquiring unit and call unit; Described acquiring unit is used for the parameter obtaining the transmission of described system function needs from the parameter of the described general-purpose register preserved; Described calling module is used for jumping to described system function according to described SVC numbering, and needs the parameter of transmission according to described system function, responds described download request and runs downloading process.
10. wearable device according to claim 8, is characterized in that, described memory module is used for that the memory location of the parameter that application program current and described in described general-purpose register is associated and described parameter is corresponding preserves; The Parameter reconstruction of described general-purpose register, also for after completing download, is the parameter of the described general-purpose register that described memory module is preserved by described calling module.
CN201510511399.4A 2015-08-19 2015-08-19 Wearable device system function call method and wearable device Pending CN105138360A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510511399.4A CN105138360A (en) 2015-08-19 2015-08-19 Wearable device system function call method and wearable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510511399.4A CN105138360A (en) 2015-08-19 2015-08-19 Wearable device system function call method and wearable device

Publications (1)

Publication Number Publication Date
CN105138360A true CN105138360A (en) 2015-12-09

Family

ID=54723717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510511399.4A Pending CN105138360A (en) 2015-08-19 2015-08-19 Wearable device system function call method and wearable device

Country Status (1)

Country Link
CN (1) CN105138360A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368333A (en) * 2017-07-20 2017-11-21 福建瑞恒信息科技股份有限公司 Wearable device collocation method and system and configuration system based on graphical programming
CN109684049A (en) * 2018-11-23 2019-04-26 上海琪埔维半导体有限公司 A kind of routine call method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030077696A (en) * 2002-03-26 2003-10-04 주식회사 현대시스콤 Method for task level interrupt handling in realtime operating system
CN1570855A (en) * 2004-04-30 2005-01-26 浙江大学 Micro-kernel design method for ARM processor framework
CN1875347A (en) * 2003-10-29 2006-12-06 高通股份有限公司 System for providing transitions between operating modes of a device
US20070067771A1 (en) * 2005-09-21 2007-03-22 Yoram Kulbak Real-time threading service for partitioned multiprocessor systems
CN1943160A (en) * 2003-10-29 2007-04-04 高通股份有限公司 System for invoking a privileged function in a device
US20140108690A1 (en) * 2012-10-11 2014-04-17 Wind River Systems, Inc. System And Method for Operating System Aware Low Latency Interrupt Handling

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030077696A (en) * 2002-03-26 2003-10-04 주식회사 현대시스콤 Method for task level interrupt handling in realtime operating system
CN1875347A (en) * 2003-10-29 2006-12-06 高通股份有限公司 System for providing transitions between operating modes of a device
CN1943160A (en) * 2003-10-29 2007-04-04 高通股份有限公司 System for invoking a privileged function in a device
CN1570855A (en) * 2004-04-30 2005-01-26 浙江大学 Micro-kernel design method for ARM processor framework
US20070067771A1 (en) * 2005-09-21 2007-03-22 Yoram Kulbak Real-time threading service for partitioned multiprocessor systems
US20140108690A1 (en) * 2012-10-11 2014-04-17 Wind River Systems, Inc. System And Method for Operating System Aware Low Latency Interrupt Handling

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
FINDAWAY123: "ARM Cortex M4 SVC指令作用", 《HTTPS://BLOG.CSDN.NET/FINDAWAY123/ARTICLE/DETAILS/18148141/》 *
JOSEPHYIU,著;宋岩,译: "《ARM Cortex-M3权威指南》", 31 July 2009, 北京航空航天大学出版社 *
熄灯就睡: "STM32 SVCall", 《HTTPS://WWW.CNBLOGS.COM/2CATS/P/3714308.HTML》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107368333A (en) * 2017-07-20 2017-11-21 福建瑞恒信息科技股份有限公司 Wearable device collocation method and system and configuration system based on graphical programming
CN109684049A (en) * 2018-11-23 2019-04-26 上海琪埔维半导体有限公司 A kind of routine call method

Similar Documents

Publication Publication Date Title
US11210608B2 (en) Method and apparatus for generating model, method and apparatus for recognizing information
CN110691136B (en) Data interaction method and device, electronic equipment and storage medium
EP3486901B1 (en) Voice wakeup method, cloud server and computer-readable medium
CN106843953B (en) iOS system based application program transverse switching system and method
CN110825488A (en) Business processing method and device, electronic equipment and storage medium
US11016716B2 (en) Picture interface display method and apparatus according to jump protocol
US9411573B2 (en) Testing framework for applications
CN108958729B (en) Data processing method, device and storage medium
CN102782652A (en) Programmatically determining an execution mode for a request dispatch utilizing historic metrics
CA2495024A1 (en) System and method for adaptable provisioning of generic application content
DE602007000637D1 (en) System, method and mobile device for the management of wireless connections
US10331539B2 (en) Centralized dispatching of application analytics
US20200050450A1 (en) Method and Apparatus for Executing Instruction
CN111338623B (en) Method, device, medium and electronic equipment for developing user interface
US11740997B2 (en) Method and apparatus for debugging a device
CN108241496B (en) Smooth upgrading method and device for application program
CN113590363B (en) Data transmission method, device, electronic equipment and storage medium
US20200007656A1 (en) Method and apparatus for sending information
CN105743955A (en) Method for JavaScript object expansion
CN105138360A (en) Wearable device system function call method and wearable device
CN106557411B (en) Method and system for testing Hybrid application in Android system
CN106294119B (en) Test scheduling system and method and terminal equipment
US11704157B2 (en) Method and apparatus for comparing acquired cloud resource use information to thresholds to recommend a target cloud resource instance
CN106383869B (en) Method and device for acquiring user behavior information
CN111124627B (en) Method and device for determining call initiator of application program, terminal and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20151209

RJ01 Rejection of invention patent application after publication