Commit Graph

33 Commits

Author SHA1 Message Date
fincs
7416b23ef9
sm: update for 12.0.0, tipc 2021-04-11 12:20:07 +02:00
SciresM
e48f1c339f
add hosversionIsAtmosphere (#525) 2021-01-27 23:20:41 +01:00
SciresM
2d470ee2af
sm: add smDetachClient (#509) 2020-12-02 17:42:09 +01:00
Michael Scire
e5ae43f4c2 results: use R_VALUE for comparisons 2020-12-01 02:26:26 +01:00
fincs
970d982e57
Add diagAbortWithResult, see details:
- This is a (weak/overridable) function meant to be called when the
  program encounters an unrecoverable error, but it's not fatal enough
  to bring down the entire system with it.
- The default implementation uses svcBreak, passing the result code
  in the user buffer.
- Replaced all usages of fatalThrow with diagAbortWithResult throughout
  the entire library.
2020-10-29 13:40:35 +01:00
fincs
4ab2384449
fatal: Rename functions/types to match official names more closely 2019-10-24 23:25:07 +02:00
fincs
d025041e3d
sm: Introduce and use SmServiceName struct (with better codegen) 2019-10-22 20:10:52 +02:00
yellows8
7103b08740
sm: Minor improvements + IPC input improvements. Minor param type adjustment for smRegisterService. 2019-10-22 10:20:21 -04:00
fincs
96fc7dd8cd
Minor style fixes in new IPC code 2019-09-20 14:54:45 +02:00
fincs
5ab1219f40
Add internal service guard helper, needed for proper thread safe service init/exit 2019-09-20 02:28:46 +02:00
fincs
4eda677b93
Add compiler optimization hint to remove unused domain handling code 2019-09-20 01:36:22 +02:00
fincs
dedd29b431
sm: Remove smHasInitialized (use Initialize+GetService+Exit instead) 2019-09-19 23:47:37 +02:00
fincs
99c325ed5b
Further cleanup in SM code; smEncodeName is now constexpr 2019-09-19 12:56:21 +02:00
fincs
6ad0042147
Introduce new IPC interface wrapper code, see details:
- Service object moved away from sm.h and into its own file (sf/service.h)
- Service object completely redesigned, but a (mostly)
  backwards compatible API was kept
- New low level HIPC request/response code
- New CMIF client-oriented code
- New service IPC dispatch functions
- Pointer buffer size automatically retrieved for all sessions
- Removed previous manual pointer buffer size query code
- SM rewritten with new IPC code
- All other services are still pending IPC rewrite
2019-09-19 03:50:28 +02:00
Michael Scire
6978003c42 sm/smm: Add GetServiceSession 2019-06-24 21:43:45 +02:00
SciresM
d6ba6d9625 sm: add retry loop in smInitialize (#270) 2019-04-25 17:43:39 +02:00
plutooo
68a77ac950 Close sm session properly 2018-08-28 21:29:55 +02:00
plutoo
a102c64341 Introduce atomics.c, refcounting on all services 2018-03-10 14:33:40 +01:00
plutoo
d12e99e3ad Move ipc.h to kernel/ 2018-03-10 14:03:29 +01:00
plutoo
6fa8370bfb This looks better 2018-01-22 20:11:55 +01:00
TuxSH
5abc4873d8 Include only what is really necessary...
add pragma once in every header, etc.
2018-01-22 18:42:57 +01:00
plutoo
e54bbc54ea Fix codestyle for results 2018-01-21 18:40:23 +01:00
plutoo
94658b9f60 More loader config 2018-01-13 00:18:04 +01:00
plutoo
f70d70f029 Introducing "Service" object, implemented service override, fixing minor formatting mistakes
NOT TESTED :(
2018-01-12 23:29:49 +01:00
plutoo
bf89c7526e Rename ipc functions before it's too late 2018-01-11 21:56:04 +01:00
plutoo
edcf789b6e C was developed in 1972 2018-01-06 13:54:59 +01:00
plutoo
3926969ebc Minor changes
* Refactored system/*
* Implemented all of tmem
* Introduced virtmem
2017-10-07 15:32:57 +02:00
yellows8
85edf0b826 Check smHasInitialized() in smInitialize(). 2017-09-24 18:46:13 -04:00
yellows8
8a9d51db0c Added smExit and added sm to appInit/appExit. Added svcCreateSession. Added vi. 2017-09-24 18:40:13 -04:00
plutoo
718d55f45a Added sm service commands 2017-09-24 19:49:24 +02:00
plutoo
6e84dee135 Introducing fatal 2017-09-24 18:49:27 +02:00
plutoo
6c2d06f9a8 Fixing bugs. bsdInitialize currently fails with 0xe401, probably due to ipc bug 2017-09-11 04:38:38 +02:00
plutoo
0d8a5a6839 Restructuring a little 2017-09-10 20:19:32 +02:00