Homebrew Clarification Thread - What is going on?

Status
Not open for further replies.

BothyBhoy

Well-Known Member
Member
Joined
Nov 27, 2015
Messages
838
Trophies
0
Age
70
XP
329
Country
I'll look into it! The last thing we need is confusion. I'm just spending my day off here because hacking video games got me into computer science and I figure the best way to help is through explaining things as well as I can.



Let me break it down after looking over the repo as of 2:10 PM EST.

The value that you see printed is this

volatile u32 testVal = 0;

The DEADCAFE comes from this function here

static void kernel_entry() {
testVal = 0xDEADCAFE;
}

This function isn't called in the memchunkhax2 code though.

Instead it's set as manufactured vtable which has pointers to that function. Then that put in memory as part of a kernel object and the next pointer of the current memchunk is changed to point to that. When that pointer gets dereferenced, the kernel will execute the code of kernel_entry, which sets testVal to 0xDEADCAFE, then if it all worked you get to see that on your screen.

kernel_entry is just a test, but in the future it'll be the function that will allow downgrading, because it's happening in the space that the ARM11 kernel has access to.

Nifty, isn't it?
Thanks for the headsup.....at least your trying....
 

EmulatorLover

3ds master race
Member
Joined
Apr 26, 2015
Messages
973
Trophies
0
Age
26
Location
Anywhere ;)
XP
513
Country
United States
since everyone else is doing it here is my DEADCAFE direct screenshot :3 N3DS 10.3 btw
 

Attachments

  • scr_1_TOP_LEFT.png
    scr_1_TOP_LEFT.png
    1.1 KB · Views: 273

itsthenavy

Well-Known Member
Member
Joined
Sep 3, 2015
Messages
102
Trophies
0
Age
30
XP
165
Country
United States
I just had a nerdgasm. Thank you for the detailed info :)
Thanks for the headsup.....at least your trying....
Might as well learn something while waiting on the hype train, right?

This is really exciting though. Since it's not called in memchunkhax2.c, and yet we can still get DEADCAFE that's how you know it's happening in the kernel. I imagine @Steveice10 did a little jig when he saw that.
 

TheGlow

Well-Known Member
Member
Joined
Nov 23, 2013
Messages
193
Trophies
0
Location
Da Bronx
XP
329
Country
United States
Odd behavior on a 10.3 2DS US via menuhax. All hang at Map Complete. Tried Brony exiting, no difference.
Tried ftp-3ds, exiting that resulted in a crash, just red bottom screen. Tried more bronys. Tried FTP again, this time it let me exit back to homebrew launcher. Then got test value:00000000 press start to exit. It let me exit. Ran it again and then deadcafe.
This 2DS has been erractic in general. Browser hax took 5+ tries before it triggered. Old eshop sometimes would just hand for 5 minutes before doing anything. Heck, real eshop is crazy slow.
Regular 5mbps cable connection, sitting 3 ft from my router.
 

yacepi15

Well-Known Member
Member
Joined
Aug 15, 2015
Messages
1,023
Trophies
0
XP
1,873
Country
Germany
For the unlucky people... Try L+R+B+DOWN in the HB Menu and try again.
EDIT: I only receive state 000000.
 
Last edited by yacepi15,
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Skelletonike @ Skelletonike: hmm