Because your home is a secured asset, the company who issued your mortgage may decide to foreclose in order to get their investment back. But, if your trustee can show that your new financial picture will allow you to keep making your mortgage payments, the lender will probably be quite comfortable allowing you to keep your home.
In bankruptcy, each province has its own exemptions on property. In Ontario, you are not allowed to keep any equity value on your home, so you will need to take the equity value out to repay creditors, possibly through a second mortgage or a loan from a family member, if you want to keep your property.